Backup Restore from other node after switchover/failover

From: Dirk Krautschick <Dirk(dot)Krautschick(at)trivadis(dot)com>
To: pgsql-general mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Backup Restore from other node after switchover/failover
Date: 2020-11-09 11:41:07
Message-ID: AM0PR05MB6082A2550969BF4EAF5CF6F6E9EA0@AM0PR05MB6082.eurprd05.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

haven’t tested it yet but maybe I can get a quick answer here.
We have discussed the following scenario.

Few nodes as streaming replication cluster all in sync with taking backup
only from one dedicated node. Now that node which is responsible for the backups
goes down. For sure I have a full backup taken from that crashed node
some time ago but now this node is gone and I have to take care for a
restore for some reason.

Am I able to make a full restore with that last backup from the offline node
to any other still existing node with Recovering the archived WAL from the new
selected node if I have activated archive_mode as “always”?

Or is it strictly necessary to create a new full backup from the new node
which is responsible for the backups after the failover or maybe after a
Switchover, too?

Thanks and best regards

Dirk

Browse pgsql-general by date

  From Date Subject
Next Message Yambu 2020-11-09 12:07:25 Temporary tables usage in functions
Previous Message Davide Jensen 2020-11-09 11:30:34 Different result behavior when using ANY(ARRAY(SELECT)) and IN (SELECT)