Changeset 12559 for trunk/DataCheck/RsyncAux.sh
- Timestamp:
- 11/19/11 02:25:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/RsyncAux.sh
r12557 r12559 7 7 8 8 auxdir=loc_data/aux/$date 9 echo "" 10 echo "" 11 echo "" 9 12 echo `date`": processing files in "$auxdir >> $logfile 2>&1 10 13 14 hour=`date +%k` 15 if [ $hour -lt 8 ] || [ $hour -gt 18 ] 16 then 17 bwlimit="--bwlimit=2000" 18 echo "rsync data with "$bwlimit >> $logfile 2>&1 19 else 20 echo "rsync data without bwlimit" >> $logfile 2>&1 21 fi 22 11 23 #rsync from daq to data 12 if ! /usr/bin/rsync -avxH 10.0.100.12::$auxdir /$auxdir >> $logfile 2>&124 if ! /usr/bin/rsync -avxHP $bwlimit 10.0.100.12::$auxdir /$auxdir >> $logfile 2>&1 13 25 then 14 26 echo `date`": problem rsyncing auxiliary data from daq to data"
Note:
See TracChangeset
for help on using the changeset viewer.