zfs:replication
Differences
This shows you the differences between two versions of the page.
zfs:replication [2021/10/12 23:10] – created peter | zfs:replication [2021/10/12 23:20] (current) – peter | ||
---|---|---|---|
Line 11: | Line 11: | ||
</ | </ | ||
+ | ---- | ||
+ | ===== ZFS Send / Receive for non-root Account ===== | ||
+ | |||
+ | <code bash> | ||
+ | sudo zfs send testpool/ | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | cannot receive new filesystem stream: permission denied | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Set Permissions on the sender side ==== | ||
+ | |||
+ | Assuming the sender is **peter**: | ||
+ | |||
+ | <code bash> | ||
+ | sudo zfs allow -u peter send, | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Set Permissions on the receiver side ==== | ||
+ | |||
+ | Assuming the receiver is **remoteuser**: | ||
+ | |||
+ | <code bash> | ||
+ | sudo zfs allow -u remoteuser compression, | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE** | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Check the Receiver has received the data ===== | ||
+ | |||
+ | <code bash> | ||
+ | remoteuser@ip-:/ | ||
+ | NAME USED AVAIL REFER MOUNTPOINT | ||
+ | xyz-pool/ | ||
+ | </ | ||
zfs/replication.1634080223.txt.gz · Last modified: 2021/10/12 23:10 by peter