Last change
on this file since 12557 was 12557, checked in by Daniela Dorner, 13 years ago |
changed such that only last night is rsynced
|
-
Property svn:executable
set to
*
|
File size:
379 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | date=`date +%Y/%m/%d --date="-1day"`
|
---|
4 |
|
---|
5 | today=`date +%F`
|
---|
6 | logfile=/home/`whoami`/DataCheck/log/RsyncRaw$today.log
|
---|
7 |
|
---|
8 | rawdir=loc_data/raw/$date
|
---|
9 | echo `date`": processing files in "$rawdir >> $logfile 2>&1
|
---|
10 |
|
---|
11 | #rsync from daq to data
|
---|
12 | if ! /usr/bin/rsync -avxH 10.0.100.12::$rawdir /$rawdir >> $logfile 2>&1
|
---|
13 | then
|
---|
14 | echo `date`": problem rsyncing rawdata from daq to data"
|
---|
15 | fi
|
---|
16 |
|
---|
17 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.