by compsciphd · 4y ago · 0 comments
https://docs.oracle.com/cd/E37670_01/E37355/html/ol_srbackup...
while it doesn't allow you to delete a subvolume (i.e. what a snapshot is built off of), it does seem like one could conceptually just overwrite it via send/recieve? perhaps its a bit smarter and doesn't let snapshots be modified, but I'm now a bit unconvinced that it can be viewed as simply an "append only" interface.
Don't think so.
The man page for btrfs receive states:
> btrfs receive will fail in the following cases:
> 1. receiving subvolume already exists
I also just tried it out. I created some subvol1-ro in a source filesystem, then sent it to the destination filesystem. Then deleted the source subvol1-ro. Then created a new subvol1-ro containing a different file and tried to send it to the same destination.
Result:
> ERROR: creating subvolume subvol1-ro failed: File exists
A received ro snapshot can be used as a base for a new writable snapshot.