Changeset 17576 for trunk/DataCheck/Transfer/BackupRawToWue.sh
- Timestamp:
- 03/01/14 23:59:27 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Transfer/BackupRawToWue.sh
r16992 r17576 8 8 9 9 set -C 10 11 # check if only a certain date should be processed 12 # (feature for manual speedup) 13 if [ "$certaindate" != "" ] 14 then 15 checkstring=`echo $certaindate | grep -E -o '20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]'` 16 if [ "$checkstring" = "" ] 17 then 18 echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)" 19 finish 20 fi 21 printprocesslog "INFO process only data of "$certaindate 22 echo "INFO process only data of "$certaindate 23 specialnight=`echo $certaindate | sed -e 's/\///g'` 24 fi 25 10 26 11 27 # checking that not more than $numrsyncwuelimit … … 30 46 runid=${primaries[$s+$s+1]} 31 47 nightpath=`echo $night | cut -c 1-4`"/"`echo $night | cut -c 5-6`"/"`echo $night | cut -c 7-8` 48 nightrun=$night"_"`printf %03d $runid` 32 49 50 if [ "$specialnight" != "" ] 51 then 52 if [ $night -ne $specialnight ] 53 then 54 printprocesslog "INFO Treat only "$specialnight" -> continue for "$night 55 echo "INFO Treat only "$specialnight" -> continue for "$night 56 continue 57 fi 58 fi 59 60 rawdirisdc="/scratch/from_lapalma/raw" 61 isdcfile=`find $rawdirisdc -type f -regex ".*$nightrun[.]fits[.][fg]z"` 62 if [ "$isdcfile" == "" ] 63 then 64 echo "ERROR Could not find raw file for "$nightrun" on isdc-dl00 - Something is really wrong." 65 printprocesslog "ERROR Could not find raw file for "$nightrun" on isdc-dl00 - Something is really wrong." 66 continue 67 else 68 filename=`basename $isdcfile` 69 fi 70 71 rawfileisdc=$rawdirisdc"/./"$nightpath"/"$filename 72 rawdirwue="/fact/raw/" 73 33 74 setstatus "start" 34 75 if [ $numchanged -eq 0 ] … … 38 79 fi 39 80 40 rawdirisdc="/scratch/from_lapalma/raw"41 rawfileisdc=$rawdirisdc"/./"$nightpath"/"$night"_"`printf %03d $runid`".fits.gz"42 rawdirwue="/fact/raw/"43 44 81 printprocesslog "INFO rsync rawfile "$rawfileisdc" to Wue "$rawdirwue 45 82 #rsync -rltDvR --partial --stats --password-file=/home_nfs/isdc/fact_opr/rsync.pwd factdata@161.72.93.131::$rawfilelp $rawdirisdc >> $logfile 2>&1 83 #echo "rsync -avxR --no-p --stats -T $rsynctempdir $rawfileisdc operator@coma.astro.uni-wuerzburg.de:$rawdirwue >> $logfile 2>&1" 46 84 rsync -avxR --no-p --stats -T $rsynctempdir $rawfileisdc operator@coma.astro.uni-wuerzburg.de:$rawdirwue >> $logfile 2>&1 47 85 check1=$? … … 59 97 if [ $numdrs -gt 0 ] 60 98 then 61 drsfileisdc=$rawdirisdc"/./"$nightpath"/"$night "_"`printf %03d $runid`".drs.fits.gz"99 drsfileisdc=$rawdirisdc"/./"$nightpath"/"$nightrun".drs.fits.gz" 62 100 printprocesslog "INFO rsync rawfile "$drsfileisdc" to Wue "$rawdirwue 63 101 rsync -avxR --no-p --stats $drsfileisdc operator@coma.astro.uni-wuerzburg.de:$rawdirwue >> $logfile 2>&1
Note:
See TracChangeset
for help on using the changeset viewer.