Backing up and restoring your server
How your server's databases are backed up, how long backups are kept, and how to restore, download or upload one.
Every database on your server is backed up for you, every three hours, and just before every upgrade. Backups are kept in another datacenter than your server, so losing the server does not take them with it.
How long backups are kept
- Every backup of the last day: one every three hours.
- Then one a day, for a week.
- Then one a week, for four weeks.
Backups you take yourself with Back Up Now are kept besides: the newest ten of them, however old.
Every backup is checked
Each backup is checked as it is taken: every database dump is read back in full, and every database must hold tables. A backup that fails a check is not kept, and we are told at once. Each day we also check that every attachment your newest backup lists is in the backup store.
If a backup could not be taken, the Backups tab shows it as failed. Your other backups are not affected.
Staging copies are not backed up. Make a new one from production at any time.
Your attachments
The files attached to your records are kept on your server's disk with its databases, and every backup includes them, so restoring a backup brings back every file its records use. A file is stored once in the backups, however many of them hold it. Files count towards your server's storage.
Restore a backup
- Open your server from Servers and go to the Backups tab.
- Find the backup from the time you want and click Restore, then type RESTORE to confirm.
The restore replaces every database the backup holds with its copy, and runs in the background while the server's page shows how far it has got. Everything written since the backup was taken is gone, so take one with Back Up Now first if you may want to come back to the present.
Download a backup
Click Download beside a backup. Its file is prepared on your server first, and the button says Preparing… meanwhile. When it is ready the download starts by itself while the page is open; if that takes more than a few minutes we email you as well.
The file is in the same format as a backup made with Backup in a Fullfinity database manager: a .zip holding the database and all of its attachments. A server with one database downloads that database's .zip, named after it. A server with several downloads one .zip that holds a .zip for each database. Restore one of these into any Fullfinity installation with Restore in its database manager, or upload it to a server here.
Upload a backup
- On the Backups tab, click Upload Backup.
- Choose the file: a backup downloaded from this page, or one made by Backup in a Fullfinity database manager.
- Choose Restore as a new database and give it a name, or leave the name blank to use the one in the file. Or choose Replace a database on this server and pick the database.
- Click Upload and Restore. Replacing a database asks you to type its name to confirm first.
The file goes straight to the backup storage, and the page shows how much of it has been sent. Keep the page open until the upload has finished. The restore then runs on your server and shows its progress at the top of the page like any other change, and you can leave.
The database is brought up to the version of Fullfinity your server runs. A file that holds several databases restores each one under its own name, or, when you replace a database, only the one with that name.
A database restored as a new one is a copy: it sends no email and runs no scheduled jobs until an administrator signs in to it and clicks This Is My Live Database. A database you replace stays the live one.
If the file is not a Fullfinity backup, or something in it cannot be restored, the restore stops and says why, and your server's databases are left as they were. Replacing a database removes what it held before, so take a backup with Back Up Now first if you may want it back.