backup using cron to USB

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

backup using cron to USB

Post 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 :)
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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:
Post Reply