• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

cron running backup

mattsoftnet

New Member
there's no tech forum or anything, so hope this is where I should put this post.

how do I run a backup with a cron tab? do I call the cpbackup script with arguments or something?
 
There are many ways. If you want simplest, basically this does a mirror copy.

cp -Rfpud /path/to/be/backed/up /path/to/backup/dir

Set cron to run it whenever you want. I like this method because it's also easiest to restore deleted files from. For example....

/mnt/backup is a 250 gig second drive...
/home is what you want to back up from the first drive.

cp -Rfpud /home /mnt/backup/

If you have a LOT in /home, have it run like 2AM because it will take a while. I will occassionally do these manually once in a while just to create "easy to restore from" backups. This is also the cheapest way without need of any more hardware or software other than the software you already have, and possibly a new second drive if you dont already have one.
 
Back
Top