How to do a backup with BtrFS snapshots?

How to do a backup with BtrFS snapshots?

Once you have performed a backup, create btrfs partition and eventually subvolumes within, mount it and redo rsync of backup on new system root. Once terminated, chroot into new root and regenerate initramfs, therefore reconfigure grub, and you’re done.

How to perform incremental backups with Btrfs?

In order to perform the send task incrementally, you need to specify the previous snapshot as a base and this snapshot has to exist in the source and in the destination. Please note the -p option. Once the operation is complete, you can keep the snapshot. But if you perform these operations on a daily basis, you could end up with a lot of them.

What does incremental backup mean in Fedora snapshots?

This is called initial bootstrapping, and it corresponds to a full backup. This task will take some time, depending on the size of the /home directory. Obviously, subsequent incremental sends will take a shorter time. Another useful feature of snapshots is the ability to perform the send task in an incremental way.

Which is faster, incremental backup or rsync?

This is far quicker than e.g. rsync could, especially on large file systems. (For instance, rsync cannot be aware of mere metadata changes like filename, location etc but the FS itself is certainly aware of it.) This page presents some approaches to leverage these capabilites.

How to restore Btrfs backup from root filesystem?

Restore: if you are using btrfs for (root) filesystem backups, you can directly read the plain files from the backup servers filesystem. if you require a full restore, you can use btrfs send and btrfs receive commands to restore your backup. you can also boot your backup server into a snapshot by using the subvol= kernel option.

Can you switch top view to subvolumes in Btrfs?

Well, BTRFS lets you switch top view to any one of subvolumes. So basically, using subvolumes and snapshotting back and forth means simply switching view to a different data tree. No need to delete files, overwrite or anything.

How to use btrfs send / receive over a slow network?

“send” to a file or over a pipe. “receive” with the file or pipe on the other end. With a questionable connection, you would likely do best with files and a transport like rsync. In addition to buttersink ‘s S3 resume, btrbk supports:

How does a snapshot work in Btrfs cow?

Editors note: From the BTRFS Wiki – A snapshot is simply a subvolume that shares its data (and metadata) with some other subvolume, using Btrfs’s COW capabilities. Occupied space will increase alongside the data changes in the original subvolume or in the snapshot itself, if it is writeable.