By default, the software restores an instance to the same location from where it was backed up. You can also restore an instance to a different PostgreSQL instance.
Before You Begin
Stop the PostgreSQL server, and delete or rename the data directory, user tablespace directory, archive log directory and transaction log directory that is outside the data directory.
Restrictions
-
Revert restore operation is supported only for hardware snap engines.
-
When you perform a revert restore operation, make sure that the volume is not in use.
Procedure
-
From the CommCell Browser, expand Client Computers > Client > PostgreSQL > Instance.
-
Right-click FSBasedBackupSet, point to All Tasks, and then click Browse and Restore.
-
On the Browse and Restore Options dialog box, click View Content.
-
From the Browse window, select FSBasedBackupSet, and then click Recover All Selected.
The PostgreSQL Database Restore Options dialog box is displayed.
-
Select Restore in place, and then click Next.
-
Optional: To restore this PostgreSQL instance to a different instance on the same client, from the Destination Server list, select the name of the destination instance.
If you are using PostgreSQL 12, follow the steps mentioned in Consideration for Restoring FSBased Backup Set on PostgreSQL 12.
-
In the Number of Streams box, enter the number of streams to use in the restore operation.
By default, the number of streams is set to 2.
-
Click OK.
Notes
-
You can also perform a full instance restore from the instance level by either selecting Restore PostgreSQL Server or Browse and Restore:
-
If you select Restore PostgreSQL Server, from the Data Path tab of the Advanced Restore Options dialog box, select a Linux MediaAgent before running the restore operation.
-
If you select Browse and Restore, from the Advanced Options tab of the Browse and Restore Options dialog box, select a Linux MediaAgent before running the restore operation.
-
-
The file permissions for the staging directory must be set to 777.
-
Do not use root directory as a staging location.