source: trunk/DataCheck/Transfer/BackupAuxToWue.sh@ 17689

Last change on this file since 17689 was 17594, checked in by Daniela Dorner, 11 years ago
changed logging for connection problems
  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/bin/bash
2
3# this script has been written to run on La Palma on the machine data
4# i.e. paths are only working on this machine
5
6source `dirname $0`/../Sourcefile.sh
7printprocesslog "INFO starting "$0
8
9logfile=$runlogpath"/RsyncAuxToWue-"$datetime".log"
10date >> $logfile
11
12getdates 6
13
14# do rsync for rawfiles of these dates
15for date in ${dates[@]}
16do
17 echo "" >> $logfile 2>&1
18 # auxiliary data directories
19 auxdirisdc=/scratch/from_lapalma/aux/./$date/
20 auxdirwue=/fact/aux
21
22 if ! [ -d $auxdirisdc ]
23 then
24 printprocesslog "INFO "$auxdirisdc" not available." >> $logfile 2>&1
25 continue
26 fi
27 printprocesslog "INFO processing files in "$auxdirisdc >> $logfile 2>&1
28 echo `date`": processing files in "$auxdirisdc >> $logfile 2>&1
29
30 #rsync from ISDC to Wue
31 if ! rsync -rltDvR --stats -T $rsynctempdir $auxdirisdc operator@coma.astro.uni-wuerzburg.de:$auxdirwue >> $logfile 2>&1
32 then
33 printprocesslog "CONNECTION problem rsyncing auxiliary data for "$date" from ISDC to Wue"
34 echo `date`": problem rsyncing auxiliary data for "$date" from ISDC to Wue" >> $logfile 2>&1
35 #echo `date`": problem rsyncing auxiliary data for "$date" from ISDC to Wue"
36 fi
37done
38
Note: See TracBrowser for help on using the repository browser.