|
Last change
on this file since 16199 was 15559, checked in by Daniela Dorner, 13 years ago |
|
added (script to backup results of QLA)
|
-
Property svn:executable
set to
*
|
|
File size:
866 bytes
|
| 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:/gpfs/scratch/fact/qla/"
|
|---|
| 17 | to="/scratch/fact/qla"
|
|---|
| 18 | ;;
|
|---|
| 19 | daq) from="/loc_data/analysis/"
|
|---|
| 20 | to="/newdaq/analysis_bu"
|
|---|
| 21 | ;;
|
|---|
| 22 | isdc-dl00) from="fact@161.72.93.131:/daq/analysis/"
|
|---|
| 23 | to="/gpfs/scratch/fact/qla"
|
|---|
| 24 | ;;
|
|---|
| 25 | *) echo "no valid host "$HOSTNAME
|
|---|
| 26 | exit
|
|---|
| 27 | ;;
|
|---|
| 28 | esac
|
|---|
| 29 |
|
|---|
| 30 | logfile=$runlogpath"/BackupQLA-"$datetime".log"
|
|---|
| 31 | date >> $logfile
|
|---|
| 32 |
|
|---|
| 33 | rsync -av $from $to >> $logfile 2>&1
|
|---|
| 34 |
|
|---|
| 35 | finish >> $logfile 2>&1
|
|---|
| 36 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.