Ignore:
Timestamp:
02/18/15 09:28:14 (10 years ago)
Author:
Daniela Dorner
Message:
added usage of function getdata()
File:
1 edited

Legend:

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

    r17594 r18137  
    1010date >> $logfile
    1111
    12 # get last 3, 6 or 9 nights
    13 dates=( `date +%Y/%m/%d --date="-12hour"` `date +%Y/%m/%d --date="-36hour"` `date +%Y/%m/%d --date="-60hour"` \
    14         `date +%Y/%m/%d --date="-84hour"` `date +%Y/%m/%d --date="-108hour"` `date +%Y/%m/%d --date="-132hour"` \
    15         `date +%Y/%m/%d --date="-156hour"` `date +%Y/%m/%d --date="-180hour"` `date +%Y/%m/%d --date="-204hour"` \
    16         )
     12# get dates
     13if [ "$certaindate" != "" ]
     14then
     15   getdates $certaindate
     16else
     17   # get all night
     18   #getdates "all"
     19   # get last 9 nights
     20   getdates 9
     21fi
     22
     23
    1724
    1825# do rsync for rawfiles of these dates
Note: See TracChangeset for help on using the changeset viewer.