Changeset 12559 for trunk/DataCheck


Ignore:
Timestamp:
11/19/11 02:25:36 (13 years ago)
Author:
Daniela Dorner
Message:
implemented bwlimit between 18h and 8h
Location:
trunk/DataCheck
Files:
2 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"
  • trunk/DataCheck/RsyncRaw.sh

    r12557 r12559  
    66logfile=/home/`whoami`/DataCheck/log/RsyncRaw$today.log
    77
     8echo ""
     9echo ""
     10echo ""
    811rawdir=loc_data/raw/$date
    912echo `date`": processing files in "$rawdir >> $logfile 2>&1
    1013
     14hour=`date +%k`
     15if [ $hour -lt 8 ] || [ $hour -gt 18 ]
     16then
     17   bwlimit="--bwlimit=20000"
     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::$rawdir /$rawdir >> $logfile 2>&1
     24if ! /usr/bin/rsync -avxHP $bwlimit 10.0.100.12::$rawdir /$rawdir >> $logfile 2>&1
    1325then
    1426   echo `date`": problem rsyncing rawdata from daq to data"
Note: See TracChangeset for help on using the changeset viewer.