Protect your backups: off-site copies, verification, encryption and immutability
Last updated
A backup only helps if it is there, intact and restorable when you need it. MaintainHQ has several extra layers of protection for the times that matter most: a ransomware attack, a lost account, a mistake that deletes backups, or a backup that turns out to be broken.
You find these on the Backups page, on the Storage tab (off-site copies) and the Protection tab (per-site settings), plus the verify and test restore buttons in History. You do not need all of them on every site. This guide explains each one so you can choose.
Off-site copies to your own storage
Every backup is stored in MaintainHQ Cloud. An off-site destination copies each completed backup to storage you own as well, so you always have a second copy that you control. If a backup is ever missing from MaintainHQ Cloud, restores use your copy.
| Type | Providers | What you enter |
|---|---|---|
| S3-compatible bucket | Amazon S3, Backblaze B2, Wasabi, Cloudflare R2, DigitalOcean Spaces, MinIO or another S3-compatible service | Endpoint, Region, Bucket, Folder (prefix), Access key ID and Secret access key |
| Cloud drive | Google Drive, Dropbox, OneDrive | Nothing: you are sent to the provider to allow access, then back |
| SFTP server | Any server you can reach over SFTP | Host, Port, Username, Password or Private key, and the Folder on the server |
- On the Storage tab, press Add destination in the Off-site copies card.
- Choose the Provider and give it a Name.
- Under Copy backups of, choose All sites or one site.
- Fill in the details and test the connection.
- Save. New backups are copied there from then on.
Secrets such as access keys and passwords are encrypted and never shown again. For cloud drives, MaintainHQ only sees the files it creates. For SFTP, the server’s host key is pinned when you save, and if it later changes you are asked to accept the new one.
In History, each backup shows a badge per destination: copying, copied, retrying or failed. Failed copies are retried for about 9 hours and you are alerted if they still fail. Press retry on the badge to try again straight away.
Destination settings
Each destination has a switch to pause copying, a test button and a settings button for Retention and immutable copies:
- Grandfather-father-son retention: for each site, keep the newest copy of each of the last so many days, weeks and months at this destination, and delete older copies there. Off means every copy is kept.
- Immutable copies (ransomware protection): lock each copy for a number of days so nobody, including MaintainHQ or anyone with your keys, can delete or overwrite it. This needs an S3 bucket created with Object Lock (choose Governance, or Compliance, which cannot be lifted), or a Cloudflare R2 bucket with a matching lock rule.
Verification and test restores
A backup that cannot be restored is worse than none, because it gives false confidence. MaintainHQ checks backups in two ways.
- Verify: press the shield icon (Verify this backup now) in History. MaintainHQ checks the archive, its list of contents, the database dump and table counts. A Verified or Verification failed badge appears on the backup.
- Test restore: press the flask icon (Test restore) on a full backup. The site imports the backup into temporary tables, checks them (tables, row counts, site address, users and each file’s checksum) and removes them. The live site is not changed, but the import uses the site’s server for a few minutes. A Test restore passed or failed badge appears.
To run test restores automatically, set Test restores to Weekly or Monthly on the Protection tab. Failures raise an alert.
The Protection tab, setting by setting
The Protection tab has one row per site. These settings need the MaintainHQ plugin 3.19.0 or later; older sites show Update the plugin to 3.19.0.
| Setting | Choices | What it does |
|---|---|---|
| Change journal | On or off | Records database changes as they happen and sends them every five minutes, so you can restore to a chosen moment |
| Immutable backups | Off, 7, 14, 30 or 90 days | New backups cannot be deleted from MaintainHQ by anyone, including retention, until they are this old |
| Test restores | Off, Weekly, Monthly | Regularly test-restores the latest backup into temporary tables on the site, then removes them |
| RPO target | From the schedule, 1, 4, 12, 24 or 48 hours, or 7 days | Your recovery point objective: how old the newest good backup may be before the Backup health table marks it Not met |
| Your passphrase | Set a passphrase, or change or remove it | Encrypts new backups on the site with your own passphrase before they leave it |
Locked backups show a padlock badge with the date until which they cannot be deleted.
Encrypting backups with your own passphrase
With your own passphrase, the site turns the passphrase into a key and encrypts every new backup before it leaves the server. MaintainHQ never stores the passphrase. This suits sites with sensitive data where you want no one else able to read the backups.
- On the Protection tab, press Set a passphrase for the site.
- Enter a Passphrase of at least 12 characters, and enter it again.
- Tick I understand MaintainHQ cannot restore these backups without this passphrase.
- Press Turn on.
Encrypted backups show a Your passphrase badge. To stop encrypting new backups, open the same window and press Remove passphrase; existing encrypted backups still need it.
Which protection to use
| Situation | Turn on |
|---|---|
| Every site | An off-site copy, and monthly test restores |
| Shops and busy sites | The change journal and an RPO target of a few hours |
| Worried about ransomware or a compromised account | Immutable backups, and immutable copies at an off-site destination |
| Sensitive personal data | Your own passphrase, stored safely |