Page 1 of 1

Exploring a backup strategy with Btrfs

Posted: 2017-12-10 13:16
by bester69
Ive always been able to restore with success fsarchiver filesystem backups, but fsarchiver does not support deduplication, and I always keep my whole system backup (excluding data home) in the cloud with duplicty over fsarchiver backups.

So i was thinking of using directlly duplicity against a btrfs snapshot filesytem, so this way i can keep my system backup updated in the cloud with just a few Mbytes of uploading, What im not sure, is how duplicity will deal with system permissions when restoring and mounting the snapshot, I know fsarchiver is the perfect tool for this purpose, but Im not sure about using duplicity.

Ho do you see this strategy??, any suggestion?

Re: Exploring a backup strategy with Btrfs

Posted: 2017-12-13 16:46
by pylkko
Btrfs has deduplication in itself AFAIK. Never used it but see foe example
https://btrfs.wiki.kernel.org/index.php/Deduplication

https://askubuntu.com/questions/631917/ ... with-btrfs

Btrfs send also allows you to send snapshot diffs to a remote storage, so in theory all you want to do could he done with btrfs alone.

Re: Exploring a backup strategy with Btrfs

Posted: 2017-12-13 17:50
by bester69
pylkko wrote:Btrfs has deduplication in itself AFAIK. Never used it but see foe example
https://btrfs.wiki.kernel.org/index.php/Deduplication

https://askubuntu.com/questions/631917/ ... with-btrfs

Btrfs send also allows you to send snapshot diffs to a remote storage, so in theory all you want to do could he done with btrfs alone.
Hi pylkko , Im using the cloud to backup the full system, so I cant use "btrfs send"..

This is the new method Im thinking of using;being $backpath the snapshot root path

Code: Select all

duplicity  -v 4  --progress --allow-source-mismatch  --num-retries=5 --no-encryption --ssl-no-check-certificate --volsize 100   --verbosity=6 --timeout=60 --progress  $backpath webdavs://bester@yahoo.es:"$CLK"@dav.box.com/dav/btrdup   --exclude $backpath/mnt --exclude $backpath/tmp --exclude $backpath/proc --exclude $backpath/sys
Ive seen. duplicity can work out like this, but im not very confident about it; Im afraid when restoring might find out something corrupted, but i dont know, in theory duplicty should garantee integrity data backup with all files.(for the cloud, using duplicty with fsarchiver files do really works great, very secure method in my own experience, but it does not have deduplication due to fsarchiver layout)

Re: Exploring a backup strategy with Btrfs

Posted: 2019-06-15 12:32
by pylkko
btrfs send can work over ssh, but it depends on your "cloud"

Re: Exploring a backup strategy with Btrfs

Posted: 2019-06-15 14:35
by bester69
pylkko wrote:btrfs send can work over ssh, but it depends on your "cloud"
We can also use rclone, or duplicity-rclone (backend) https://github.com/GilGalaad/duplicity-rclone.


Here, The strategy backup with BTRFS.

HOWTO: Btrfs filesystem backup
http://forums.debian.net/viewtopic.php?f=16&t=142344

Thanks pylkko. :o