# Backup Strategy for NextCloud AIO with S3 as Primary Storage

**URL:** <https://help.nextcloud.com/t/backup-strategy-for-nextcloud-aio-with-s3-as-primary-storage/204521>\
**Category:** ℹ️ Support\
**Tags:** object\_storage, docker, s3, aio\
**Created:** [September 21, 2024, 6:35am UTC](https://help.nextcloud.com/t/backup-strategy-for-nextcloud-aio-with-s3-as-primary-storage/204521 "2024-09-21T06:35:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mitexleo](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mitexleo/32/65035_2.png) [@mitexleo](https://help.nextcloud.com/u/mitexleo)\
**Post date:** [September 21, 2024, 6:35am UTC](https://help.nextcloud.com/t/backup-strategy-for-nextcloud-aio-with-s3-as-primary-storage/204521/1 "2024-09-21T06:35:45Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![szaimen](https://help.nextcloud.com/user_avatar/help.nextcloud.com/szaimen/32/63019_2.png) [@szaimen](https://help.nextcloud.com/u/szaimen)\
**Post date:** [September 21, 2024, 8:14am UTC](https://help.nextcloud.com/t/backup-strategy-for-nextcloud-aio-with-s3-as-primary-storage/204521/2 "2024-09-21T08:14:24Z")

</div>

Hi, see [Configuring S3 for primary storage via Environment variables not working · nextcloud/all-in-one · Discussion #1807 · GitHub](https://github.com/nextcloud/all-in-one/discussions/1807#discussioncomment-4728318)

---

<div class="post-metadata">

**Author:** ![mitexleo](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mitexleo/32/65035_2.png) [@mitexleo](https://help.nextcloud.com/u/mitexleo)\
**Post date:** [September 21, 2024, 8:48am UTC](https://help.nextcloud.com/t/backup-strategy-for-nextcloud-aio-with-s3-as-primary-storage/204521/3 "2024-09-21T08:48:03Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [December 20, 2024, 8:48am UTC](https://help.nextcloud.com/t/backup-strategy-for-nextcloud-aio-with-s3-as-primary-storage/204521/4 "2024-12-20T08:48:48Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
