Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:02

0001 #!/bin/bash -l 
0002 
0003 geocache_grab_usage(){ cat << EOU
0004 geocache_grab.sh
0005 ==================
0006 
0007 NB the CSG_GGeo directory is excluded as that may get large, other scripts 
0008 handle the content of that 
0009 
0010 
0011 EOU
0012 }
0013 
0014 arg=${1:-all}
0015 shift
0016 
0017 
0018 opticks_key_remote_dir=$(opticks-key-remote-dir)
0019 xdir=$opticks_key_remote_dir/   ## trailing slash to avoid duplicating path element 
0020 
0021 from=P:$xdir
0022 to=$HOME/$xdir
0023 
0024 
0025 printf "arg                      %s \n" "$arg"
0026 printf "OPTICKS_KEY_REMOTE       %s \n " "$OPTICKS_KEY_REMOTE" 
0027 printf "opticks_key_remote_dir   %s \n " "$opticks_key_remote_dir" 
0028 printf "\n"
0029 printf "xdir                     %s \n" "$xdir"
0030 printf "from                     %s \n" "$from" 
0031 printf "to                       %s \n" "$to" 
0032 
0033 mkdir -p $to
0034 
0035 
0036 rsync  -zarv --progress --exclude="CSG_GGeo"  "$from" "$to"
0037 
0038 
0039