#-- Description:
#--   This script is designed to create and 'rotate' the backup files for the ella-associates.org
#--   Web-Site. This script is probably being automatically run by the 'cron' daemon
#--   at a frequency as specified in the /etc/crontab file.
#--
#--
# See Also:
#--   backup-vanessa-.sh
# Author:
#   m.j.bishop

 if [ "$1" = "" ]
 then
   echo "usage: $0 go"
   cat $0 | sed -n "/^[ ]*#/p" 
   exit 1;
 fi

cd /var/backups/ella-website/

for i in $(seq 7 -1 1);
do 
  let j=$i+1; 
  cp ella-web.tar.gz.$i ella-web.tar.gz.$j; 
done; 



cd /var/
tar -zcvf ella-web.tar.gz www
cd /var/backups/ella-website/
cp ella-web.tar.gz ella-web.tar.gz.1
cp /var/ella-web.tar.gz .