Applying Different Property Values to a ZFS Snapshot Stream
You can send a ZFS snapshot stream with a certain file system property value, and then either specify a different local property value when the snapshot stream is received or specify that the original property value be used when the snapshot stream is received to re-create the original file system. In addition, you can disable a file system property when the snapshot stream is received.
-
To revert a local property value to the received value, if any, use the
zfs inherit -Scommand. If a property does not have a received value, the behavior of the-Soption is the same as if you did not include the option. If the property does have a received value, thezfs inheritcommand masks the received value with the inherited value until issuing azfs inherit -Scommand reverts it to the received value. -
You can determine the columns displayed by the
zfs get. Use the-ooption to include the new non-defaultRECEIVEDcolumn. Use the-o alloption to include all columns, includingRECEIVED. -
To include properties in the send stream without the
-Roption, use the-poption. -
To use the last element of the sent snapshot name to determine the new snapshot name, use the
-eoption.The following example sends the
poolA/bee/cee@1snapshot to thepoolD/eeefile system and uses only the last element (cee@1) of the snapshot name to create the received file system and snapshot.$ zfs list -rt all poolA NAME USED AVAIL REFER MOUNTPOINT poolA 134K 134G 23K /poolA poolA/bee 44K 134G 23K /poolA/bee poolA/bee/cee 21K 134G 21K /poolA/bee/cee poolA/bee/cee@1 0 - 21K - $ zfs send -R poolA/bee/cee@1 | zfs receive -e poolD/eee $ zfs list -rt all poolD NAME USED AVAIL REFER MOUNTPOINT poolD 134K 134G 23K /poolD poolD/eee 44K 134G 23K /poolD/eee poolD/eee/cee 21K 134G 21K /poolD/eee/cee poolD/eee/cee@1 0 - 21K -