-
Notifications
You must be signed in to change notification settings - Fork 65
Description
Is it safe to use bees in combination with btrfs send/receive -p <parent>?
I know that I must not run bees and btrfs send/receive at the same time.
The documentation says: "You must not specify clone sources unless you guarantee that these snapshots are exactly in the same state on both sides--both for the sender and the receiver."
Suppose I use the following procedure:
-
I have a filesystem
FS1and on it a subvolume with data named/FS1/DATA. I also have a filesystemFS2available as/FS2. -
I take a snapshot:
btrfs subvolume snapshot -r /FS1/DATA /FS1/DATAs1 -
I send it to the FS2:
btrfs send /FS1/DATAs1 | btrfs receive /FS2/ -
Now:
a) I'll letbeesrun onFS1,
b) or I letbeesrun onFS2,
c) or I letbeesrun on bothFS1andFS2.
In the meantime, I continue to use/FS1/DATA. -
After a while, I stop
beesand take next snapshot:btrfs subvolume snapshot -r /FS1/DATA /FS1/DATAs2
Can I now safely transfer the new snapshot to FS2 with the command: btrfs send -p /FS1/DATAs1 /FS1/DATAs2 | btrfs receive /FS2/ ?