- Timestamp:
- 01/05/17 00:56:47 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Transfer/BackupQLA.sh
r18670 r18709 14 14 # get paths depending on host 15 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" 16 daq) from=( "/loc_data/analysis/" ) 17 to=( "/newdaq/analysis_bu" ) 21 18 ## new temporary solution with rsync-servers 22 19 #to="newdaq::newdaq/analysis_bu" 23 20 ;; 24 isdc-dl00) from= "fact@161.72.93.131:/daq/analysis/"21 isdc-dl00) from=( "fact@161.72.93.131:/daq/analysis/" "/gpfs0/fact/processing/qla/" ) 25 22 #to="/gpfs/scratch/fact/qla" 26 to= "/gpfs0/fact/processing/qla"23 to=( "/gpfs0/fact/processing/qla" "operator@coma.astro.uni-wuerzburg.de:/fact/data/qla") 27 24 # for new rsync: update variables 28 25 ;; … … 35 32 date >> $logfile 36 33 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 34 for (( i=0 ; i < ${#from[@]} ; i++ )) 35 do 36 printprocesslog "INFO rsync "${from[$i]}" to "${to[$i]} 37 echo "rsync from "${from[$i]}" to "${to[$i]} >> $logfile 2>&1 38 if ! rsync -auv ${from[$i]} ${to[$i]} >> $logfile 2>&1 39 then 40 printprocesslog "CONNECTION problem rsyncing QLA from "${from[$i]}" to "${to[$i]} 41 echo `date`": problem rsyncing QLA from "${from[$i]}" to "${to[$i]} >> $logfile 2>&1 42 fi 43 done 43 44 44 45 finish >> $logfile 2>&1
Note:
See TracChangeset
for help on using the changeset viewer.