Google
 
Web unafbapune.blogspot.com

Saturday, March 11, 2006

 

Backup.sh

A simple little script that does the backup for me to a remote machine:
backup.sh
---------
filename=`date +%y%m%d`-`date +%H%M%S`-xyz-projects.tar
echo $filename
tar cf $filename ProjectXyz*
gzip $filename
scp $filename.gz hchar.desktop:/home/hchar/backup/
rm $filename.gz

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?