Skip to content

Restore

  1. Open the stack → Backups tab. Every backup is listed with its date and size; backups made before an update are marked.
  2. Click Restore next to the backup you want.
  3. Type the stack’s name to confirm and click Restore.

What happens:

  1. the stack is shut down,
  2. its current folder is moved to /opt/stacks/.trash/<name>-before-restore-<date> – nothing is deleted,
  3. the files from the backup come back,
  4. the databases start empty and are loaded from their dumps,
  5. the whole stack starts again.

The output is shown live and saved in the stack’s History.

Settings → Backups lists backups by run: one nightly run contains every stack and the panel’s own settings; a backup of a single stack or a backup before an update is a run of its own. Open a run to see its stacks – including ones you have deleted since – and restore any of them.

Open a run and click Restore all stacks. Every stack of that run is restored one after another, exactly as above. The panel’s own settings stay as they are.

Open a run in Settings → Backups that still contains the stack, and click Restore next to it.

In the restore form, change Restore as stack to a new name, e.g. nextcloud-test. The backup is restored as a new stack next to the original.

When a server dies, install Stackmoor on a new one (Linux or Unraid) and open the panel. Instead of creating an account:

  1. click Restore a server from a backup,
  2. enter the storage (provider, address, bucket, folder, keys) and the encryption password of the old server, and click Connect,
  3. choose a backup – only complete runs are offered (they contain the panel’s settings),
  4. click Restore this backup and follow the progress.

Stackmoor restores, in this order:

  • the panel’s settings: your administrator account (with its password), backup schedule and retention, local domains and DNS keys,
  • every stack of that run, with its databases,
  • Caddy with its certificates, if you used local domains.

Then log in with your previous account.

Backups made by version 0.5 can be used too: their snapshots are grouped into runs by time.

All stacks share one repository in the bucket, but a restore only downloads the data of the backup you picked. Restoring a 500 MB app does not download a 50 GB one stored next to it.