The freezer client is the command-line interface (CLI) for the Backup, Restore, and Disaster Recovery service (freezer) API and its extensions.
This chapter documents freezer version 1.7.1.
For help on a specific freezer command, enter:
$ freezer help COMMAND
usage: freezer [--version] [-v | -q] [--log-file LOG_FILE] [-h] [--debug]
               [--os-auth-url OS_AUTH_URL] [--os-backup-url OS_BACKUP_URL]
               [--os-backup-api-version OS_BACKUP_API_VERSION]
               [--os-endpoint-type OS_ENDPOINT_TYPE]
               [--os-password OS_PASSWORD] [--os-username OS_USERNAME]
               [--os-token OS_TOKEN]
               [--os-project-domain-name OS_PROJECT_DOMAIN_NAME]
               [--os-project-domain-id OS_PROJECT_DOMAIN_ID]
               [--os-project-name OS_PROJECT_NAME]
               [--os-region-name OS_REGION_NAME]
               [--os-project-id OS_PROJECT_ID]
               [--os-user-domain-name OS_USER_DOMAIN_NAME]
               [--os-user-domain-id OS_USER_DOMAIN_ID] [-k]
               [--os-cacert OS_CACERT] [--os-cert OS_CERT]
--version-v, --verbose-q, --quiet--log-file LOG_FILE-h, --help--debug--os-auth-url OS_AUTH_URL--os-backup-url OS_BACKUP_URL--os-backup-api-version OS_BACKUP_API_VERSION--os-endpoint-type OS_ENDPOINT_TYPE--os-password OS_PASSWORD--os-username OS_USERNAME--os-token OS_TOKEN--os-project-domain-name OS_PROJECT_DOMAIN_NAME--os-project-domain-id OS_PROJECT_DOMAIN_IDenv[OS_PROJECT_ID].--os-project-name OS_PROJECT_NAME--os-region-name OS_REGION_NAME--os-project-id OS_PROJECT_ID--os-user-domain-name OS_USER_DOMAIN_NAME--os-user-domain-id OS_USER_DOMAIN_IDenv[OS_USER_DOMAIN_ID].-k, --insecure--os-cacert OS_CACERT--os-cert OS_CERTusage: freezer action-create [-h] --file FILE
Create an action from a file
Optional arguments:
-h, --help--file FILEusage: freezer action-delete [-h] action_id
Delete an action from the api
Positional arguments:
action_idOptional arguments:
-h, --helpusage: freezer action-list [-h] [-f {csv,html,json,table,value,yaml}]
                           [-c COLUMN] [--max-width <integer>] [--fit-width]
                           [--print-empty] [--noindent]
                           [--quote {all,minimal,none,nonnumeric}]
                           [--limit LIMIT] [--offset OFFSET] [--search SEARCH]
List all actions for your user
Optional arguments:
-h, --help--limit LIMIT--offset OFFSET
--search SEARCHDefine a filter for the query.
If the storage of freezer-api is a Sqlalchemy database, the search option
must be a list of {key, value}, and it can be converted to json,
otherwise, search option will not work, querying all records. as follows:
- ‘[{“max_retries”: 10}]’
- ‘[{“max_retries”: 10}, {“mode”: “nova”}]’
Note:If the storage of freezer-api is an elasticsearch database, the search
option can be the same as above, or it can be a string that it isn’t
{key, value}. plsease reference elasticsearch https://www.elastic.co/guide/en/elasticsearch/reference/current/search.html
as follows:
- ‘[{“max_retries”: 10}]’
- ‘[{“max_retries”: 10}, {“mode”: “nova”}]’
- ‘[“5e37946b10dc42dbb6ca3338501da2c7”]’
usage: freezer action-show [-h] [-f {html,json,shell,table,value,yaml}]
                           [-c COLUMN] [--max-width <integer>] [--fit-width]
                           [--print-empty] [--noindent] [--prefix PREFIX]
                           action_id
Show a single action
Positional arguments:
action_idOptional arguments:
-h, --helpusage: freezer action-update [-h] action_id file
Update an action from a file
Positional arguments:
action_idfileOptional arguments:
-h, --helpusage: freezer backup-delete [-h] backup_uuid
Delete a backup from the api
Positional arguments:
backup_uuidOptional arguments:
-h, --helpusage: freezer backup-list [-h] [-f {csv,html,json,table,value,yaml}]
                           [-c COLUMN] [--max-width <integer>] [--fit-width]
                           [--print-empty] [--noindent]
                           [--quote {all,minimal,none,nonnumeric}]
                           [--limit LIMIT] [--offset OFFSET] [--search SEARCH]
List all backups for your user
Optional arguments:
-h, --help--limit LIMIT--offset OFFSET
--search SEARCHfreezer action-listusage: freezer backup-show [-h] [-f {html,json,shell,table,value,yaml}]
                           [-c COLUMN] [--max-width <integer>] [--fit-width]
                           [--print-empty] [--noindent] [--prefix PREFIX]
                           backup_uuid
