How do i backup my website?

I need to backup my whole website to my computer. I understand DH keeps a snapshot, but i need a full backup. I can alway copy and paste from my FTP but that sends the server load up high for acouple hours and prob messes up other users on the same server. Im on a shared server and had problems in the past with my account causing server load problems. Is there anyway i can get my website sent to me by dreamhost… through email or something in .rar file?

thanks Deals & Coupon Codes. Why Pay Retail?

Try this.

  1. Make this file on your home computer, called

Replacing with your site name. This will create files in the base dir with names like 2005_05_01-site_backup.gz. (Note this script will make complete backups of your entire site. Change to certain folders).
This uses the -r switch which filters through all your folders. You could also use -1 to make it faster if it’s too slow/resource hungry.
2. Make this file on your home computer too called crontab.txt

(You might/should be able to use "0 1 * * */3 bash ~/" instead).
This will backup your site every 3 days at 01:00. I’d suggest you do it at a quiet time for your site as it would probably take a while to do.
3. Login to FTP and upload these files to the base dir (ie not in the folder)
4. Login to SSH and type

(you can use “crontab -l” to make sure it’s added it properly).

Possible wiki topic: using rsync and cygwin to keep a local copy of your site. Bonus points if you can explain in cut’n’paste fashion how to get an ssh key to work to automate login :slight_smile:

I use wget to mirrior my sites on the FTP level. Mostly cause I don’t allow shell access for all the websites I’m keeping backups of and I need a single tool to do it all.

Down side with wget is that it doesn’t recongnize . files nor does it do any time stamp checking (like rsync does–but rsync requires an active shell account).