Migrating Nextcloud AIO Docker Server from ext4 to xfs

Hello everyone,

I’ve been running a self-hosted Nextcloud AIO Docker server on my home Proxmox server for the past 2 years. Aside from the issue I reported here: Nextcloud VM crashes when syncing large files, everything has been running quite smoothly.

Current Setup:

  • OS: Ubuntu Server 24.04
  • Filesystem: ext4
  • Nextcloud version: Nextcloud AIO - v29.0.7
  • Hosting: Self-hosted on Proxmox

Problem:

  • I’m experiencing issues when syncing large files, which may be related to the use of the ext4 filesystem.
  • To resolve this, I am considering reinstalling Ubuntu and switching the filesystem from ext4 to xfs for better large file handling.

My Goal:

  • Migrate the existing Nextcloud AIO setup from ext4 to xfs without needing to reinstall Nextcloud or recreate users, settings, and configurations.
  • Ideally, I want to back up the necessary Docker folders and restore them on the new server.

What I Need Help With:

  1. Which folders do I need to back up?
    • I assume the critical data is located in /var/lib/docker/volumes, but I need confirmation.
  2. How can I retain permissions and configurations during the migration process?
  3. Is there a recommended approach for this migration to ensure a smooth transition?

Any advice on how to proceed or best practices for this type of migration would be greatly appreciated!