Skip to content
    Guide

    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.

    Destinations you can add
    TypeProvidersWhat you enter
    S3-compatible bucketAmazon S3, Backblaze B2, Wasabi, Cloudflare R2, DigitalOcean Spaces, MinIO or another S3-compatible serviceEndpoint, Region, Bucket, Folder (prefix), Access key ID and Secret access key
    Cloud driveGoogle Drive, Dropbox, OneDriveNothing: you are sent to the provider to allow access, then back
    SFTP serverAny server you can reach over SFTPHost, Port, Username, Password or Private key, and the Folder on the server
    1. On the Storage tab, press Add destination in the Off-site copies card.
    2. Choose the Provider and give it a Name.
    3. Under Copy backups of, choose All sites or one site.
    4. Fill in the details and test the connection.
    5. 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.

    Protection per site
    SettingChoicesWhat it does
    Change journalOn or offRecords database changes as they happen and sends them every five minutes, so you can restore to a chosen moment
    Immutable backupsOff, 7, 14, 30 or 90 daysNew backups cannot be deleted from MaintainHQ by anyone, including retention, until they are this old
    Test restoresOff, Weekly, MonthlyRegularly test-restores the latest backup into temporary tables on the site, then removes them
    RPO targetFrom the schedule, 1, 4, 12, 24 or 48 hours, or 7 daysYour recovery point objective: how old the newest good backup may be before the Backup health table marks it Not met
    Your passphraseSet a passphrase, or change or remove itEncrypts 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.

    1. On the Protection tab, press Set a passphrase for the site.
    2. Enter a Passphrase of at least 12 characters, and enter it again.
    3. Tick I understand MaintainHQ cannot restore these backups without this passphrase.
    4. 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

    A sensible starting point
    SituationTurn on
    Every siteAn off-site copy, and monthly test restores
    Shops and busy sitesThe change journal and an RPO target of a few hours
    Worried about ransomware or a compromised accountImmutable backups, and immutable copies at an off-site destination
    Sensitive personal dataYour own passphrase, stored safely

    Frequently asked questions

    If I add an off-site destination, are old backups copied too?
    New backups are copied from the moment you save the destination. Earlier backups stay in MaintainHQ Cloud.
    What happens if I delete a backup that has an off-site copy?
    The archive is removed from MaintainHQ storage, but the copy in your own storage is kept.
    Can MaintainHQ support recover an encrypted backup if I forget the passphrase?
    No. The passphrase is never stored, so without it nobody can decrypt those backups. Keep it in a password manager.
    Does a test restore affect my live site?
    No. It imports into temporary tables on the site, checks them and removes them. It does use the server for a few minutes.

    Let MaintainHQ run the routine

    Updates with automatic rollback, backups, uptime, security checks and client reports, with Gus to fix what breaks.

    Start free trial

    From £29 a month for up to 2 sites. Every plan starts with a 14-day trial.