Nextcloud AIO Backup and Restore with BorgBackup
On this page
Pinned version: Nextcloud AIO v15.1.1 (GitHub release, published 2026-11-20 01:17 JST / 2026-11-19 16:17 UTC; includes Nextcloud 35.0.3). Last checked: 2026-11-23.
Nextcloud All-in-One ships BorgBackup-based backups from the AIO interface: incremental, compressed and encrypted. The AIO README recommends creating a backup before every container update, then restoring with one click if an update fails. Backups can target a local path or a remote Borg repo over SSH.
Install AIO first with our Nextcloud AIO on a VPS guide. For sizing and host choice see cheapest VPS for Immich or Nextcloud.
What AIO backup covers
From the AIO README:
- Backups are restore points for the whole AIO instance (not a substitute for exporting individual files to another cloud).
- The encryption key is shown in the AIO interface — store it offline. Without it you cannot restore.
- After the first backup you can enable daily or weekly backups (weekly: pick one weekday, in UTC). Enabling a schedule also lets you turn on automatic updates of containers, Nextcloud and apps. For a weekly backup, those automatic updates, including Nextcloud apps, run on the same day.
- Local restore uses rsync-style updates (fast). Remote Borg restore extracts from the remote (slower; may download a full archive).
Step 1 — Open Backup and restore
Sign in to the AIO interface (ports 8080 or 8443 as in the install guide). Scroll to Backup and restore.
Step 2 — Local backup location
Enter a directory on the host that Docker can write (often a mounted disk dedicated to backups). Submit the location, then use Create backup. Wait for the success message with the timestamp.
Run a backup before you click Start and update containers.
Step 3 — Remote Borg repo (optional)
Nextcloud's remote Borg blog guide documents SSH remotes:
- Enter a remote location such as
ssh://user@host:port/path/to/repoand submit. - Click Create backup. The first attempt shows an SSH public key — add it to
~/.ssh/authorized_keyson the backup host. - Create the backup again. Confirm the success timestamp.
Daily or weekly schedules work the same once the first remote backup succeeds.
Step 4 — Restore on the same host
In Backup and restore, reveal all options, pick an archive, and Restore selected backup. When finished, start (and update) containers from the AIO panel.
Step 5 — Restore onto a new VPS
- Install a fresh AIO mastercontainer on the new host (same install command as the VPS guide).
- In Restore AIO instance from backup, enter the local path or remote
ssh://…URL and the Borg encryption password. - Test the path/password. For SSH remotes, authorize the displayed public key, then test again.
- Select the archive → Restore selected backup.
- Start and update containers.
QA notes in the AIO repo also accept user@host:/path/to/repo form; the URL must include @ and :.
Step 6 — After restore
Log in as admin, confirm files and apps, then schedule daily or weekly backups again. Keep the encryption key in your password manager (Vaultwarden is a common self-hosted place for it).
FAQ
Which AIO version does this match?
v15.1.1, latest non-prerelease on GitHub as of 2026-11-23 (Nextcloud 35.0.3 included). From v15.1.0 the AIO interface can schedule daily or weekly backups. Older guides may still mention v14.4.x or v15.0.x; update from the AIO interface after a backup.
Are Borg backups enough for ransomware?
They help against local disk loss and failed upgrades. Keep the encryption key and at least one copy on another machine or provider. Pair with your own file sync habits if you need per-file history outside AIO.
Does this back up only Nextcloud files?
It backs up the AIO-managed instance (Nextcloud data and the stack AIO controls). Community containers and host-level data outside AIO volumes are out of scope unless you back them up separately.
Sources
- Nextcloud AIO README, Backup: https://github.com/nextcloud/all-in-one#backup (checked 2026-11-23)
- Nextcloud blog, remote Borg backup/restore: https://nextcloud.com/blog/how-to-back-up-restore-nextcloud-remotely-using-borg/ (checked 2026-11-10)
- AIO v15.1.1 release: https://github.com/nextcloud/all-in-one/releases/tag/v15.1.1 (checked 2026-11-23)
- AIO v15.1.0 release (daily or weekly backups): https://github.com/nextcloud/all-in-one/releases/tag/v15.1.0 (checked 2026-11-23)
Printable restore checklist: Nextcloud AIO restore checklist. One page with what to back up, the restore steps, gotchas and how to check it worked. Or build a full recovery pack for your lab.

