Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. NetBackup™ for PostgreSQL Administrator's Guide
  3. Restoring PostgreSQL Instances and Databases
  4. Steps to perform after Restore and Recovery for PostgreSQL cluster deployment
NetBackup™ for PostgreSQL Administrator's Guide

Steps to perform after Restore and Recovery for PostgreSQL cluster deployment

The following procedure is applicable for snapshot, pgbackrest, and pg_basebackup backup methods, and not applicable for the pg_dumpall and pg_dump backup methods.

If the recovery done from backup of PostgreSQL primary node to same or alternate primary node, do the following on the PostgreSQL standby node:

  • Stop PostgreSQL services.

  • Clean the PostgreSQL data directory path.

  • Run the $ pg_basebackup -h primary_node_ip -U db_replication_user --checkpoint=fast -D data_directory_path -R --slot=unique_slot_name -C command with database user.

  • Start the PostgreSQL services.

If the recovery done from backup of PostgreSQL standby node to same or alternate primary node, do the following on the PostgreSQL primary node:

  • Stop the PostgreSQL services.

  • Delete the standby.signal file from the data directory.

  • Fix the archive command in postgresql.conf file from data directory.

    For example: For Linux: archive_command='cp %p /path/to/archive/location/%f' and for Windows: archive_command = 'copy "%p" "path\\to\\archive\\location\\%f"'

  • Start the PostgreSQL services.

PostgreSQL standby node:

  • Stop PostgreSQL services.

  • Clean the PostgreSQL data directory path.

  • Run the below command with database user:$ pg_basebackup -h master_node_ip -U db_replication_user --checkpoint=fast -D data_directory_path -R --slot=unique_slot_name -C

  • Start the PostgreSQL services.

Note:

When the recovery is done from backup of PostgreSQL primary node to PostgreSQL standby node, then the standby node becomes an independent primary node.

Feedback

Was this page helpful?
Previous

Steps to perform recovery after restore operation

Next

Limitations

Feedback

Was this page helpful?