Ignore:
Timestamp:
11/19/11 02:25:36 (13 years ago)
Author:
Daniela Dorner
Message:
implemented bwlimit between 18h and 8h
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/RsyncAux.sh

    r12557 r12559  
    77
    88auxdir=loc_data/aux/$date
     9echo ""
     10echo ""
     11echo ""
    912echo `date`": processing files in "$auxdir >> $logfile 2>&1
    1013
     14hour=`date +%k`
     15if [ $hour -lt 8 ] || [ $hour -gt 18 ]
     16then
     17   bwlimit="--bwlimit=2000"
     18   echo "rsync data with "$bwlimit >> $logfile 2>&1
     19else
     20   echo "rsync data without bwlimit" >> $logfile 2>&1
     21fi
     22
    1123#rsync from daq to data
    12 if ! /usr/bin/rsync -avxH 10.0.100.12::$auxdir /$auxdir >> $logfile 2>&1
     24if ! /usr/bin/rsync -avxHP $bwlimit 10.0.100.12::$auxdir /$auxdir >> $logfile 2>&1
    1325then
    1426   echo `date`": problem rsyncing auxiliary data from daq to data"
Note: See TracChangeset for help on using the changeset viewer.