# How to backup nextcloud

**URL:** <https://help.nextcloud.com/t/how-to-backup-nextcloud/21623>\
**Category:** ℹ️ Support\
**Created:** [September 28, 2017, 7:14am UTC](https://help.nextcloud.com/t/how-to-backup-nextcloud/21623 "2017-09-28T07:14:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bakkegaard](https://help.nextcloud.com/letter_avatar/bakkegaard/32/5_5575768a8748004e209b776fc1b2916d.png) [@bakkegaard](https://help.nextcloud.com/u/bakkegaard)\
**Post date:** [September 28, 2017, 7:14am UTC](https://help.nextcloud.com/t/how-to-backup-nextcloud/21623/1 "2017-09-28T07:14:02Z")

</div>

I just used the docker files from the Nextcloud repository on Github to set up a private server. Now I want to do backup.

In the administrator manual it says  
"Zero-downtime backups via Btrfs snapshots, component failure leads to interruption of service. Alternate backup scheme on other filesystems: nightly backups with service interruption." [[1]](https://docs.nextcloud.com/server/12/admin_manual/installation/deployment_recommendations.html#small-workgroups-or-departments)

In the [backup section](https://docs.nextcloud.com/server/12/admin_manual/maintenance/backup.html) it shows some commands but doesn’t mention if I should put the system in some kind of maintenance mode before doing backup?

If someone can clarify it I will make a pull request to update the docs 🙂

---

<div class="post-metadata">

**Author:** ![terry\_tibbles](https://help.nextcloud.com/letter_avatar/terry_tibbles/32/5_5575768a8748004e209b776fc1b2916d.png) [@terry\_tibbles](https://help.nextcloud.com/u/terry_tibbles)\
**Post date:** [September 29, 2017, 2:45am UTC](https://help.nextcloud.com/t/how-to-backup-nextcloud/21623/2 "2017-09-29T02:45:41Z")

</div>

The files and database need to match, so I would recommend putting Nextcloud in maintenance mode before starting, or if you can create a snapshot using Btrfs or LVM, this should effectively do the same thing, but there may be a synchronisation in progress when you perform the snapshot, so this may create incomplete files when you restore the backup.

---

<div class="post-metadata">

**Author:** ![JasonBayton](https://help.nextcloud.com/user_avatar/help.nextcloud.com/jasonbayton/32/297_2.png) [@JasonBayton](https://help.nextcloud.com/u/JasonBayton)\
**Post date:** [September 29, 2017, 8:52am UTC](https://help.nextcloud.com/t/how-to-backup-nextcloud/21623/3 "2017-09-29T08:52:51Z")

</div>

I wouldn’t run a backup without maintenance mode enabled.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 2, 2024, 2:37pm UTC](https://help.nextcloud.com/t/how-to-backup-nextcloud/21623/4 "2024-12-02T14:37:22Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 1:56pm UTC](https://help.nextcloud.com/t/how-to-backup-nextcloud/21623/5 "2024-12-04T13:56:34Z")

</div>


