You are not logged in.

#1 2012-08-09 10:35:31

RobertBuhren
Member
Registered: 2011-09-05
Posts: 59

Backup strategies using BTRFS

Hello,


i started to play around with the btrfs filesystem and was wondering how i can use it's features ,e.g. snapshots, to aid a system backup?
What strategies are there? I can make a snapshot and copy it on another device, but is there a even better way? How do you make your backups using btrfs?


Thanks in advance,

Robert

Offline

#2 2012-08-09 12:05:18

teekay
Member
Registered: 2011-10-26
Posts: 271

Re: Backup strategies using BTRFS

I use BTRFS on RAID to protect against drive failures, and snapper [1,2] for timelined backups protecting against human failures and/or bogus system updates.
Additionaly I copy critical data to external drives from time to time to protect against filesystem failures (which is good to have until BTRFS has a reliably working fsck tool)

Offline

#3 2012-08-10 08:00:46

RobertBuhren
Member
Registered: 2011-09-05
Posts: 59

Re: Backup strategies using BTRFS

Sounds like a reasonable approach. I intend to use btrfs on my laptop, so raid is not really an option. Have you tried to use the just introduced send/recieve functions? you can basically do a diff of two snapshots and store it somewhere.
It's still in a very early stage of development, but it could be of great use for a backup scenario.

Regards,

Robert

Offline

#4 2012-11-04 19:15:14

Tobu
Member
Registered: 2010-06-25
Posts: 3

Re: Backup strategies using BTRFS

Snapshots within the same disk (manual or snapper) are the easiest way, but they won't protect you against filesystem corruption.

btrfs subvolume find-new feeding rsync is easy and should be safe, but it's a bit inaccurate because it won't notice file deletions and metadata-only changes.

Send/receive are the most efficient way to transfer things to another device, but it's quite new so there may be bugs left in it. Best do a slower rsync pass from time to time to make sure everything was transferred properly (rsync -c to check file contents not just mtimes), followed by a btrfsck of the receiver.

At the moment I'm using btrfs-time-machine, which transfers with rsync and only needs btrfs on receiver side, where it does snapshots.

Last edited by Tobu (2012-11-04 19:19:18)

Offline

Board footer

Powered by FluxBB