source: trunk/DataCheck/RsyncRaw.sh@ 12546

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