# how do you backup your btrfs /-partition ?

**URL:** <https://forums.suse.com/t/how-do-you-backup-your-btrfs-partition/30478>\
**Category:** SLES Configure-Administer\
**Created:** [October 27, 2017, 7:54pm UTC](https://forums.suse.com/t/how-do-you-backup-your-btrfs-partition/30478 "2017-10-27T19:54:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![berndgsflinux](https://avatars.discourse-cdn.com/v4/letter/b/6a8cbe/32.png) [@berndgsflinux](https://forums.suse.com/u/berndgsflinux)\
**Post date:** [October 27, 2017, 7:54pm UTC](https://forums.suse.com/t/how-do-you-backup-your-btrfs-partition/30478/1 "2017-10-27T19:54:23Z")

</div>

Hi,

currently i lost my /-partition because btrfs got corrupted (due to some adverse circumstances). This raises for me the question: how can i really backup a btrfs partition, including subvolumes and snapshots ?  
We have a file-based tape backup over the network (EMC), but this does not support BTRFS. That means it just copies the files from /, it does not care about subvolumes or snapshots. With ext3 it never was a problem, in desaster recovery i could restore / in a reasonable amount of time. / is for me just software, os and configuration. No databases, no virtual machines. That’s another topic.  
Fortunately the system with btrfs was a test system, so maybe it was lucky that i got the problem and realized it. Better than in production. So my question to you:  
How do you backup your btrfs root partition ? Do you backup the subvolumes and the snapshots ? How do you achieve that ? Or, the other way round: what do you do when your btrfs /-partition gets corrupted ? Assume you lost the complete fs, with all subvolumes (this is what happened to me).  
btrfs check still seems to be limited. And i don’t want to play or try or test some tools in desaster scenario, i would like to have a backup with which i can restore my /-partition in a reasonable amount of time (maximum some hours !).

Thanks in advance.

Bernd

---

<div class="post-metadata">

**Author:** ![KEVIN1](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@KEVIN1](https://forums.suse.com/u/KEVIN1)\
**Post date:** [October 28, 2017, 9:23pm UTC](https://forums.suse.com/t/how-do-you-backup-your-btrfs-partition/30478/2 "2017-10-28T21:23:00Z")

</div>

berndgsflinux wrote:  
[color=blue]

> how can i  
> really backup a btrfs partition, including subvolumes and snapshots ?[/color]

The easiest way is to run your server as a VM and backup the whole VM.

–  
Kevin Boyle - Knowledge Partner  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below this post.  
Thank you.

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [October 29, 2017, 1:22am UTC](https://forums.suse.com/t/how-do-you-backup-your-btrfs-partition/30478/3 "2017-10-29T01:22:01Z")

</div>

The places I am using Btrfs in Production do this; the VMs have the  
snapshots for a quick fix should anything be needed, but disk corruption  
should not happen, so it is nice to have those unforeseen things fixed by  
the next layer up, meaning VM snapshots in this case.

It should be noted that Btrfs can be used in other places too, like as  
part of the Container as a Service Platform (CaaSP) and in those cases the  
snapshot features also work for a quick restore as long as the disks  
themselves are okay. In this case as well it seems to make sense that  
conventional backups are used for disasters beyond what snapshots can fix,  
such as bad disks or corrupt filesystems as a whole (usually because of  
bad disks).

–  
Good luck.

If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below.

If you want to send me a private message, please let me know in the  
forum as I do not use the web interface often.

---

<div class="post-metadata">

**Author:** ![berndgsflinux](https://avatars.discourse-cdn.com/v4/letter/b/6a8cbe/32.png) [@berndgsflinux](https://forums.suse.com/u/berndgsflinux)\
**Post date:** [October 31, 2017, 2:35pm UTC](https://forums.suse.com/t/how-do-you-backup-your-btrfs-partition/30478/4 "2017-10-31T14:35:16Z")

</div>

But my vm’s need a hypervisor, which is SLES. I have the configuration and some software on /, my vm’s reside on other partitions. How can i backup / if it resides on btrfs ?

Bernd
