vatesfr / xo-tools

[DEPRECATED]
2 stars 0 forks source link

Export a VM #2

Open olivierlambert opened 10 years ago

olivierlambert commented 10 years ago

We need to export a VM in a specific path (like in xo-cli).

Needed arguments:

The last arg should be the destination path. By default, the current folder. Because xo-backup will work in batch (or with a selector), there is no sense to give a filename argument (I think?)

About the rotation: because it seems complicated to rotate exported files, maybe the best strategy is to export VMs automatically with their name (without timestamp) and rewrite the old file. Indeed, exporting files is really useful for Disaster Recovery. For rolling backups, snapshots or file-based rsync are more appropriated.

julien-f commented 10 years ago

Note: To avoid corrupted exports, they should be written on the disk atomically.