Add user doc for glance image backup and restore

The patch add user doc for glance image backup and restore
for freezer

Change-Id: I06535ca0ad52d08ad259ebac0de13867bb7ff01e
This commit is contained in:
gecong1973 2019-06-14 02:00:49 -07:00
parent 88cd6c6f01
commit 44c3081610

View File

@ -204,6 +204,118 @@ Execute a MySQL backup with nova:
**Note: All the freezer-agent activities are logged into /var/log/freezer.log.**
Glance Backups
---------------
If you provide glance backup argument in parameters, freezer will backup
image using glance download_image API to storage.
Restore will create a image from stored data using glance create_image API
. Image will have different id from original one.
Backup example:
Execute a glance backup with image-id:
.. code:: bash
freezer-agent --backup-name [my-backup-name] \
--mode glance --engine_name glance \
--action backup \
--no-incremental True \
--container /home/freezer_data \
--storage local \
--glance_image_id [glance-image-id]
Execute a glance backup with image-name:
.. code:: bash
freezer-agent --backup-name [my-backup-name] \
--mode glance --engine_name glance \
--action backup \
--no-incremental True \
--container /home/freezer_data \
--storage local \
--glance_image_name [glance-image-name]
Execute a glance backup with image-name-filter:
.. code:: bash
freezer-agent --backup-name [my-backup-name] \
--mode glance --engine_name glance \
--action backup \
--no-incremental True \
--container /home/freezer_data \
--storage local \
--glance_image_name_filter [glance-image-name-filter]
Execute a glance backup with project_id:
.. code:: bash
freezer-agent --backup-name [my-backup-name] \
--mode glance --engine_name glance \
--action backup \
--no-incremental True \
--container /home/freezer_data \
--storage local \
--project_id [project-id]
Restore example:
Execute a glance restore with image-id:
.. code:: bash
freezer-agent --backup-name [my-backup-name] \
--mode glance --engine_name glance \
--action restore \
--no-incremental True \
--container /home/freezer_data \
--storage local \
--glance_image_id [glance-image-id]
Execute a glance restore with image-name:
.. code:: bash
freezer-agent --backup-name [my-backup-name] \
--mode glance --engine_name glance \
--action restore \
--no-incremental True \
--container /home/freezer_data \
--storage local \
--glance_image_name [glance-image-name]
Execute a glance restore with image-name-filter:
.. code:: bash
freezer-agent --backup-name [my-backup-name] \
--mode glance --engine_name glance \
--action restore \
--no-incremental True \
--container /home/freezer_data \
--storage local \
--glance_image_name_filter [glance-image-name-filter]
Execute a glance restore with project_id:
.. code:: bash
freezer-agent --backup-name [my-backup-name] \
--mode glance --engine_name glance \
--action restore \
--no-incremental True \
--container /home/freezer_data \
--storage local \
--project_id [project-id]
Storage Options
===============