btrfs-progs icon indicating copy to clipboard operation
btrfs-progs copied to clipboard

send: incremental send fails on

Open marcochiodo opened this issue 3 years ago • 2 comments

The some problem fixed in issue #122 returned in btrfs-progs v5.10.1.

The problem appear during incremental backup


btrfs subvolume snapshot -r /home /home-BACKUP // OK
btrfs send /home-BACKUP | btrfs receive /media/backup-disk/ // First send OK
btrfs subvolume snapshot -r /home /home-BACKUP-new // OK

btrfs send -p /home-BACKUP /home-BACKUP-new | btrfs receive /media/backup-disk/
ERROR: not on mount point: /home
ERROR: empty stream is not considered valid

My system Linux version 5.11.0-49-generic Ubuntu 21.04

marcochiodo avatar Jan 26 '22 09:01 marcochiodo

v5.10.1

Can you please try that on the latest version 5.16?

kdave avatar Jan 27 '22 13:01 kdave

I discovered that unlike issue #122 if I create the snapshot inside the mountpoint /home the problem with the send command does not exist.

btrfs subvolume snapshot -r /home /home-BACKUP // not work incremental send
btrfs subvolume snapshot -r /home /home/BACKUP // work!

I don't know if this was the intention of the creators of btrfs. In fact looking at the wiki https://btrfs.wiki.kernel.org/index.php/Incremental_Backup the backup is created inside the mountpoint.

That's probably okay

marcochiodo avatar Jan 30 '22 10:01 marcochiodo

That's probably okay

Not really. Consider an extension of this backup thing to also perform a sync, like device1 → external drive → device2 → external drive → device1. I'll have to remove home subvolume to replace it with an rw snapshot of recent ro snapshot. But then after I remove the rw subvolume (/home), I lose access to ro snapshots (/home/BACKUP-xyz).

ettavolt avatar Mar 22 '23 19:03 ettavolt