Nearly Automatic Backups

Harvey

Registered
Hey guys,

Could anyone help me learn what it takes to put together a script to run a backup of a fixed
directory on command?

What I would like to do, is have a script that will simply

cp directory/* directorybackup/
cp directory2/* directorybackup2/

etc...

When I run a single command.

The only thing I need to watch out for is that the destination drive is a detachable device
that is not always there. It's a firewire HD. Maybe this doesn't matter, but I've never done
this sort of thing before so...

I imagine I could create some kind of shell script that will run thru the motions for me.

It would be even cooler if I could throw in a command to tar the files on the backup drive
as well after they are copied over.

Let me know if anyone has done anything like this, or knows of any software that does!

Thanks!

-Harvey
 
You could give this Automated Backups with Existing Tools a try. It is a backup script and they also show how to set it up with cron so it is fully automatic. I have not tried it yet myself, my firewire drive should come next week. I found some interesting info in the comments at the end you might want to read as well.
 
Back
Top