Forum Moderators: phranque
I keep offline copies of most of my articles, but some more informal ones (site blogs etc.. etc..) have not been backed up.
I through about using a scrapper program to make a static copy of my site just in case the unthinkable (Fire, Earthquake, Tsunami) happens and I lose it, but I wanted to be some insight from you guys first.
How the rest of you backup your site?
We also take snapshots every now and then and transfer everything to our office (which takes all weekend long on 2 T1 lines)
The best solution is really to store everything in a 'hotbackup' capable database
Scripts
CGIs and support scripts are in a CMS on my local machine. Simple scripts exist to reload/resync them with the server if it is ever required
Data
It's a dynamic site with about 20meg of data when zipped up.
Every day, I download the changes log. I got scripts that can resync the main database from a set of changes log.
About once a week I zip the whole thing up and download it.
Automatically, once a week, a script zips it up and emails it to a gmail account.
About several times a year, I test the restore/reload processes on another server -- you'd be surprised how many little details that helps iron out before you have to do the whole thing for real with the clock ticking.
btw.: It's being disupted whether this is legal in my country at all. Consumer rights and privacy activists claim that site owners should only be allowed to keep the logs for 30 days, the more hardcore ones among them actually claim that site owners should not even be allowed to log the IP-address at all...
killroy, we compress our Apache logs daily/weekly/monthly depending on the traffic of the particular virtual domain.
The compressed gz files are then automatically renamed access_log.2005.03.gz, for example, and the regular access_log zeroed out at midnight and ready for the next log period.
The compressed files reduce the file size by 90% or more, so it's much quicker to download locally for log analysis.
As a side note, most Apache configurations I am aware of limit the log file size (per virtual) to slightly more than 2GB, then the server comes to a screeching halt. So you may want to look in to a log compression script to reduce the sizes as soon as possible.
Steve