Show the metadata of a single backup
Positional arguments:
backup_uuidOptional arguments:
-h, --helpusage: freezer client-delete [-h] client_id
Delete a client from the api
Positional arguments:
client_idOptional arguments:
-h, --helpusage: freezer client-list [-h] [-f {csv,html,json,table,value,yaml}]
                           [-c COLUMN] [--max-width <integer>] [--fit-width]
                           [--print-empty] [--noindent]
                           [--quote {all,minimal,none,nonnumeric}]
                           [--limit LIMIT] [--offset OFFSET] [--search SEARCH]
List of clients registered in the api
Optional arguments:
-h, --help--limit LIMIT--offset OFFSET
--search SEARCHfreezer action-listusage: freezer client-register [-h] --file FILE
Register a new client
Optional arguments:
-h, --help--file FILEusage: freezer client-show [-h] [-f {html,json,shell,table,value,yaml}]
                           [-c COLUMN] [--max-width <integer>] [--fit-width]
                           [--print-empty] [--noindent] [--prefix PREFIX]
                           client_id
Show a single client
Positional arguments:
client_idOptional arguments:
-h, --helpusage: freezer job-abort [-h] job_id
Abort a running job
Positional arguments:
job_idOptional arguments:
-h, --helpusage: freezer job-create [-h] --file FILE --client CLIENT_ID
Create a new job from a file
Optional arguments:
-h, --help--file FILE--client CLIENT_ID, -Cusage: freezer job-delete [-h] job_id
Delete a job from the api
Positional arguments:
job_idOptional arguments:
-h, --helpusage: freezer job-get [-h] [--no-format] job_id
Download a job as a json file
Positional arguments:
job_idOptional arguments:
-h, --help--no-formatusage: freezer job-list [-h] [-f {csv,html,json,table,value,yaml}] [-c COLUMN]
                        [--max-width <integer>] [--fit-width] [--print-empty]
                        [--noindent] [--quote {all,minimal,none,nonnumeric}]
                        [--limit LIMIT] [--offset OFFSET] [--search SEARCH]
                        [--client CLIENT_ID]
List all the jobs for your user
Optional arguments:
-h, --help--limit LIMIT--offset OFFSET
--search SEARCHfreezer action-list--client CLIENT_ID, -Cusage: freezer job-show [-h] [-f {html,json,shell,table,value,yaml}]
                        [-c COLUMN] [--max-width <integer>] [--fit-width]
                        [--print-empty] [--noindent] [--prefix PREFIX]
                        job_id
Show a single job
Positional arguments:
job_idOptional arguments:
-h, --helpusage: freezer job-start [-h] job_id
Send a start signal for a job
Positional arguments:
job_idOptional arguments:
-h, --helpusage: freezer job-stop [-h] job_id
Send a stop signal for a job
Positional arguments:
job_idOptional arguments:
-h, --helpusage: freezer job-update [-h] job_id file
Update a job from a file
Positional arguments:
job_idfileOptional arguments:
-h, --helpusage: freezer session-add-job [-h] --session-id SESSION_ID --job-id JOB_ID
Add a job to a session
Optional arguments:
-h, --help--session-id SESSION_ID--job-id JOB_IDusage: freezer session-create [-h] --file FILE
Create a session from a file
Optional arguments:
-h, --help--file FILEusage: freezer session-delete [-h] session_id
Delete a session
Positional arguments:
session_idOptional arguments:
-h, --helpusage: freezer session-list [-h] [-f {csv,html,json,table,value,yaml}]
                            [-c COLUMN] [--max-width <integer>] [--fit-width]
                            [--print-empty] [--noindent]
                            [--quote {all,minimal,none,nonnumeric}]
                            [--limit LIMIT] [--offset OFFSET]
                            [--search SEARCH]
List all the sessions for your user
Optional arguments:
-h, --help--limit LIMIT--offset OFFSET
--search SEARCHfreezer action-listusage: freezer session-remove-job [-h] --session-id SESSION_ID --job-id JOB_ID
Remove a job from a session
Optional arguments:
-h, --help--session-id SESSION_ID--job-id JOB_IDusage: freezer session-show [-h] [-f {html,json,shell,table,value,yaml}]
                            [-c COLUMN] [--max-width <integer>] [--fit-width]
                            [--print-empty] [--noindent] [--prefix PREFIX]
                            session_id
Show a single session
Positional arguments:
session_idOptional arguments:
-h, --helpusage: freezer session-start [-h] --session-id SESSION_ID --job-id JOB_ID
                             --job-tag JOB_TAG
Start a session
Optional arguments:
-h, --help--session-id SESSION_ID--job-id JOB_ID--job-tag JOB_TAGusage: freezer session-update [-h] session_id file
Update a session from a file
Positional arguments:
session_idfileOptional arguments:
-h, --help 
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.