Backup files on Nextcloud-managed object storage to local storage

I understand your situation, but doesn’t this approach seem unnecessarily complicated? Based on my personal experience, here’s a simpler and effective alternative:

My Experience with Nextcloud AIO Migration

When I migrated a Nextcloud AIO instance to another server, I followed a straightforward process using rsync:

  1. Backup: I used rsync to back up the entire Nextcloud AIO Docker volume from the original server. This ensured all data, permissions, and ownership were preserved.
  2. Restore: I transferred the backup to the new server using rsync again, ensuring data integrity and consistency.
  3. Result: Everything worked seamlessly without even needing a rescan.

This method was quick, simple, and reliable.

A Potential Solution for Your Case

If your goal is to create backups, here’s how rsync can help:

  • Option 1: Use rsync to back up the entire Nextcloud AIO Docker volume. This will include all necessary data and configurations, making restoration straightforward.
  • Option 2: If you only need backups for specific users, use rsync to selectively back up data associated with their accounts.

Important Note on Filesystems

When using rsync, it’s crucial to use filesystems on your disks that support preserving permissions and ownership. Recommended options include:

  • xfs – Highly efficient and reliable for large datasets.
  • ext4 – Widely supported and sufficient for most cases.

Avoid using filesystems like:

  • NTFS – While cross-platform compatible, it doesn’t preserve permissions and ownership effectively, making it unsuitable for precise backups.
  • FAT32 or exFAT – Lack support for permissions and ownership entirely.

Choosing a proper filesystem is critical to ensure backups remain consistent and restorations are hassle-free.

Benefits of Using rsync

  • Efficiently copies only the changes, saving time and bandwidth.
  • Preserves file structure, permissions, and ownership (on supported filesystems).
  • Avoids the need for manual mapping or decrypting files.
  • Flexible—can be used for full or partial backups depending on your needs.

If you’d like, I can share more details about how to set up and use rsync with the recommended filesystems. Let me know! :blush:

1 Like