Skip to content
commitius

Server backups

Backups with a tested restore

Can DemirFounder & authorUpdated

Server backup means regularly taking copies of a server's files and database that you can bring back after corruption, deletion or an attack. A backup is useful not because it was taken but because it can be restored. A server whose backup has never been tested has a backup that only looks like it exists until the day you need it.

How do you back up a server?

A backup routine usually goes like this.

  1. Decide what to back up. Site files, the database, config files and mailboxes.
  2. Take the database copy with a method that gives a consistent result while it runs. Copying the files of a running database directly can produce a broken backup.
  3. Keep the backup somewhere other than the server itself. If the same disk fails, both go.
  4. Delete old backups on a schedule. Daily, weekly and monthly copies can be kept together.
  5. Check that the backup actually restores.

How often should you back up, and when should you test a restore?

Back up regularly, daily or as often as your data changes. Restore tests should be regular too. On some servers, such as an ERP where downtime is expensive, you should restore the backup somewhere separate every day as a drill and check the data.

We explain how to test a website backup in is your website backup working, and how to test it, and what to look for on an ERP database in how should you back up an ERP database.

What should you watch out for?

  • Having only one copy. A backup stored next to the server goes down with it.
  • Trusting the hosting company's snapshot. Some companies sell this as an add-on and the scope is in the contract. Find out what it restores, for how long and how.
  • Failures that notify nobody. A backup can fail silently. If no alert fires on failure, you find out months later.
  • Not estimating restore time. Getting data back can take hours. Know in advance how long your business can wait.
  • A backup the attacker can reach. If an attacker gets into the server, they can delete a backup reachable from it. Giving the backup location write-only access is a good safeguard.

Who needs what?

Every server needs a backup, it is not optional. What differs is how often you take it and how often you can test a restore. For a brochure site that rarely changes, a weekly backup and a test every few months can be enough. A store that takes orders, or an ERP, needs daily or more frequent backups and regular restore drills.

Setting up backups when the server is first built costs less than adding them later. See server setup for that.

What do we do?

We set up the backup routine, make failures send an alert, and actually test a restore and show you the result.