Ignore:
Timestamp:
05/21/17 10:33:52 (8 years ago)
Author:
Daniela Dorner
Message:
adapted to use proper rsync-temp-dir for each transfer
File:
1 edited

Legend:

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

    r18854 r18871  
    1616   echo `date`": /data is not mounted on daq => please mount it"
    1717   finish
     18fi
     19
     20rsynctempdir1=/scratch/rsync_tmp
     21if ! [ -d $rsynctempdir1 ]
     22then
     23   mkdir $rsynctempdir1
     24fi
     25rsynctempdir2=/scratch/rsync_tmp
     26if ! [ -d $rsynctempdir2 ]
     27then
     28   mkdir $rsynctempdir2
     29fi
     30rsynctempdir3=/scratch/rsync_tmp
     31if ! [ -d $rsynctempdir3 ]
     32then
     33   mkdir $rsynctempdir3
    1834fi
    1935
     
    7187   fi
    7288   # rsync from newdaq to newdata
    73    if ! /usr/bin/rsync -avu -T $rsynctempdir $bwlimit newdaq:$dir/ $scratch >> $logfile 2>&1
     89   if ! /usr/bin/rsync -avu -T $rsynctempdir1 $bwlimit newdaq:$dir/ $scratch >> $logfile 2>&1
    7490   then
    7591      printprocesslog "CONNECTION problem rsyncing auxiliary files in "$dir" from newdaq to newdata"
     
    89105   fi
    90106   # distribute to several disk on newdata
    91    if ! /usr/bin/rsync -avu -T $rsynctempdir $bwlimit $scratch/ $data1 >> $logfile 2>&1
     107   if ! /usr/bin/rsync -avu -T $rsynctempdir2 $bwlimit $scratch/ $data1 >> $logfile 2>&1
    92108   then
    93109      printprocesslog "WARN problem rsyncing auxiliary files in "$dir" from scratch to data1"
    94110      echo `date`": problem rsyncing auxiliary files in "$dir" from scratch to data1" >> $logfile 2>&1
    95111   fi
    96    if ! /usr/bin/rsync -avu -T $rsynctempdir $bwlimit $scratch/ $data2 >> $logfile 2>&1
     112   if ! /usr/bin/rsync -avu -T $rsynctempdir2 $bwlimit $scratch/ $data2 >> $logfile 2>&1
    97113   then
    98114      printprocesslog "WARN problem rsyncing auxiliary files in "$dir" from scratch to data2"
Note: See TracChangeset for help on using the changeset viewer.