The nzbatchbnr command
Deployment options: Netezza Performance Server for Cloud Pak for Data System
Use the nzbatchbnr command to run batch operations for backup and restore.
With the command, you can:
- 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 the 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 args>
Operation | |
---|---|
Backup
|
|
Restore
|
|
List
|
|
Delete
|
|
Errors
|
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 values that it takes are:
- AWS_S3
- IBMCLOUD_OBJECT
- AZURE_BLOB
An empty value is not allowed.