- Timestamp:
- 03/13/12 14:49:22 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Transfer/RsyncRawToISDC.sh
r13065 r13082 19 19 # get todo list 20 20 gettodo 21 22 21 23 22 for (( s=0 ; s < $num ; s++ )) … … 44 43 case $check1 in 45 44 0) printprocesslog "INFO rawfile "$rawfilelp" transferred successfully to ISDC." 46 printprocesslog "INFO create link for "$rawfileisdc 47 ln -sv $rawfileisdc $ingestlink >> $logfile 2>&1 48 check2=$? 49 case $check2 in 50 0) printprocesslog "INFO link for "$rawfileisdc" created successfully." 51 ;; 52 *) printprocesslog "WARN link for "$rawfileisdc" could not be created." 53 check=$check2 54 ;; 55 esac 45 if ! [ -L $ingestlink ] 46 then 47 printprocesslog "INFO create link for "$rawfileisdc 48 ln -sv $rawfileisdc $ingestlink >> $logfile 2>&1 49 check2=$? 50 case $check2 in 51 0) printprocesslog "INFO link for "$rawfileisdc" created successfully." 52 ;; 53 *) printprocesslog "WARN link for "$rawfileisdc" could not be created." 54 check=$check2 55 ;; 56 esac 57 else 58 printprocesslog "INFO link "$ingestlink" already existing." 59 fi 56 60 ;; 57 61 *) printprocesslog "WARN "$rawfilelp" could not be transferred to ISDC." … … 60 64 esac 61 65 66 query="SELECT fHasDrsFile from RunInfo WHERE fNight="$night" AND fRunID="$runid 67 numdrs=`sendquery` 68 if [ $numdrs -gt 0 ] 69 then 70 drsfilelp="/loc_data/zipraw/./"$nightpath"/"$night"_"`printf %03d $runid`".drs.fits.gz" 71 drsfileisdc=$rawdirisdc$nightpath"/"$night"_"`printf %03d $runid`".drs.fits.gz" 72 drsingestlink=$ingestlinkpath"/"$night"_"`printf %03d $runid`".drs.fits.gz" 73 printprocesslog "INFO rsync drsfile "$drsfilelp" to ISDC "$rawdirisdc 74 echo "INFO rsync drsfile "$drsfilelp" to ISDC "$rawdirisdc >> $logfile 2>&1 75 #rsync -rltDvR --partial --stats --password-file=$pwfile factdata@161.72.93.131::$rawfilelp $rawdirisdc >> $logfile 2>&1 76 rsync -rltDvR -T $rsynctempdir --partial --stats fact@161.72.93.131:$drsfilelp $rawdirisdc >> $logfile 2>&1 77 check3=$? 78 79 case $check3 in 80 0) printprocesslog "INFO drsfile "$drsfilelp" transferred successfully to ISDC." 81 if ! [ -L $drsingestlink ] 82 then 83 printprocesslog "INFO create link for "$drsfileisdc 84 ln -sv $drsfileisdc $drsingestlink >> $logfile 2>&1 85 check4=$? 86 case $check4 in 87 0) printprocesslog "INFO link for "$drsfileisdc" created successfully." 88 ;; 89 *) printprocesslog "WARN link for "$drsfileisdc" could not be created." 90 check=$check4 91 ;; 92 esac 93 else 94 printprocesslog "INFO link "$drsingestlink" already existing." 95 fi 96 ;; 97 *) printprocesslog "WARN "$drsfilelp" could not be transferred to ISDC." 98 check=$check3 99 ;; 100 esac 101 fi 62 102 63 103 setstatus "stop"
Note:
See TracChangeset
for help on using the changeset viewer.