Page 1 of 1

backup using cron to USB

Posted: Sat Mar 10, 2007 3:15 pm
by alex.barylski
Here is what I think I need to do:

1) Mount USB drive?
2) rm previous contents
3) copy htdocs folder to USB
4) umount USB drive

I'd like this in a shell script which is called by a cron at midnight local time according to my server clock as it's in the same room as me :P

Can someone show/explain the steps in greater detail so I can get this done ASAP, thanks :)

Posted: Sat Mar 10, 2007 3:32 pm
by John Cartwright
I typed in "shell script backing up to usb" in google and found a hellavalot of good sites. So I have to ask, did you google yet? :wink: