The nz bnr command
Deployment options: Netezza Performance Server for Cloud Pak for Data
Use the nz bnr command to run backup and restore operations.
Syntax
nz bnr [options] [subcommands]
Inputs
| Subcommand | Description |
|---|---|
| ls | Lists all backup and restore operations. |
| show-contents | Displays a table with details about a selected backup or backups. |
| show-errors | Show bnr errors. |
| batchstatus | Batch status of batched. |
| backup | Adhoc backup of bucket. |
| restore | Restore backup of bucket. |
| credentials | Displays or modifies the backup and restore object store credentials on the system. |
| schedule | Sets or displays a backup schedule. |
| Option | Description |
|---|---|
| -h | Displays the help message. |
| -host | Required. Specifies the Cloud Pak for Data hostname of the platform |
| -apiserver | Required. Specifies Netezza Performance Server hostname. |
| -u | Required. Specifies the Netezza user. |
| -pw | Required. Specifies the Netezza user password. |
| -type | Type of backup. One of [FULL,DIFF,INCR] (required) |
| -bucket | Required. Bucket name |
| -databases | Database name <DB1,DB2,...DBN> | -all (required) |
Tip: If you set the following environment variables, you can forgo specifying the
-u, -pw, and -host options when you are running
the command.
- CPD_HOST
- The Cloud Pak for Data endpoint or hostname.
- CPD_USER
- This value is usually the same as the privileged Netezza user or admin.
- CPD_PASSWORD
- The password for the
CPD_USER.
Examples
[root@ip-10-0-4-191 ec2-user]# ./nz bnr ls -apiserver <apiserver> -u <user> -pw <password>
DATE BATCHID TYPE OP STATUS SIZE (GB) SOURCE BATCHID NUMBER OF DB
---------------------- ---------------- ----------- --------- ----------- ----------- ---------------- ---------------
2024-10-07 14:20:11 20241007142011 ADHOC restore COMPLETED 3.56 0
2024-10-07 14:20:41 20241007142041 ADHOC restore COMPLETED 93.32 0