Open Peter2121 opened 3 years ago
Funny thing.. it already does support it :)
underdocumented feature, mentioned in the comments around the variable:
use the -R option to BOTH zrep init and zrep sync #ZREP_R=-R
On Wed, Dec 23, 2020 at 7:24 AM Пётр notifications@github.com wrote:
It would be nice to see a command-line argument that can replace ZREP_R environment variable, mainly for incremental replication. Starting such replication from cron, it is much more simple to add a command-line argument than setting an environment variable.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bolthole/zrep/issues/164, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANEV6NS2LLJ4QPI26IBC3LSWIDRPANCNFSM4VHDTXMA .
Sorry,
zstorage-1# zrep -i -R zdata/NFSROOT zstorage-2 zdata/NFSROOT
cannot open '-R': dataset does not exist
zstorage-1# zrep -R -i zdata/NFSROOT zstorage-2 zdata/NFSROOT
ERROR: unrecognized zrep subcommand -R
Hmm. odd.
in theory, the proper syntax should be
zrep -i -R ...
I shall look into it
On Wed, Dec 23, 2020 at 8:40 AM Пётр notifications@github.com wrote:
Sorry,
zstorage-1# zrep -i -R zdata/NFSROOT zstorage-2 zdata/NFSROOT cannot open '-R': dataset does not exist
zstorage-1# zrep -R -i zdata/NFSROOT zstorage-2 zdata/NFSROOT ERROR: unrecognized zrep subcommand -R
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bolthole/zrep/issues/164#issuecomment-750379197, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANEV6K77MLCCNSAPAZURCDSWIMOVANCNFSM4VHDTXMA .
Hi, I can confirm it does not work. I also tried various positions zrep -R -S pool/fs
, zrep -S -R pool/fs
and zre -S pool/fs -R
.
It would be nice to see a command-line argument that can replace ZREP_R environment variable, mainly for incremental replication. Starting such replication from cron, it is much more simple to add a command-line argument than setting an environment variable.