Creating a simple backup script

Hi peeps,

Its years since I touched unix scripting in any great depth but I now need to create 2 scripts Im hoping someone can help me with or where I can find one

Script 1
Basic Backup script

All it needs to do, at the moment is make a copy of a specific folder in /usr/home and then tar it together, gzip it and then move it to a web accessable folder for download, renaming the file to a meaning full date, ie backup090905.tar.gz if poss.

Script 2
Rubbish deletion script.

Now this folder has several hundred folders and subfolders containing images. Some of them have *.bak and thumbs.db in them and over several hundred folders it mounts up. Im looking for a script to create a file so I can review it and then if if its all ok, delete it.

Anyone know whats required/where I can get one from. I have googled for it !

Cheers

Stu

 

 

 

 

Top