Backups
Every night, Axel writes one archive to each target in backup (Configuration):
axel-<install>-<time>-<version>.tar.zst.age, holding a Postgres dump, every object, the config and the secrets. It is
encrypted to the recovery key, whose private half is never on the server, so the server can write backups but not read
them.
- Each target keeps this install's newest
keeparchives. Archives from other installs, such as a restore drill on another server, are left alone. - Only completed archives count: a local one is renamed into place, and an S3 one exists only once its upload completes.
- With S3, turn on Object Lock, or pull the archives to another host, so a compromised server cannot delete them.
Check backups
sudo axel server doctorIt shows the last backup, its size and the next run, and fails when the newest is more than 36 hours old or the last run failed. Axel also emails the admin about a failed or out-of-date backup.
To take a backup now:
sudo axel server backup nowTo check that a recovery key opens the backups:
sudo axel server backup test-keyRestore
Restore on this server or a new one, with the installer of the version the archive names.
-
Copy the archive into the current directory.
-
Restore it, and give it the recovery key:
sudo AXEL_INSTALLER_IMAGE=docker.io/veritassi/axel-installer:<version> axel server restore axel-<install>-<time>-<version>.tar.zst.ageOn a server with no registry, add
--bundlewith that version's unpacked bundle.
It verifies the whole archive first (--dry-run stops there), then stops Axel, restores the database, objects, config
and secrets, starts it and runs the checks. An archive from another Axel version is refused: restore it with that
version's installer, then upgrade.