source: trunk/DataCheck/RsyncAux.sh@ 12558

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