Changeset 18852
- Timestamp:
- 05/14/17 20:57:08 (8 years ago)
- Location:
- trunk/DataCheck/Transfer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Transfer/RsyncAuxToISDC.sh
r18397 r18852 26 26 echo $date >> $logfile 2>&1 27 27 # auxiliary data directories 28 auxdirlp=/ loc_data/aux/./$date/28 auxdirlp=/data2/aux/./$date/ 29 29 auxdirisdc=/scratch/from_lapalma/aux 30 30 … … 60 60 #rsync from daq to data 61 61 #if ! /usr/bin/rsync -avxHPu $bwlimit $auxdirdaq $auxdirdata >> $logfile 2>&1 # in case of adding checksum, only update files with rsync 62 if ! rsync -rltDvR -T $rsynctempdir --stats fact@161.72.93.13 1:$auxdirlp $auxdirisdc >> $logfile 2>&162 if ! rsync -rltDvR -T $rsynctempdir --stats fact@161.72.93.138:$auxdirlp $auxdirisdc >> $logfile 2>&1 63 63 then 64 64 printprocesslog "CONNECTION problem rsyncing auxiliary data for "$date" from La Palma to ISDC" -
trunk/DataCheck/Transfer/RsyncRawToISDC.sh
r18701 r18852 49 49 runid=${primaries[$s+$s+1]} 50 50 nightpath=`echo $night | cut -c 1-4`"/"`echo $night | cut -c 5-6`"/"`echo $night | cut -c 7-8` 51 lppath="/ loc_data/zipraw/"$nightpath51 lppath="/data2/zipraw/"$nightpath 52 52 nightrun=$night"_"`printf %03d $runid` 53 53 … … 65 65 fi 66 66 67 lpfile=`ssh fact@161.72.93.13 1"find $lppath -type f -regex '.*$nightrun[.]fits[.][fg]z'"`67 lpfile=`ssh fact@161.72.93.138 "find $lppath -type f -regex '.*$nightrun[.]fits[.][fg]z'"` 68 68 if [ "$lpfile" == "" ] 69 69 then 70 #echo $nightrun" not yet available on data."70 echo $nightrun" not yet available on data." 71 71 printprocesslog "INFO "$nightrun" not yet available on data." 72 72 continue … … 77 77 setstatus "start" 78 78 79 rawfilelp="/ loc_data/zipraw/./"$nightpath"/"$filename79 rawfilelp="/data2/zipraw/./"$nightpath"/"$filename 80 80 rawdirisdc="/scratch/from_lapalma/raw/" 81 81 rawfileisdc=$rawdirisdc$nightpath"/"$filename … … 84 84 ingestlink=$ingestlinkpath"/"$filename 85 85 86 if ! ssh fact@161.72.93.13 1"ls $rawfilelp >/dev/null 2>&1"86 if ! ssh fact@161.72.93.138 "ls $rawfilelp >/dev/null 2>&1" 87 87 then 88 88 #echo $rawfilelp" not yet available on data." … … 100 100 printprocesslog "INFO rsync rawfile "$rawfilelp" to ISDC "$rawdirisdc 101 101 #echo "INFO rsync rawfile "$rawfilelp" to ISDC "$rawdirisdc >> $logfile 2>&1 102 #rsync -rltDvR --partial --stats --password-file=$rsyncpwfile factdata@161.72.93.13 1::$rawfilelp $rawdirisdc >> $logfile 2>&1103 #echo "rsync -rltDvR -T $rsynctempdir --partial --stats fact@161.72.93.13 1:$rawfilelp $rawdirisdc >> $logfile 2>&1"104 rsync -rltDvR -T $rsynctempdir --partial --stats fact@161.72.93.13 1:$rawfilelp $rawdirisdc >> $logfile 2>&1102 #rsync -rltDvR --partial --stats --password-file=$rsyncpwfile factdata@161.72.93.138::$rawfilelp $rawdirisdc >> $logfile 2>&1 103 #echo "rsync -rltDvR -T $rsynctempdir --partial --stats fact@161.72.93.138:$rawfilelp $rawdirisdc >> $logfile 2>&1" 104 rsync -rltDvR -T $rsynctempdir --partial --stats fact@161.72.93.138:$rawfilelp $rawdirisdc >> $logfile 2>&1 105 105 check1=$? 106 106 … … 132 132 if [ $numdrs -gt 0 ] 133 133 then 134 drsfilelp="/ loc_data/zipraw/./"$nightpath"/"$nightrun".drs.fits.gz"134 drsfilelp="/data2/zipraw/./"$nightpath"/"$nightrun".drs.fits.gz" 135 135 drsfileisdc=$rawdirisdc$nightpath"/"$nightrun".drs.fits.gz" 136 136 drsingestlink=$ingestlinkpath"/"$nightrun".drs.fits.gz" 137 137 138 if ! ssh fact@161.72.93.13 1"ls $drsfilelp >/dev/null 2>&1"138 if ! ssh fact@161.72.93.138 "ls $drsfilelp >/dev/null 2>&1" 139 139 then 140 140 #echo $drsfilelp" not yet available on data." … … 148 148 printprocesslog "INFO rsync drsfile "$drsfilelp" to ISDC "$rawdirisdc 149 149 echo "INFO rsync drsfile "$drsfilelp" to ISDC "$rawdirisdc >> $logfile 2>&1 150 #rsync -rltDvR --partial --stats --password-file=$rsyncpwfile factdata@161.72.93.13 1::$rawfilelp $rawdirisdc >> $logfile 2>&1151 rsync -rltDvR -T $rsynctempdir --partial --stats fact@161.72.93.13 1:$drsfilelp $rawdirisdc >> $logfile 2>&1150 #rsync -rltDvR --partial --stats --password-file=$rsyncpwfile factdata@161.72.93.138::$rawfilelp $rawdirisdc >> $logfile 2>&1 151 rsync -rltDvR -T $rsynctempdir --partial --stats fact@161.72.93.138:$drsfilelp $rawdirisdc >> $logfile 2>&1 152 152 check3=$? 153 153
Note:
See TracChangeset
for help on using the changeset viewer.