You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* enable warning by default when trying to replicate root datasets
* strip trailing slashes from dataset names
* use printf for log messages as it's more consistent across platforms
* update readme warning about root datasets
Copy file name to clipboardExpand all lines: README.md
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,13 @@ Warning
10
10
Replicating a root dataset to a remote will rewrite the remote pool with forced replication. This script will create
11
11
a true 1:1 copy of the source (local) dataset in the destination (remote) dataset as currently configured.
12
12
13
-
This configuration (```REPLICATE_SETS="zpoolone:zpooltwo"```) will result in ```zpooltwo``` being a 1:1 copy of ```zpoolone```
13
+
The configuration ```REPLICATE_SETS="zpoolone:zpooltwo"``` will result in ```zpooltwo``` being a 1:1 copy of ```zpoolone```
14
14
and may result in dataloss on ```zpooltwo```.
15
15
16
+
To replicate a root dataset safely to another pool consider this configuration: ```REPLICATE_SETS="zpoolone:zpooltwo/zpoolone"```
17
+
18
+
This will result in a 1:1 copy of ```zpoolone``` in a separate data set of ```zpooltwo``` and will not affect other datasets currently present on the destination.
19
+
16
20
To Use
17
21
------
18
22
@@ -26,6 +30,14 @@ Snippet of that section can be found below.
26
30
## the local snap name will be used on the remote end
0 commit comments