source: trunk/DataCheck/RsyncRaw.sh@ 12557

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
3date=`date +%Y/%m/%d --date="-1day"`
4
5today=`date +%F`
6logfile=/home/`whoami`/DataCheck/log/RsyncRaw$today.log
7
8rawdir=loc_data/raw/$date
9echo `date`": processing files in "$rawdir >> $logfile 2>&1
10
11#rsync from daq to data
12if ! /usr/bin/rsync -avxH 10.0.100.12::$rawdir /$rawdir >> $logfile 2>&1
13then
14 echo `date`": problem rsyncing rawdata from daq to data"
15fi
16
17
Note: See TracBrowser for help on using the repository browser.