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 -S
command. If a property does not have a received value, the behavior of the-S
option is the same as if you did not include the option. If the property does have a received value, thezfs inherit
command masks the received value with the inherited value until issuing azfs inherit -S
command reverts it to the received value. -
You can determine the columns displayed by the
zfs get
. Use the-o
option to include the new non-defaultRECEIVED
column. Use the-o all
option to include all columns, includingRECEIVED
. -
To include properties in the send stream without the
-R
option, use the-p
option. -
To use the last element of the sent snapshot name to determine the new snapshot name, use the
-e
option.The following example sends the
poolA/bee/cee@1
snapshot to thepoolD/eee
file 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 -