The final steps include setting additional options on the Schedule, Source Options, and Advanced Options pages, submitting the job, and monitoring the progress through the Job Status and View Logs pages. These pages and options are common to all NetVault Backup Plug-ins. For more information, see the Quest NetVault Backup Administrator’s Guide.
1 |
2 |
In Job Name, specify a name for the job if you do not want to use the default setting. |
3 |
In the Target Client list, select the machine on which you want to restore the data. |
TIP: You can also click Choose, and then locate and select the applicable client in the Choose the Target Client dialog box. |
4 |
Use the Schedule, Source Options, and Advanced Options lists to configure any additional required options. |
5 |
6 |
If you restored a file-level data copy as a part of a recovery procedure intended to build or rebuild the database cluster Data directory, complete the following steps to ensure that recovery is completed. |
NOTE: PostgreSQL Server might replay additional transactions beyond the selected stop time. If you prefer that the recovery only has access to the WAL file transactions that were included in the sequence of Base and Incremental Backups, before you start the recovery process, delete the contents of the PostgreSQL Database Cluster pg_wal or pg_xlog directory and the contents of the staging directory for WAL files. Transactions committed after the last Base or Incremental Backup of the restore sequence are not replayed.
If you prefer to achieve a rollforward up to the latest available consecutive transaction, in addition to excluding a stop time, keep the existing contents in the pg_wal or pg_xlog directory and in the staging directory for WAL files. |
2 |
Generate an offline backup to savage the contents of the database cluster Data directory and the contents of the WAL files directory. |
3 |
Create a restore job, and select the applicable Base File Level Data Copy saveset to restore. |
Examples of creating the link: Linux or UNIX: ln -s /pg_wal_desired_location /opt/postgres/11/data/pg_wal Windows: mklink /J "C:\Program Files\PostgreSQL\11\data\pg_wal" "Q:\pg_wal_desired_location" |
4 |
Create a restore job, and select the first Incremental File Level Data Copy saveset to restore to the staging directory. |
5 |
Repeat the previous step for each Incremental File Level Data Copy saveset to restore. |
6 |
For the last Incremental File Level Data Copy saveset that you restore, select the Include Recover Command File with Restore option, and any other applicable options, on the Point in Time Recovery tab. |
8 |
After the PostgreSQL service has restarted, use the PostgreSQL psql tool to run the following command and complete the recovery: |
You can complete the following advanced procedures:
1 |
Select the Global Objects node from the backup saveset by following the instructions outlined in Selecting data for a restore. |
2 |
Set the Restore Options by following the instructions outlined in Setting restore options and completing the following parameters: |
• |
Stop on Error: Select this option if you want the restore to stop immediately when an error occurs. |
• |
Restore as Single Transaction: Select this option if all commands in the database backup must complete successfully; otherwise, no changes are applied. The changes made are rolled back if an error occurs. |
• |
Continue Restore with Warnings: Select this option if you want the plug-in to ignore the errors and continue with the restore. The errors encountered during job execution are recorded as warning messages in the NetVault Backup logs and the job status is reported as “Completed with Warnings.” |
IMPORTANT: PostgreSQL does not allow detailed restores of individual Global Objects, nor does it allow you to delete global objects before restoring. Therefore, when restoring Global Objects, all the Global Objects are restored. As a result, you encounter error messages about duplicate items during restore. Quest recommends that you restore Global Objects to an empty database cluster during disaster recovery or use the Continue Restore with Warnings option. If the Global Objects are being restored to recover dropped roles or users and the Continue Restore With Warnings option has been selected, warnings are logged in the NetVault Backup binary logs for roles or users that exist. |
To restore Global Objects from a TAR Archive File or Custom Archive File backup, no additional Restore Options are available. Perform Step 1 and Step 3 to restore Global Objects from these backup formats.
For restoring the data to a different database cluster, see Restoring data to a different database cluster.
When restoring configuration files, you do not have to set any restore options — unless you are restoring to a different cluster or server; for more information, see Restoring data to a different database cluster. The plug-in does not let you select individual configuration files for restoration.
1 |
Select the Configuration Files node from the backup saveset by following the instructions outlined in Selecting data for a restore. |
2 |
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Nutzungsbedingungen Datenschutz Cookie Preference Center