c_sysadm_networker_host_bar.ditaHost backup and restore
Deployment options: Netezza Performance Server for Cloud Pak for Data System
Learn how to back up and restore the Netezza Performance Server host metadata by using NetWorker.
To back up and restore the Netezza Performance Server host metadata by using the NetWorker connector, create scripts for the host, which run a host backup and send the backup to the NetWorker server, and scripts that retrieve and restore a backup.
The nzhostbackup and nzhostrestore commands do not directly support the NetWorker connector.
For example, the following sample script uses the nzhostbackup command to
create a host backup in the specified /tmp archive and then sends the backup to
the NetWorker server:
#!/bin/bash
#
# nzhostbackup_nw - back up the host catalog and send it to NetWorker server
archive="/tmp/nzhostbackup.tar.gz"
# Main script execution starts here
(
nzhostbackup "${archive}"
echo
echo "Sending host backup archive '${archive}' to NetWorker server ..."
save -s $NSR_SERVER "${archive}"
)
exit 0You can also create a script to retrieve and reload a host backup from the NetWorker
server:
#!/bin/bash
#
# nzrestore_nw - restore host backup from NetWorker by using nzhostbackup_nw
# Main script execution starts here
(
archive="/tmp/nzhostbackup.tar.gz"
echo "Restoring the specified backupset '${archive}' from NetWorker Server ..."
recover -a -s $NSR_SERVER "${archive}"
echo "Performing Host restore"
nzhostrestore "${archive}"
)
exit 0