Skip to content

Python script to export rbd images to vmdk, based on latest snapshot.

License

Notifications You must be signed in to change notification settings

mhubig/ceph-export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ceph-export

Simple app to export rbd images from a ceph pool, based on the last snapshot.

$ ./export.py --help
Usage: export.py [OPTIONS] POOL [IMAGES]...

  Exports rbd images in POOL to vmdk, based on the last snapshot.

Options:
  --path TEXT           Path where to store the exported images.
  --image-pattern TEXT  Pattern to filter the images.
  --snap-pattern TEXT   Pattern to filter the snapshots.
  --debug / --no-debug  Debug and dry-run mode.
  --help                Show this message and exit.

Example: Export two rbd images to /srv/tank/vmdk

$ ./export.py pve-images vm-100-disk-1 vm-101-disk-1 --path=/srv/tank/vmdk
$ ls -al /srv/tank/vmdk
[email protected]
[email protected]

Example: Export all rbd images in pool pve-images to /srv/tank/vmdk

$ ./export.py pve-images --path=/srv/tank/vmdk
$ ls -al /srv/tank/vmdk
[email protected]
[email protected]
[email protected]
...

Example: Export two rbd images to /srv/tank/qcow2 using the qcow2 format

$ ./export.py pve-images vm-100-disk-1 vm-101-disk-1 --path=/srv/tank/qcow2 --format=qcow2
$ ls -al /srv/tank/qcow2
[email protected]
[email protected]

About

Python script to export rbd images to vmdk, based on latest snapshot.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages