frenziedengi
Dabbler
- Joined
- Feb 22, 2013
- Messages
- 14
I am trying to understand zfs send and zfs recv options.
When reading the documentation for sending incremental zfs replication streams (e.g. zfs -RI @fooey1 blah@fooey2) I noticed that the document says there is a special interpretation to the "-F" switch on the receive side:
I am trying to understand... What is the logic behind this? Why is it specific to this particular use case? Why have this feature at all? If you are trying to send only the differences between snapA and snapB, and you happened to delete a filesystem, why would this go and delete the filesystem on the target? You will lose all your history/snapshots... all of your data in that filesystem. It seems like there should be a separate switch for this. One to rollback the receiving target to the common snapshot, and another to allow destruction of file systems on the receiving side.
Am I making sense?
Obviously, the way around this behavior would be to not use "-F" option, perform a manual rollback on the target (if necessary) to the latest common snapshot, and then send the incremental replication stream...
Or, the other take away might be: Be really careful when you decide it is time to destroy a zfs data set / filesystem, because there might not be any going back (depending on how you replicate to remote systems).
When reading the documentation for sending incremental zfs replication streams (e.g. zfs -RI @fooey1 blah@fooey2) I noticed that the document says there is a special interpretation to the "-F" switch on the receive side:
"If receiving an incremental replication stream (for example, one generated by zfs send -R -[iI]), destroy snapshots and file systems that do not exist on the sending side."
I am trying to understand... What is the logic behind this? Why is it specific to this particular use case? Why have this feature at all? If you are trying to send only the differences between snapA and snapB, and you happened to delete a filesystem, why would this go and delete the filesystem on the target? You will lose all your history/snapshots... all of your data in that filesystem. It seems like there should be a separate switch for this. One to rollback the receiving target to the common snapshot, and another to allow destruction of file systems on the receiving side.
Am I making sense?
Obviously, the way around this behavior would be to not use "-F" option, perform a manual rollback on the target (if necessary) to the latest common snapshot, and then send the incremental replication stream...
Or, the other take away might be: Be really careful when you decide it is time to destroy a zfs data set / filesystem, because there might not be any going back (depending on how you replicate to remote systems).