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 |
|
---|
3 | today=`date +%F`
|
---|
4 | logfile=/home/`whoami`/DataCheck/log/RsyncDBToWue$today.log
|
---|
5 |
|
---|
6 | dbdirlp=/home/fact/DB_Backup
|
---|
7 | dbdirwue=/home/operator/budb/fact_from_lp
|
---|
8 | echo "" >> $logfile 2>&1
|
---|
9 | echo "" >> $logfile 2>&1
|
---|
10 | echo "" >> $logfile 2>&1
|
---|
11 | echo `date`": processing files in "$dbdirlp >> $logfile 2>&1
|
---|
12 |
|
---|
13 | #rsync from gate to coma
|
---|
14 | if ! /usr/bin/rsync -avxP $dbdirlp operator@coma.astro.uni-wuerzburg.de:$dbdirwue >> $logfile 2>&1
|
---|
15 | then
|
---|
16 | printprocesslog "CONNECTION problem rsyncing DB from LP to Wue"
|
---|
17 | echo `date`": problem rsyncing database from LP to Wuerzburg" >> $logfile 2>&1
|
---|
18 | fi
|
---|
19 |
|
---|
20 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.