Backing Up Both Your Sites and Servers

This guide is only relevant if you are managing your hosting server and WordPress installation yourself. If you followed my BlueHost guide (which I highly recommend for those who are still learning how to blog) then this article is not applicable, because BlueHost take care of back ups for you.

A reader was checking out my post on weekly server security and maintenance and posted an excellent question – what about backups? And do I backup each WordPress site individually, or just backup the entire server?

That’s exactly what I am going to discuss in this post.

I use two backup solutions and backup each of my WordPress sites individually amd also my entire server. Let’s look at why I do that and how.

Individual WordPress Site Backup

How?

I use the excellent UpdraftPlus plugin for WordPress and have a premium licence. The base plugin lets you setup a schedule to make backups of your site (backing up both the files themselves and also the database), but you can only store those backups on your server itself. There is no redundancy and if your server goes down, so do your backups. You would need to manually login and download your backups each time they are made, and also delete them periodically to make space for new backups.

The Updraft Plus backup interface

With the premium licence though, I can connect the plugin to my Amazon S3 account and automatically send the backups there. This means there is literally nothing for me to do and/or worry about! I set my backups to a particular schedule (I personally like to backup the database multiple times per day and backup the files anywhere from once daily to weekly) and then the plugin takes care of the rest – including securely and automatically sending it to my Amazon S3 account where it can be stored cheaply.

From Amazon S3, if I ever need to retrieve a backup, I can download it from there to my PC, and then restore it from within the plugin, or the plugin itself can download the backup files to my server directly and take care of the entire restore process for me.

It’s incredibly easy, and honestly, having previously done manual backups for several years, and also attempting multiple restores and site moves, this plugin just makes it so easy and hassle free. It runs itself and you don’t have to worry about it.

The guides that Updraft has on setting all this up are much better than anything I could produce, so if you do end up using it, follow their instructions. They are exactly what I follow too.

Why?

As I mentioned at the start of this post, I make backups of my server as well, so why do I need to backup all my WordPress sites too?

Firstly, sometimes I might be hosting multiple different sites on one server. If I simply want to restore a backup from one site, it makes no sense to also overwrite/restore all the other sites too.

Secondly, I can run and store more copies of my individual site backups more frequently and more cheaply that I can server backups (better retention, freshness and cost).

Server image backups are traditionally more expensive to store, and as a result you will take less of them. This means that the data within them is older… and if you make frequent posts and updates to your site, or even if you have user forums or similar, the most recent content could be lost. With my backup schedule I know that I will never lose any/much content if I need to restore a backup.

Thirdly, sometimes I might be testing or developing something on my site, and break it. I might also know how/where I broke it and want to restore that specific thing – be it an older version of a template file, or a database table. Again, it would be silly to restore an entire server to undo the mistake. Instead I just download my individual backup and restore only that file/table that I need.

Server Backup

By now you’re probably thinking, so why do I need a sever backup then? Good question! First though, how do I backup my server?

How?

Backing up your server will differ from one hosting provider to another, but in general they will let you set a schedule of how often you wish your server to be backed up and how many copies you want to keep. If you are also backing up your sites as above, then a weekly schedule should be fine, and you might want to keep say one months’ worth.

Once you’ve entered your preferences, then your host will take care of the rest. On the schedule that you’ve set, they will automatically create an exact image copy of your entire server. Everything on your server at that point in time will be saved and can be restored at the click of a button, should the need arise.

An example of the UpCloud server backup settings page is at the top of this article.

Why?

You might need to restore your entire server, if, for example, you make some kind of server level configuration change that completely messes things up, and you don’t know how to reverse it, or if your server gets compromised, or if you go to upgrade the specifications of your server (more RAM, CPU, storage, etc) and something goes wrong. We’re talking about major issues like that.

It basically means that in the event of a major disaster, you can at least get back online very quickly (within minutes), without having to start from scratch and setup another server from the beginning. Your sites can get back online fast and you can keep serving your visitors.

It also means that any additional tweaks and changes that you have made on a server level are saved within each backup, as well as any particular settings that some special sites might need. You can rest assured that those are being backed up and can be restored as and when you need them.

Conclusion

For me, backups are all about covering my bases and sleeping well at night. I want to know that should something happen, my sites can be back online in no time at all and serving my visitors: (1) in the shortest amount of time (ie minutes) and; (2) with the least amount of content lost – preferably none. The setup I have outlined above enables me to do that.

By Sean Robinson

My name is Sean Robinson and I’ve been building and running my own blogs and websites since 2004, and have been doing it full-time for over a decade. If you'd like to know more about my story, please click here.

9 comments

  1. It just makes sense to back everything up, especially if they hold value to you. It would be a shame to be earning well from a site and not backing it up only to lose everything. When it comes to servers, I feel backing them up is just as important but what are your thoughts on having a secondary server for if the first one (assuming you only use one) has issues? I recently had three sites go down, all on the same server do to connection issues on their behalf. It took nearly 9 hours to fix but since I still had my old server, I put the most important site back on that for the time being. Now I am considering keeping it just in case.

    1. Hi Kevin, I don’t need backup servers, because when my disks are imaged/backup I can then easily spin up another VPS and restore the image to that with very little downtime.

  2. I use a combination of backup systems for the best redundancy. First, I use the aforementioned Updraft Plus plugin to push the database to Google Drive. Secondly, I use rsync to keep a copy of the public_html directory on a remote server. Finally, I take weekly VPS snapshots in case of a disaster so I can restore the entire VM. Paranoid or careful? You decide!

  3. Why didn’t I think of using a plugin before? I’ve been manually backing up using phpMyAdmin for a while now. This should make it nice and easy. I see Dropbox is a feature of Updraft, I have an upgraded account so storing all my files and databases there should be no problem.

  4. Duplicator has been my choice of backup plugin for some time but I’m having issues with it lately. Updraft seems like a viable alternative and I’m glad to see it supports Backblaze, definitely will give it a try. I’ve never bothered with backups of the entire system, they cost too much and I don’t think I’ll ever need them. If something goes wrong, I’ll spin up another server and start again.

  5. I’m using Updraft free right now, the premium features are enticing but the price is a little steep for me. I just have to deal with the basic Google Drive support, it’s not a big issue. As for backing up the VPS, is there something I could use that is free? Snapshots are not cheap to store with my provider.

Leave a comment

Your email address will not be published. Required fields are marked *