]> granicus.if.org Git - postgresql/commit
Add pg_basebackup tool for streaming base backups
authorMagnus Hagander <magnus@hagander.net>
Sun, 23 Jan 2011 11:21:23 +0000 (12:21 +0100)
committerMagnus Hagander <magnus@hagander.net>
Sun, 23 Jan 2011 11:21:23 +0000 (12:21 +0100)
commit048d148fe63102fafb2336ab5439c950dea7f692
treea4dbc349313a1644089792ecb29139a960e676a8
parent6f59777c65d557485e933a383ebc4c3fdfc1a2b7
Add pg_basebackup tool for streaming base backups

This tool makes it possible to do the pg_start_backup/
copy files/pg_stop_backup step in a single command.

There are still some steps to be done before this is a
complete backup solution, such as the ability to stream
the required WAL logs, but it's still usable, and
could do with some buildfarm coverage.

In passing, make the checkpoint request optionally
fast instead of hardcoding it.

Magnus Hagander, reviewed by Fujii Masao and Dimitri Fontaine
17 files changed:
doc/src/sgml/backup.sgml
doc/src/sgml/config.sgml
doc/src/sgml/protocol.sgml
doc/src/sgml/ref/allfiles.sgml
doc/src/sgml/ref/pg_basebackup.sgml [new file with mode: 0644]
doc/src/sgml/reference.sgml
src/backend/replication/basebackup.c
src/backend/replication/repl_gram.y
src/backend/replication/repl_scanner.l
src/backend/replication/walsender.c
src/bin/Makefile
src/bin/pg_basebackup/Makefile [new file with mode: 0644]
src/bin/pg_basebackup/nls.mk [new file with mode: 0644]
src/bin/pg_basebackup/pg_basebackup.c [new file with mode: 0644]
src/include/replication/basebackup.h
src/include/replication/replnodes.h
src/tools/msvc/Mkvcbuild.pm