# Performing In-place Restore of PostgreSQL Databases from an FSBased Backup

You can perform the in-place restore of PostgreSQL databases from a FSBased backup set.

## Procedure

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

2. On the database Overview page, go to the Instances tab.

3. Click the instance you want to restore, then in the Recovery points tile, select FSBasedBackupSet, and click Restore.

   Alternatively, in the row for the instance, click the action button , and then click Restore.

4. On the Backup content page, do the following:

   1. Select the data.

      Note

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

   2. Select Database view.

   3. Click View selection, and then from the Selected items dialog box, select a correct view.

5. Click Restore.

   The Restore options dialog box appears.

6. Select In place.

7. The Destination server and Destination instance are selected by default.

8. In the Number of streams box, enter the number of streams that are applicable for snapshot or backup copy restores.

9. Select the Cleanup old directories check box to clean up data, tablespace, and archive log directories before performing the restore.

   If you do not select the Cleanup old directories check box, stop the PostgreSQL server, and delete the content of data directory, user tablespace directory, archive log directory, and any transaction log directory (pg_wal) located outside the data directory.

10. The Recover Database Server is checked by default.

    Clear the Recover Database Server check box if you do not want the PostgreSQL Server to start automatically after the restore operation is complete.

11. In the Start server command box, enter the command to start the PostgreSQL server.

12. Select the Redirect checkbox to enable redirect restore operation.

    - The Source Path box displays the path that you are restoring data from.

    - In the New Path box, enter or browse to the new destination path where you want to restore the data.

13. Under Advanced options section, perform the following actions:

    - Under the Pre or Post options, do the following:

      - In the Pre recovery command box, enter the name or path of the process to run before the restore.

      - In the Post recovery command box, enter the name or path of the process to run after the restore.

      - If you want to initiate the restore as user, move the Run as User toggle button to right.

        In the User name box, enter a user name you want to run the restore with.

    - Under the Data path, do the following:

      - From the Server name list, select a media agent server name.

14. To send a notification email when the restore job completes, select the Notify user on job completion.

15. You can configure a schedule to repeat this restore operation. To create a schedule, do the following:

    1. Click Schedule.

       The Add schedule dialog box appears.

    2. In the Name box, type a name for the schedule.

    3. Configure the Frequency and Repeat parameters.

    4. To specify exceptions to the schedule, click Exceptions.

       The Exceptions dialog box appears.

    5. Configure the exception parameters:

       - You can click Add Exception to save a set of exception parameters and continue adding sets of exception parameters.

       - Click Save when you have finished configuring the exception parameters.

    6. Under the Range of recurrence section, specify the Start date and End date to schedule the recurrence range of the restore operation.

    7. To save the schedule and return to the restore dialog box, click Schedule.

16. Click Submit.

## Related Topic

Viewing and Editing Database Restore Schedule.

×

Loading...