Complete restore of the appliance

When the appliance is lost (broken disk or machine), a new appliance, installed from the ISO, can put everything back from a backup: configuration, domain…

When the appliance is lost (broken disk or machine), a new appliance, installed from the ISO, can put everything back from a backup: configuration, domain, mail, databases, services, certificates and files. The procedure is on the first page of the first-boot wizard, entry «Restore from a backup», which opens the «Restore from a backup» page; the full scenario is in Part III («Replacing the broken appliance with the complete restore»).

What you need

  • The storage with the backups (folder or connected disk, SMB share, S3) and its credentials. Fields: «Where the backup is», «Folder» / «Server» / «Share» / «User» / «Password» / «SMB version» / «Mount options» or «Endpoint» / «Bucket» / «Prefix» / «Region» / «Access key» / «Secret key».
  • The archive password of the original appliance («Archive password»: the one set in Settings › Backup on the original appliance).
  • A backup made with a version of Atlas that saves the rebuild data (backups from earlier versions are not enough: «No complete backup of the appliance on this storage. Backups made before this version are not enough for a complete restore.»).

How it goes

  1. «Look for backups»: the procedure opens the storage and shows the list of «Backups available» (date, type, id). Those made in «Configuration only» mode are marked («configuration only: no shared files or mail»): they contain no shared files or mail. The most recent one that contains everything is preselected.
  2. «Restore» and confirm: «The restore replaces all the configuration and data of this appliance with those of the chosen backup, then reboots it. Continue?»
  3. The page shows «Restoring» with the phases: «Opening the backup», «Checking its content», «Software versions», «Stopping the services», «Configuration and data», «Service credentials», «Service images», «Databases», «Starting the services», «Final check». It can take from a few minutes to a few hours; the page refreshes by itself.
  4. When it finishes the appliance reboots («The appliance reboots in N seconds: the network, the name and the proxy take effect, then the login page appears.»). Read «To check» and the «Restore log».

If the restore stops, the reason is on the page; the phases already completed do not need to be repeated («Retry»).

Frequent errors

Message Meaning
«The storage cannot be reached. Check the address, the share and the credentials; if the NAS used this appliance as its DNS server, give it another one.» Check address, share and credentials. If the NAS used the lost appliance as its DNS server, give it another DNS: as long as it looks for a DNS that no longer exists, mounting fails after about 20 seconds
«This storage holds no appliance archive.» The storage is not the right one
«The archive password opens no archive on this storage.» Wrong password
«No backup on this storage is enough for a complete restore: they were made before this version.» The backups are too old or partial

For the technician Behind it there is edon-backup-dr (list, start, run, status): the request arrives on stdin or in a temporary file, never in the arguments; the restore runs in the transient unit atlas-dr-restore; the state is in /run/edon-backup/dr-restore.json and the final report in /var/lib/edon-backup/dr-restore-report.json. Every scheduled backup (even «Configuration only») writes to /var/lib/edon-backup/dr the database roles, the schemas, the containers’ secrets, a manifest.json (packages, interfaces, units, services) and saves the services’ images with podman save; PostgreSQL’s data folder is not in the backup (the dumps are enough). The network is restored only if the interfaces have the same names, otherwise the new one stays and it is reported. A service without its image in the backup does not restart and is reported. It restores onto a new installation: on one already configured force is needed. The design is in info/done/DR.md.

LET’S TALK INFRASTRUCTURE

Control starts with a conversation.

Tell us about your infrastructure. Let’s start with what you actually need.

Talk to an engineer