NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

[awips2-users] AWIPS II Backup Script

Hello,


I have a script that I found in an AWIPS II document on the internet a while 
ago, and was subsequently modified for my setup at work, that backs up the 
configuration files within the awips2/edex/data/utility directory as a zip 
file.  It copies the files into the zip file, but for some reason at the end of 
zipping the files, it starts all over again in a continous loop.


Perhaps a fresh pair of eyes can see what mine can't.


Thanks,


Brian Bernard


---------------------------------------------------------------------------------------------------------------------------------

#!/bin/bash

cd /data/fxa/TEMP/
archive="localization.tar"
if [ -f ${archive} ]; then
   mv -f ${archive} ${archive}_old
fi
EDEX_HOME="/awips2/edex"
cd ${EDEX_HOME}/data/utility
if [ "$1" != "" ]; then
   sites=$1
else
   sites=`ls -1 ${EDEX_HOME}/data/utility/`
fi
for site in ${sites}
do
   echo "Backing up $sites..."
   tar --exclude "ffmp/aggrGeom" --exclude "*/base/*" -cvzf 
/data/fxa/TEMP/localization.tar */*
   echo ""
   echo "Finished backing up AWIPS II EDEX configuration files at... $(date)"
done

-----------------------------------------------------------------------------------------------------------------------------------



  • 2016 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the awips2-users archives: