Last change
on this file since 17594 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 does a backup of the QLA results
|
---|
4 | # It can be used in different location
|
---|
5 | #
|
---|
6 | # Be careful: do NOT use --delete as on daq callisto files are deleted
|
---|
7 | #
|
---|
8 |
|
---|
9 | source `dirname $0`/../Sourcefile.sh
|
---|
10 | printprocesslog "INFO starting $0"
|
---|
11 |
|
---|
12 | set -C
|
---|
13 |
|
---|
14 | # get paths depending on host
|
---|
15 | case $HOSTNAME in
|
---|
16 | dc11) from="fact_opr@isdc-nx00.isdc.unige.ch:/gpfs0/fact/processing/qla/"
|
---|
17 | to="/scratch/fact/qla"
|
---|
18 | ;;
|
---|
19 | daq) from="/loc_data/analysis/"
|
---|
20 | to="/newdaq/analysis_bu"
|
---|
21 | # new temporary solution with rsync-servers
|
---|
22 | to="newdaq::newdaq/analysis_bu"
|
---|
23 | ;;
|
---|
24 | isdc-dl00) from="fact@161.72.93.131:/daq/analysis/"
|
---|
25 | #to="/gpfs/scratch/fact/qla"
|
---|
26 | to="/gpfs0/fact/processing/qla"
|
---|
27 | # for new rsync: update variables
|
---|
28 | ;;
|
---|
29 | *) echo "no valid host "$HOSTNAME
|
---|
30 | exit
|
---|
31 | ;;
|
---|
32 | esac
|
---|
33 |
|
---|
34 | logfile=$runlogpath"/BackupQLA-"$datetime".log"
|
---|
35 | date >> $logfile
|
---|
36 |
|
---|
37 | if ! rsync -av $from $to >> $logfile 2>&1
|
---|
38 | then
|
---|
39 | printprocesslog "CONNECTION problem rsyncing QLA from "$from" to "$to
|
---|
40 | echo `date`": problem rsyncing QLA from "$from" to "$to >> $logfile 2>&1
|
---|
41 | fi
|
---|
42 |
|
---|
43 |
|
---|
44 | finish >> $logfile 2>&1
|
---|
45 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.