How to get incremental btrfs send/receives to work? #2170
Unanswered
yorickpeterse
asked this question in
Q&A
Replies: 1 comment 4 replies
-
|
The error message was first introduced in kdave/btrfs-progs@b5a0977, but reading the commit and changes it's not clear exactly what is wrong with the above mount setup. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have two servers running a bootc Fedora installation: "web" and "deskmini". Both use btrfs. On the "deskmini" I have a script that's supposed to create a btrfs snapshot of "web", then download it to "deskmini". If a previous snapshot exists, it sends an incremental snapshot. This is done using
ssh 'btrfs send SNAP' | btrfs receive TARGETandssh 'btrfs send -p PREV SNAP' | btrfs receive TARGET.It seems that something in bootc (likely the use of composefs/the exotic mount setup) confuses btrfs. Sending an receiving an initial snapshot works fine and produces the same IDs and all that:
After the initial send+receive:
However an incremental send/receive fails:
Some digging around suggests this happens when setting
subvol/subvolid, though the btrfs manual is horribly vague on the exact specifics. Both systems use the same setup, minus "deskmini" using luks:Does anybody know a way around this, short of not using incremental sends and receives? I've messed around with trying to use different paths for the receive target and what not, but nothing seems to work.
Beta Was this translation helpful? Give feedback.
All reactions