It would be nice to have a command-type export where commands are output to reproduce the configuration, e.g.
mb export --format=shell | ssh sh -x
Essentially this is already printed after "mb edit" for the changes. Also it would be easy to copy single mirror configurations with
mb export --format=cmd | grep oldmirror | sed -e 's/oldmirror/thecopy/'g | sh -x
The Veritas cluster also has a similar feature and I found it extremely useful.
Copied from https://github.com/poeml/mirrorbrain/issues/151
It would be nice to have a command-type export where commands are output to reproduce the configuration, e.g.
mb export --format=shell | ssh sh -x
Essentially this is already printed after "mb edit" for the changes. Also it would be easy to copy single mirror configurations withmb export --format=cmd | grep oldmirror | sed -e 's/oldmirror/thecopy/'g | sh -x
The Veritas cluster also has a similar feature and I found it extremely useful.