openSUSE / mirrorbrain

MirrorBrain
http://mirrorbrain.org/
Other
26 stars 17 forks source link

Export to command files #30

Open lrupp opened 4 years ago

lrupp commented 4 years ago

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 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.