1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-09 14:45:47 +02:00

Block archive backup for a standby node

A standby node only replays WAL, and does not actually archive them so
in this case this mode does not have much sense.
This commit is contained in:
Michael Paquier 2013-12-25 08:52:38 +09:00
parent a66e683dd4
commit 85f0c1e802
2 changed files with 6 additions and 1 deletions

View File

@ -455,6 +455,10 @@ do_backup_arclog(parray *backup_list)
if ((uint32) current.stop_lsn == 0)
pg_switch_xlog(&current);
/* Archive backup is not available for a standby */
if (current.is_from_standby)
elog(ERROR_SYSTEM, _("Archive backup not allowed on a standby node"));
/*
* Check if there is a full backup present on current timeline.
* For an incremental or full backup, we are sure that there is one

View File

@ -82,7 +82,8 @@ Incremental backup
Backup only files or pages modified after the last verified backup.
Archive WAL backup
Backup only archive WAL files.
Backup only archive WAL files. Archive backup is not available for
a standby node.
It is recommended to verify backup files as soon as possible after backup.
Unverified backup cannot be used in restore and in incremental backup.