I know that I need to backup my database every once and a while, but I’m lazy and forgetful. I end up backing up maybe 4 or 5 times a year. Ideally, I want to backup every month at least. The bad news is, my host (1&1) doesn’t have any automatic backup, so I had to make my own. I tried Googling, but didn’t find anything that really fit my need.
I did find a script by David Walsh that almost worked. I used most of the original script, but had to remodel it a bit to fit my needs. View the backup script
My host, 1&1, claims to allow gzip compression through Apache. However, when I try to set it up along with etags and expires it doesn’t seem to work. I devised this fancy script to add cache-control and etag headers to js, css, and xml files. View the PHP script