in , ,

Backing Up Both Your Sites and Servers (Updraft & Disk Images)

Backing up is critical and something that can be setup and forgotten – when done right

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 VPS?

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 AND also my entire VPS. Let's look and 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 main screen of Updraft telling me my backups are running

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.

My backup schedule, sending everything to Amazon S3 automatically

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 VPS 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 VPS. 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 VPS backups (better retention, freshness and cost!). VPS 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 something, 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.

VPS Backup

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

How?

Backing up your VPS will differ from one hosting provider to another, but in general they will let you set a schedule of how often you wish your VPS to be backed up and how many copies you wish 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.

Linode's backup setting screen

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 VPS. Everything on your VPS at that point in time will be saved and can be restored at the click of a button, should the need arise.

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 stuff like that.

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

With over 600 people on the site at once, you don't want to be down for long!

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 up in no time at all and I will be 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.

 

Written by Matt

I've been running web hosting servers and building websites for myself using Wordpress for 14 years. My network of sites get a TON of traffic and I use various models to monetize them - mainly display ads and affiliate marketing. Along the way I've picked up hundreds of tips and tricks that I think would be useful for anyone looking to make a website and here is where I'm going to share them. Find me on Twitter too.

9 Comments

Leave a Reply
  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.

    • 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 Reply

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

How To Track WordPress Site Searches Using Google Analytics (& Why You Should)

The Easiest SEO Win - Keywords in Titles