Changeset 18709 for trunk


Ignore:
Timestamp:
01/05/17 00:56:47 (8 years ago)
Author:
Daniela Dorner
Message:
added backup of QLA to Wue
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Transfer/BackupQLA.sh

    r18670 r18709  
    1414# get paths depending on host
    1515case $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" )
    2118              ## new temporary solution with rsync-servers
    2219              #to="newdaq::newdaq/analysis_bu"
    2320              ;;
    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/" )
    2522              #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")
    2724              # for new rsync: update variables
    2825              ;;
     
    3532date >> $logfile
    3633
    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 
     34for (( i=0 ; i < ${#from[@]} ; i++ ))
     35do
     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
     43done
    4344
    4445finish >> $logfile 2>&1
Note: See TracChangeset for help on using the changeset viewer.