Rolling Back PostgreSQL Continuous Archiving to a Previous Point-in-Time
- 21 Mar 2022
- 1 Minute to read
- Print
- DarkLight
- PDF
Rolling Back PostgreSQL Continuous Archiving to a Previous Point-in-Time
- Updated on 21 Mar 2022
- 1 Minute to read
- Print
- DarkLight
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
After continuous archiving has been set up, you can roll back to an older version of the portal database.
To roll back PostgreSQL continuous archiving to a previous point in time:
- Using SSH, log in as root to your CTERA Portal primary database server.
- In the command line, enter the following command to view the oldest time possible to roll back to:
portal.sh db-rollback -p
- Enter the following command to roll back to a point in time within the available backup range:
portal.sh db-rollback -r " point-in-time
"
Where point-in-time is the desired point in time, in the format YYYY-MM-DD hh:mm:ss.
For example:portal.sh db-rollback -r "2020-06-10 00:23:21"
- When rolling back a primary database server, from which a replication server is streaming, described in Using PostgreSQL Streaming Replication, restart the CTERA Portal on the secondary database server, the replicating server, by running:
portal-manage.sh restart
Was this article helpful?