bolthole / zrep

ZREP ZFS based replication and failover script from bolthole.com
Other
251 stars 57 forks source link

Feature request - alternative method of activating nested replication #164

Open Peter2121 opened 3 years ago

Peter2121 commented 3 years ago

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.

ppbrown commented 3 years ago

Funny thing.. it already does support it :)

underdocumented feature, mentioned in the comments around the variable:

If you want to recursively create/send snapshots, set this to -R # (or

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 .

Peter2121 commented 3 years ago

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
ppbrown commented 3 years ago

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 .

t-oster commented 3 years ago

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.