I’d like to ask for some advice regarding my long-running Nextcloud AIO setup.
I’ve been running it for about three years without any reinstallation, but recently I’ve started to experience more and more issues — mainly frequent service crashes and the inability to reinstall or update certain apps.
Because of that, I’m considering a clean reinstallation of Nextcloud AIO (version 11.11.0) while keeping Nextcloud v31.0.10 on Ubuntu 24.04 (latest updates).
My goal is to preserve all user data, accounts, and settings, and basically reinstall only the “AIO engine” itself (Docker containers and system stack).
Currently, my backups are handled through Proxmox Backup Server, which is great for disaster recovery but doesn’t help with what I’m trying to achieve — a clean rebuild without bringing back existing issues.
So my question is: Is there any supported or recommended way to back up and later restore everything (database, config, users, apps, files) into a freshly installed AIO environment?
I’m aware that AIO includes an integrated BorgBackup feature, but I’ve never used it before and I’m not sure whether it’s suitable for this specific scenario.
Environment details:
Nextcloud AIO: 11.11.0
Nextcloud version: 31.0.10
Host OS: Ubuntu 24.04 LTS (latest updates)
Virtualized on Proxmox VE, with backups handled by Proxmox Backup Server
I might have overlooked this in the documentation, but could someone clarify what ownership and file permissions should be set on the directory where BorgBackup stores its data when running Nextcloud AIO on Linux?
I just want to make sure the container has the correct write access before I initialize the repository.
Usually any permissions are possible as long as root access is not prohibited. The backup solutions uses the root user to read and write the backup archive.
I ran a Borgbackup backup and then I read that I should have saved the Passkey as well, not just the encryption key.
This made me unsure, as I am not aware that I entered a Passkey.
I have the encryption key saved.
I’ve prepared a draft plan for how I intend to perform a clean reinstallation of Nextcloud AIO while keeping my existing BorgBackup repository ready for restore.
Here’s the outline of the procedure I’ve come up with:
Nextcloud AIO reinstallation – brief overview
Verify and back up current state (BorgBackup + Proxmox Backup)
Stop running containers (can be done via Portainer – Containers → Stop All or Nextcloud Admin settiongs)
Remove running containers (can be done via Portainer – Remove All Stopped)
Stop and remove mastercontainer (also possible in Portainer or docker compose down)
Verify Nextcloud functionality (Portainer – Logs / Health Status)
Clean up temporary or backup directories
Verify timezone and health status
Could you take a quick look at this plan and let me know if the order of steps looks correct, or if I’m missing anything important?
I’d like to make sure I follow the safest possible process before proceeding.