Nextcloud AIO backup and restore checklist

How to restore Nextcloud All-in-One from its built-in Borg backup, as a printable checklist: what you need (the Borg repository and its encryption password), restore steps on the same host or a new server, the gotchas, and how to check it worked.

Written for Nextcloud AIO v15.0.2, checked against the official docs on 2026-11-11. Always restore the same version you backed up.

Open this in Lab Lifeboat Quarterly restore-drill reminder (.ics)

Lab Lifeboat fills in your own paths, hosts and backup locations, adds your other apps in restore order, and works offline. Free, no account, nothing leaves your browser. Example paths below (under /opt and /mnt) are placeholders: use yours. Print this page with your browser’s Print command.

What to back up

Restore on the same host

  1. Open the AIO interface (port 8080 or 8443), go to Backup and restore and reveal all options.
  2. Pick an archive and click Restore selected backup.
  3. When it finishes, click Start and update containers.

Restore onto a new server

  1. Install a fresh AIO mastercontainer with the same install command as before (see Nextcloud AIO on a VPS).
  2. In Restore AIO instance from backup, enter the backup location (/mnt/backup/borg) and the Borg encryption password.
  3. Test the location and password. For an ssh:// remote, add the public key AIO shows to ~/.ssh/authorized_keys on the backup host, then test again. The address must include @ and :.
  4. Select the archive and click Restore selected backup, then Start and update containers.
  5. Point your domain's DNS at the new server if its IP changed.

Gotchas

How to test your Nextcloud AIO backup (restore drill)

A backup you have never restored is a guess. Run this drill on a spare machine every few months; it never touches your live server.

  1. Quick test first: run the backup integrity check in the AIO interface, or trigger it from a script with CHECK_BACKUP=1. The result is in the logs of the nextcloud-aio-borgbackup container.
  2. Prove you can reach the Borg encryption password without the server, from wherever you keep it offline.
  3. Full test: copy the Borg repository to a spare VM (the README’s AIO-to-AIO migration packs it with tar -czvf borg.tar.gz borg), so the test never writes to your real repository.
  4. Install the AIO mastercontainer there with the same command, choose Restore former AIO instance from backup, enter the location and password, pick the newest archive and click Restore selected backup.
  5. Don’t move DNS or your reverse proxy to the test VM. The restored instance keeps your domain, so a full login test means moving DNS, which is the planned migration in the README, not a drill.
  6. The test VM now has your backup settings too. Turn off daily backups there before you leave it running, then shut it down and delete it.

Check the restore worked

Where Nextcloud AIO fits in a full homelab restore

Restore the hypervisor first, then the password manager (it holds the other secrets), then the reverse proxy, then the apps:

  1. Proxmox VE
  2. Vaultwarden
  3. Caddy
  4. Home Assistant
  5. Nextcloud AIO (this page)
  6. Immich
  7. Paperless-ngx
  8. Jellyfin

FAQ

How do I restore Nextcloud AIO on a new server?

Install a fresh AIO mastercontainer with the same install command, choose Restore AIO instance from backup, enter the Borg backup location and encryption password, test them, select an archive, click Restore selected backup, then Start and update containers.

What if I lost the Borg encryption password?

Then the backup cannot be restored. That is why the password must be kept offline, for example in a password manager that does not run on the same server, or on paper.

Does the AIO backup include my other Docker containers?

No. It covers the Nextcloud AIO containers and their data only. Back up and restore anything else separately.

How do I test a Nextcloud AIO backup?

Run the backup integrity check in the AIO interface (or CHECK_BACKUP=1), and for a full test restore a copy of the Borg repository onto a spare VM with Restore former AIO instance from backup. Don’t point DNS at the test VM, and switch off its daily backups.

Related guides

Sources

Part of Lab Lifeboat, the free offline homelab disaster recovery planner from HomelabWise. How we research