Last week was a bad week, following on from one of my blogs being hacked I also experienced one of my forum accounts being accidentally deleted by our provider. It wasn’t just my host that was completely bloody incompetent, the backups I had of that site had also failed so in the end I had to resort to a backup from 2005, not good. So on the subject of backups, here’s the methods I use on other sites (and the old one now) and also some other suggestions.
Static vs Dynamic Sites
A static site is one that once uploaded doesn’t change, this means you already have one backup on your local machine and to protect from multiple failures this should be backed up onto other machines/mediums. Then if it does fail it will just be a case of uploading again. However nowadays most sites are in some way dynamic and are being continually updated so you need a more proactive back up regime.
Let the Host Do It
Many (more competent) web hosts offer their own backup service. This may be included in the package or as an optional extra. As your server/site is already with your host they should have direct access to the data thus not clogging your available bandwidth. Even if you do use your hosts backup services I would advice also taking your own just to be on the safe side (some hosts that do backups do not guarantee their effectiveness).
Backup scripts on your server
You can either use a third party script or a plugin for your CMS. I use WP DB Backup (part of the install now) to backup my Word Press databases on a daily basis and email the resultant files to my GMail address (this is a great way of using all those free GBs). Another method would to FTP the files to another server, you can do this in a few ways:
- Use multiple hosting accounts with different providers (it will use bandwidth on both), this is useful for people with a few sites
- Set-up your own local FTP server (for windows checkout XAMPP) and use a service such as DynDNS to give your home server it’s own IP address on the NET (you will need to mess with forwarding rules on your firewall so this is probably the most techie option)
- “Phone a friend” and ask if you can have an FTP account on his server for backups and you’ll return the favor
Backup Locally
Instead (or as well) of running scripts on you server to backup your data there are also applications that you can run locally that automatically download backups for you. The excellent MySQL Administrator has a schedule option which can be used to download your databases on a regular basis.
Dedicated Backup Companies
There are various companies that specialise in backing up your data, I’ve not had any experience with these, but if you have please let us know.
I’m very interested to hear other peoples backup regimes, recommended scripts, providers, etc. If We get some good suggestions I’ll put a full guide together.