source: trunk/DataCheck/RsyncAux.sh@ 12547

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