Closed nats closed 11 years ago
I've recently modified lvmsync to allow the dumping of the on-the-wire difference data to stdout. It will allow you to achieve what you're trying to do. On a separate topic, why would you rewrite lvmsync in Python (especially as it appears to be a semi-mechanical conversion)?
Python is pre-installed on everything I touch, where Ruby is not.
The straight language conversion was on purpose so its easy to convert over any relevant bug fixes down the line.
Add --patch argument, create a file that can be used with --apply at a later point
In other words, instead of having lvmsync call itself (locally or over SSH), the data is written in the lvmsync format to the patch file.
The data can then be transferred in some other way to the destination, for use with --apply.
Also useful for testing, so output can be compared across runs.