postgresql/src/bin/pg_basebackup
Robert Haas dc21234005 Add support for incremental backup.
To take an incremental backup, you use the new replication command
UPLOAD_MANIFEST to upload the manifest for the prior backup. This
prior backup could either be a full backup or another incremental
backup.  You then use BASE_BACKUP with the INCREMENTAL option to take
the backup.  pg_basebackup now has an --incremental=PATH_TO_MANIFEST
option to trigger this behavior.

An incremental backup is like a regular full backup except that
some relation files are replaced with files with names like
INCREMENTAL.${ORIGINAL_NAME}, and the backup_label file contains
additional lines identifying it as an incremental backup. The new
pg_combinebackup tool can be used to reconstruct a data directory
from a full backup and a series of incremental backups.

Patch by me.  Reviewed by Matthias van de Meent, Dilip Kumar, Jakub
Wartak, Peter Eisentraut, and Álvaro Herrera. Thanks especially to
Jakub for incredibly helpful and extensive testing.

Discussion: http://postgr.es/m/CA+TgmoYOYZfMCyOXFyC-P+-mdrZqm5pP2N7S-r0z3_402h9rsA@mail.gmail.com
2023-12-20 09:49:12 -05:00
..
po Translation updates 2023-08-07 12:39:30 +02:00
t Add support for incremental backup. 2023-12-20 09:49:12 -05:00
.gitignore Rename user-facing tools with "xlog" in the name to say "wal". 2017-02-09 16:23:46 -05:00
Makefile Remove MSVC scripts 2023-12-20 09:44:37 +09:00
bbstreamer.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
bbstreamer_file.c Add support for incremental backup. 2023-12-20 09:49:12 -05:00
bbstreamer_gzip.c Improve const use in zlib-using code 2023-08-07 09:34:38 +02:00
bbstreamer_inject.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
bbstreamer_lz4.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
bbstreamer_tar.c Add and use symbolic constants for tar header offsets and file types. 2023-08-01 13:50:42 -04:00
bbstreamer_zstd.c Message style improvements 2023-05-19 18:45:29 +02:00
meson.build Add missing pg_basebackup TAP test for meson. 2023-06-16 10:32:49 +09:00
nls.mk pg_basebackup: Restore lost translation markers 2023-05-08 06:15:26 +02:00
pg_basebackup.c Add support for incremental backup. 2023-12-20 09:49:12 -05:00
pg_receivewal.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
pg_recvlogical.c Fix pg_recvlogical upon signal termination 2023-07-20 10:22:46 +09:00
receivelog.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
receivelog.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
streamutil.c Allow dbname in pg_basebackup/pg_receivewal connstring 2023-09-21 13:53:07 +02:00
streamutil.h pg_basebackup: Correct type of WalSegSz 2023-04-03 07:21:06 +02:00
walmethods.c C comment: mention why no setting lasterrno in dir_existsfile() 2023-10-31 11:59:14 -04:00
walmethods.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00