Creating a user-directed backup

Deployment options: Netezza Performance Server for Cloud Pak for Data System

You can create a user-directed backup by using NetBackup.

About this task

As an example, this procedure runs a host backup by using the nzhostbackup command.

The nzhostbackup command creates a single file that is written to the local disk or other storage accessible from the Netezza host. You can send this file to NetBackup by using the bpbackup command-line utility, which is included with the NetBackup client software installed on the Netezza Performance Server host. You can later transfer the file back to its original location by using the bprestore command-line utility (also a part of the NetBackup client software). You can then restore the file by using the nzhostrestore command.

To create a user-directed backup, complete the following steps.

Procedure

  1. Create a NetBackup policy of type Standard.
  2. Edit the policy schedule to match your intentions for backup.
  3. Specify the Netezza Performance Server host as a client.
  4. Set the storage unit or other policy attributes to your preferences.
  5. Log on to the Netezza Performance Server host.
  6. Create the host backup based on your backup policy.
    For example:
    nzhostbackup /nz/tmp/hostbackup.20070521
  7. Transfer the file to NetBackup by using the bpbackup utility.
    For example:
    bpbackup -p nzhostbackup -w -L /nz/tmp/hostbackup.log 
    /nz/tmp/hostbackup.20070521

Results

Keep in mind the following important points for the bpbackup utility and the example:

  • Specify the explicit path to the bpbackup command if it is not part of your account's PATH setting. The default location for the utility is /usr/openv/netbackup/bin.
  • In the sample command, the -L option specifies the log file where the status of the backup operation is written. Review the file because the utility does not return error messages to the console.
  • The -w option causes the bpbackup utility to run synchronously; it does not return until the operation completes.
  • The -p option specifies the name of the NetBackup policy, which you defined in step 1.
  • You can display syntax for the bpbackup utility by running bpbackup without options.
Note: An alternative to the bpbackup command is the bp interactive NetBackup client utility. The utility steps you through a backup or a restore.