#!/bin/bash
#Make a backup of critical files

mv *.tgz OLD/ # move all the old tar files.

Name=`date +%b%d.%y@%H.%M`   #generate name of backup file
echo $Name

# build new tar file
tar czf 403-Lab-Manual-$Name.tgz 403-Lab-Manual.tex ./fig/*.eps ./section/*.tex ./bibs/*.bib ./code/*

echo
echo copy tgz to users machine:
echo scp /home/jontalle/403-source/LabManual/403-Lab-Manual-$Name.tgz .
