Backup Strategy for NextCloud AIO with S3 as Primary Storage

Hi everyone,

I’m currently running NextCloud AIO and using S3 as my primary storage. Now that I’m trying to figure out a backup strategy, I’m not sure how to proceed. AIO has BorgBackup built-in, but I’m uncertain if it would work well with S3 as primary storage.

I want to ensure that I’m backing up both the database and any other important configurations/data. What’s the best way to back up a NextCloud instance with S3 as the primary storage? Should I rely on BorgBackup or use another solution?

If anyone has experience with a similar setup or any recommendations, I’d really appreciate your insights!

Thanks in advance!

Hi, see Configuring S3 for primary storage via Environment variables not working · nextcloud/all-in-one · Discussion #1807 · GitHub

1 Like

I’m planning to:

  1. Stop all containers
  2. Backup /var/lib/docker/volumes
  3. Restore on a new VPS with fresh Docker install
  4. Run the previous AIO composer file

Will this work smoothly for NextCloud AIO? Any gotchas or better approaches?