Hi everyone,
I’m looking for best practices regarding backups of a Nextcloud instance running inside a virtual machine on Proxmox.
Previously, backups were handled via BorgBackup from inside Nextcloud itself (over SSH to a remote server). In that setup, Nextcloud handled consistency internally, so I didn’t have to worry much about the application state during backups.
Now we are planning to switch to Proxmox Backup Server (PBS) and perform VM-level backups instead of application-level backups.
My main concern is data consistency during backups:
-
Is it safe to back up a running Nextcloud VM using PBS (snapshot-based backups)?
-
Do I need to put Nextcloud into maintenance mode before the backup?
-
Should I stop specific services (e.g., web server, database) inside the VM?
-
Or is it recommended to fully shut down the VM before backup to ensure consistency?
I understand that PBS uses snapshot mechanisms (like QEMU guest agent / filesystem freeze), but I’m not sure if that guarantees consistency for Nextcloud (especially database + files).
What would be the recommended approach in production?
Options I’m considering:
-
Do nothing (rely on snapshot consistency)
-
Use a script to enable maintenance mode before backup
-
Stop database / services before backup
-
Fully shut down the VM before backup
Any advice or real-world experience would be greatly appreciated.
Thanks!