The nzbatchbnr command
Use the nzbatchbnr command to run batch operations for backup and
radm_cloud_nzbatchbnradm_cloud_nzbatchbnradm_cloud_nzbatchbnrestore.
With the command, you can do the following actions:
- Trigger a batch of backups of all existing databases.
- Trigger a partial or complete restore of selected or all databases from a batch.
- Delete backups from cloud stores.
- List all backup and restore batch operations.
- Get the status of ongoing batch operations.
- Get information about errors that you encountered during a batch.
- Scan backups on cloud and recover metadata about backups, use it for recovery or migration.
Syntax
The nzbatchbnr has the following
syntax:
nzbatchbnr [operation] --destination [ s3 | ibm | az ] --unique-id UNIQUE ID CONNECTION ARGUMENTS
| Operation type | Command syntax | |
|---|---|---|
| Backup |
|
|
| Restore |
|
|
| List |
|
|
| Delete |
|
|
| Errors |
|
Example:
{
"backup_list": [
{
"db": [
{
"name": "DB1"
}
],
"type": "FULL",
"label": {
"batchtype": "ADHOC",
"bucket": "concerto-bnr-test-qa"
}
}
]
}{
"batchid": "20251029082815",
"select": {},
"user_name": "admin",
"token": "**********"
}| Destination type | Connection arguments |
|---|---|
| s3 |
|
| ibm |
|
| az |
|
Connection arguments can be mentioned in a credentials file, in the --creds-file
option. The format of the credentials file is:
{
"access_key_id": "",
"default_region": "",
"bucket": "",
"secret_key": "",
"endpoint": "",
"user_name": "",
"token": "",
"account_name": "",
"account_key": "",
"container": "",
"destination": ""
}
Note: The destination key is mandatory in the
--creds-file option.
The key takes the following values:
- AWS_S3
- IBMCLOUD_OBJECT
- AZURE_BLOB
An empty value is not allowed.