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:
parent
a66e683dd4
commit
85f0c1e802
4
backup.c
4
backup.c
@ -455,6 +455,10 @@ do_backup_arclog(parray *backup_list)
|
||||
if ((uint32) current.stop_lsn == 0)
|
||||
pg_switch_xlog(¤t);
|
||||
|
||||
/* 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
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user