Disabling Original Property Values
If you have a local file system property value in a snapshot stream and you want to disable the property when it is received, use the zfs receive -x
command. For example, the following command sends a recursive snapshot stream of home directory file systems with all file system properties reserved to a backup pool but without the quota property values:
$ zfs send -R system1/home@snap1 | zfs recv -x quota bpool/home $ zfs get -r quota bpool/home NAME PROPERTY VALUE SOURCE bpool/home quota none local bpool/home@snap1 quota - - bpool/home/glori quota none default bpool/home/glori@snap1 quota - - bpool/home/hsolo quota none default bpool/home/hsolo@snap1 quota - -
If the recursive snapshot was not received with the -x
option, the quota property would be set in the received file systems.
$ zfs send -R system1/home@snap1 | zfs recv bpool/home $ zfs get -r quota bpool/home NAME PROPERTY VALUE SOURCE bpool/home quota none received bpool/home@snap1 quota - - bpool/home/glori quota 10G received bpool/home/glori@snap1 quota - - bpool/home/hsolo quota 10G received bpool/home/hsolo@snap1 quota - -