mpalmer / lvmsync

Synchronise LVM LVs across a network by sending only snapshotted changes
http://theshed.hezmatt.org/lvmsync
GNU General Public License v3.0
382 stars 61 forks source link

Offline syncing #7

Closed nats closed 11 years ago

nats commented 11 years ago

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.

mpalmer commented 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)?

nats commented 11 years ago

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.