Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 855 Bytes

README.md

File metadata and controls

42 lines (32 loc) · 855 Bytes

Openstack backups

Openstack CLI wrapper written in Python for backups creation. The process is defined to create an image of the server a snapshots of the attached volumes.

Create Image

./create-image.py - creates a snapshot of a selected server.

Required:

    -s, --server : Name of the target server/instance

Optional:

    -c, --cloud : Openstack cloud name to get configuration from clouds.yaml
    -r, --region : Openstack region where the server name is running

Execute it

Example in docker file of a potential execution:

version: '3'
services:
openstack:
    image: ismaelperal/openstack_backups:release-1.0.0
    volumes:
    - ~/clouds.yaml:/etc/openstack/clouds.yaml:ro
    command:
    - python
    - create-image.py
    - "-s"
    - MY_SERVER
    - "-c"
    - ovh
    - "-r"
    - GRA1