Ignore:
Timestamp:
11/20/11 07:13:35 (13 years ago)
Author:
Daniela Dorner
Message:
changed to new structure (nfs mount of disk); bugfix
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/RsyncRaw.sh

    r12561 r12576  
    99echo "" >> $logfile 2>&1
    1010echo "" >> $logfile 2>&1
    11 rawdir=loc_data/raw/$date
     11# raw data directories on data
     12rawdirdaq=/daq/raw/$date/ # /loc_data from daq via nfs on data
     13rawdirdata=/loc_data/raw/$date
    1214echo `date`": processing files in "$rawdir >> $logfile 2>&1
    1315
     16# get current hour
    1417hour=`date +%k`
     18# define bwlimit for rsync depending on the time
    1519if [ $hour -lt 8 ] || [ $hour -gt 18 ]
    1620then
     21   # limit bw for rsync to 20 MB/s during night
    1722   bwlimit="--bwlimit=20000"
    1823   echo "rsync data with "$bwlimit >> $logfile 2>&1
    1924else
     25   # no bw limit during day
    2026   echo "rsync data without bwlimit" >> $logfile 2>&1
    2127fi
    2228
    2329#rsync from daq to data
    24 if ! /usr/bin/rsync -avxHP $bwlimit 10.0.100.12::$rawdir /$rawdir >> $logfile 2>&1
     30if ! /usr/bin/rsync -avxHP $bwlimit $rawdirdaq $rawdirdata >> $logfile 2>&1
    2531then
    2632   echo `date`": problem rsyncing rawdata from daq to data"
Note: See TracChangeset for help on using the changeset viewer.