- Timestamp:
- 11/19/11 02:25:36 (13 years ago)
- Location:
- trunk/DataCheck
- Files:
-
- 2 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" -
trunk/DataCheck/RsyncRaw.sh
r12557 r12559 6 6 logfile=/home/`whoami`/DataCheck/log/RsyncRaw$today.log 7 7 8 echo "" 9 echo "" 10 echo "" 8 11 rawdir=loc_data/raw/$date 9 12 echo `date`": processing files in "$rawdir >> $logfile 2>&1 10 13 14 hour=`date +%k` 15 if [ $hour -lt 8 ] || [ $hour -gt 18 ] 16 then 17 bwlimit="--bwlimit=20000" 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::$rawdir /$rawdir >> $logfile 2>&124 if ! /usr/bin/rsync -avxHP $bwlimit 10.0.100.12::$rawdir /$rawdir >> $logfile 2>&1 13 25 then 14 26 echo `date`": problem rsyncing rawdata from daq to data"
Note:
See TracChangeset
for help on using the changeset viewer.