Ignore:
Timestamp:
05/14/17 20:57:08 (7 years ago)
Author:
Daniela Dorner
Message:
updated to use newdata instead of data for transferring data
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Transfer/RsyncRawToISDC.sh

    r18701 r18852  
    4949   runid=${primaries[$s+$s+1]}
    5050   nightpath=`echo $night | cut -c 1-4`"/"`echo $night | cut -c 5-6`"/"`echo $night | cut -c 7-8`
    51    lppath="/loc_data/zipraw/"$nightpath
     51   lppath="/data2/zipraw/"$nightpath
    5252   nightrun=$night"_"`printf %03d $runid`
    5353
     
    6565   fi
    6666
    67    lpfile=`ssh fact@161.72.93.131 "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'"`
    6868   if [ "$lpfile" == "" ]
    6969   then
    70       #echo $nightrun" not yet available on data."
     70      echo $nightrun" not yet available on data."
    7171      printprocesslog "INFO "$nightrun" not yet available on data."
    7272      continue
     
    7777   setstatus "start"
    7878
    79    rawfilelp="/loc_data/zipraw/./"$nightpath"/"$filename
     79   rawfilelp="/data2/zipraw/./"$nightpath"/"$filename
    8080   rawdirisdc="/scratch/from_lapalma/raw/"
    8181   rawfileisdc=$rawdirisdc$nightpath"/"$filename
     
    8484   ingestlink=$ingestlinkpath"/"$filename
    8585
    86    if ! ssh fact@161.72.93.131 "ls $rawfilelp >/dev/null 2>&1"
     86   if ! ssh fact@161.72.93.138 "ls $rawfilelp >/dev/null 2>&1"
    8787   then
    8888      #echo $rawfilelp" not yet available on data."
     
    100100   printprocesslog "INFO rsync rawfile "$rawfilelp" to ISDC "$rawdirisdc
    101101   #echo "INFO rsync rawfile "$rawfilelp" to ISDC "$rawdirisdc >> $logfile 2>&1
    102    #rsync -rltDvR --partial --stats --password-file=$rsyncpwfile factdata@161.72.93.131::$rawfilelp $rawdirisdc >> $logfile 2>&1
    103    #echo "rsync -rltDvR -T $rsynctempdir --partial --stats fact@161.72.93.131:$rawfilelp $rawdirisdc >> $logfile 2>&1"
    104    rsync -rltDvR -T $rsynctempdir --partial --stats fact@161.72.93.131:$rawfilelp $rawdirisdc >> $logfile 2>&1
     102   #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
    105105   check1=$?
    106106
     
    132132   if [ $numdrs -gt 0 ]
    133133   then
    134       drsfilelp="/loc_data/zipraw/./"$nightpath"/"$nightrun".drs.fits.gz"
     134      drsfilelp="/data2/zipraw/./"$nightpath"/"$nightrun".drs.fits.gz"
    135135      drsfileisdc=$rawdirisdc$nightpath"/"$nightrun".drs.fits.gz"
    136136      drsingestlink=$ingestlinkpath"/"$nightrun".drs.fits.gz"
    137137
    138       if ! ssh fact@161.72.93.131 "ls $drsfilelp >/dev/null 2>&1"
     138      if ! ssh fact@161.72.93.138 "ls $drsfilelp >/dev/null 2>&1"
    139139      then
    140140         #echo $drsfilelp" not yet available on data."
     
    148148      printprocesslog "INFO rsync drsfile "$drsfilelp" to ISDC "$rawdirisdc
    149149      echo "INFO rsync drsfile "$drsfilelp" to ISDC "$rawdirisdc >> $logfile 2>&1
    150       #rsync -rltDvR --partial --stats --password-file=$rsyncpwfile factdata@161.72.93.131::$rawfilelp $rawdirisdc >> $logfile 2>&1
    151       rsync -rltDvR -T $rsynctempdir --partial --stats fact@161.72.93.131:$drsfilelp $rawdirisdc >> $logfile 2>&1
     150      #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
    152152      check3=$?
    153153
Note: See TracChangeset for help on using the changeset viewer.