Veritas NetBackup™ for PostgreSQL Administrator's Guide
- Introduction to NetBackup for PostgreSQL
- Installing the NetBackup for PostgreSQL Agent
- Planning the installation of NetBackup for PostgreSQL Agent
- Verifying the operating systems and platforms
- Installing prerequisites for NetBackup for PostgreSQL Agent
- Post-installation requirements for NetBackup for PostgreSQL Agent
- Describing the NetBackup for PostgreSQL Agent package
- Installing the NetBackup for PostgreSQL Agent
- Authenticating the password
- Uninstalling the NetBackup for PostgreSQL Agent
- Configuring NetBackup for PostgreSQL
- The NetBackup for PostgreSQL backups and restores
- About PostgreSQL backups
- Performing PostgreSQL backups
- Validating the PostgreSQL backups
- Querying the PostgreSQL backups
- Deleting backup information from the NetBackup catalog files
- About PostgreSQL restore
- Performing the PostgreSQLrestores
- Redirected restores
- Recovering the restores
- Disaster recovery
- Troubleshooting for PostgreSQL
- Appendix A. NetBackup for PostgreSQL commands and conventions
- Appendix B. NetBackup for PostgreSQL commands
Redirected restores
Redirected restores lets you restore backup files to a client different from the client that originally performed the backup. The new location can be a different host or a different file path using a different name for the redirected restore. To redirect a restore to a different host, include the destination client name in the install_path\NetBackup\db\altnames directory.
To redirect a restore to a different host
- Update the
nbpgsql.conffile with the NetBackup client name as the host and the PostgreSQL target directory as the directory where you want to redirect the restore. - On the NetBackup master server, create an
altnamesdirectory for the host that you want to have permission to perform the redirected restore. For example, to give Host B permissions to restore from another host, create the following file:(Windows)
install_path\NetBackup\db\altnames\HostB(Linux RHEL and SLES)
/usr/openv/netbackup/db/altnames/HostB
- In the
altnamesdirectory, add the names of the client(s) whose files the requesting client wants to restore. For example, if you want Host B to have permissions to redirect restores from Host A, add Host A to the Host B file. - Run the following command:
nbpgsql -o restore -S master_server_name -t target_directory -portnum db_port [-id db_backup_id] [-C client_name]
- After a successful redirected restore, undo the changes that you made on the master server and the client.
To redirect a restore to a different file path
- Run the following command:
nbpgsql -o restore -S master_server_name -t target_directory -portnum database_server_port [-id db_backup_id] [-C client_name]
- Copy the restore data to the data directory.
- After a successful restore, change the ownership of data directory to PostgreSQL user and modify the settings according to your environment.