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.

Re: [awips2-users] AWIPS II Backup Script

you're not using $site inside this for loop.  Do you maybe want

tar --exclude "ffmp/aggrGeom" --exclude "*/base/*" -cvzf
/data/fxa/TEMP/localization.tar ${site}/*

and $sites is not really sites...

EDEX_HOME="/awips2/edex"
sites=`ls -1 ${EDEX_HOME}/data/utility/`
echo $sites
cave_config cave_static common_static edex_static


----

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

Michael James
Unidata Program Center
Boulder, CO

On Thu, Jul 14, 2016 at 3:08 PM, Brian Bernard <bbernard@xxxxxxxxxxxx>
wrote:

> 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
>
>
> -----------------------------------------------------------------------------------------------------------------------------------
>
>
>
>
> _______________________________________________
> NOTE: All exchanges posted to Unidata maintained email lists are
> recorded in the Unidata inquiry tracking system and made publicly
> available through the web.  Users who post to any of the lists we
> maintain are reminded to remove any personal information that they
> do not want to be made public.
>
>
> awips2-users mailing list
> awips2-users@xxxxxxxxxxxxxxxx
> For list information, to unsubscribe, or change your membership options,
> visit: http://www.unidata.ucar.edu/mailing_lists/
>
>
  • 2016 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the awips2-users archives: