Restoring One or More PostgreSQL Databases

Updated

You can browse and restore backed up data for an entire database or for individual databases.

Use FSBased backupset, to restore the entire database.

Use DumpBased backupset, to restore the individual databases.

Before You Begin

  1. Perform a backup.

  2. Verify that the PostgreSQL software version on the destination is the same version or higher than the software version.

  3. For FSBased backup set, stop the PostgreSQL server and delete or rename the wal and data directories.

  4. For DumpBased backup set, complete the following steps:

    • Roles and tablespaces to which the database or table belongs should preexist.

    • We connect to maintenance database to perform the restore operation. Hence, restore of maintenance database requires modifying the maintenance database in the Instance details page to another database that will not be a part of the restore job.

Procedure

  1. From the navigation pane, go to Protect > Databases.

    The Instances page appears.

  2. Click the instance that you want to restore.

    The instance page appears.

  3. In the Recovery points calendar, select FSBasedBackupSet or DumpBasedBackupSet.

  4. Select a date from the calendar, and then click Restore.

    The Backup content dialog box appears.

    Note: Ensure that you have performed a successful backup on the selected date.

  5. To select the content to restore, from the Restore from default copy box, select a copy to perform the restore operation.

  6. Click Restore.

  7. Follow the steps for the type of restore operation you want to run:

    • To run an out-of-place restore operation, complete the following steps:

      1. From the Destination Client list, select the destination host for the restore.

      2. From the Destination instance list, select the destination instance for the restore.

        Note: For FSBased backup set, it is assumed that the data directory path and tablespace location in the source and the destination clients are the same. If they are different, then redirect the data directory to a different path by performing a redirect restore operation.

    • For an in-place restore operation, the destination client and the destination instance remain the same as the source client and the source instance.

  8. Click Submit.