source: trunk/DataCheck/Transfer/RsyncDBToWue.sh@ 18350

Last change on this file since 18350 was 17594, checked in by Daniela Dorner, 11 years ago
changed logging for connection problems
  • Property svn:executable set to *
File size: 582 bytes
Line 
1#!/bin/bash
2
3today=`date +%F`
4logfile=/home/`whoami`/DataCheck/log/RsyncDBToWue$today.log
5
6dbdirlp=/home/fact/DB_Backup
7dbdirwue=/home/operator/budb/fact_from_lp
8echo "" >> $logfile 2>&1
9echo "" >> $logfile 2>&1
10echo "" >> $logfile 2>&1
11echo `date`": processing files in "$dbdirlp >> $logfile 2>&1
12
13#rsync from gate to coma
14if ! /usr/bin/rsync -avxP $dbdirlp operator@coma.astro.uni-wuerzburg.de:$dbdirwue >> $logfile 2>&1
15then
16 printprocesslog "CONNECTION problem rsyncing DB from LP to Wue"
17 echo `date`": problem rsyncing database from LP to Wuerzburg" >> $logfile 2>&1
18fi
19
20
Note: See TracBrowser for help on using the repository browser.