I’ve read Curious as to the utility of ZFS bookmarks and some other stuff on the internet, and something isn’t making it through to my brain here.
So you have a source and a destination.
- On Monday, on the source you make a pool called tank, and create a file called ONE
You snapshot it, and bookmark it, and send the snapshot to the destination - On Tuesday, you repeat the process
- On Wednesday, you create a file called TWO, snapshot and bookmark on the source only
- On Thursday, you delete TWO and create THREE, snapshot and bookmark on the source only
- On Friday, delete THREE, snapshot and bookmark on the source, then delete the Monday, Tuesday and Wednesday snapshots.
Day | Src Snap | Src bookmark | Destination Snap | Dest Bookmark |
---|---|---|---|---|
Mon | x | x | x | |
Tue | x | x | x | |
Wed | x | |||
Thu | x | x | ||
Fri | x | x |
So now it’s the weekend and we want to catch the destination up to the source.
They have no snapshot in common. Apparently, you do it with the bookmarks.
The big question … How the heck can this work? TWO and THREE no longer exist on the source. There’s no snapshot holding that data. I don’t get how they can be resurrected. Do we end up with Mon, Tue, Fri snapshots and just file ONE on the dest and whatever other changes happened in the middle are gone?
Smaller question - Do I understand correctly, syncoid will use the bookmarks automatically if they exist and are helpful?
As I’ve written this out (thanks for being my rubber duckie) I guess I could just go do and see, but I’d still like to ask how to understand the how better.