]> granicus.if.org Git - postgresql/commit
Exclude additional directories in pg_basebackup
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 28 Sep 2016 16:00:00 +0000 (12:00 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 28 Sep 2016 16:00:00 +0000 (12:00 -0400)
commit6ad8ac6026287e3ccbc4d606b6ab6116ccc0eec8
tree385e7475cd19951acf84bd45c0613ce9d0e5ac9f
parentb82d5a2c7c9dd1a01041feef2834db27a46fb2d3
Exclude additional directories in pg_basebackup

The list of files and directories that pg_basebackup excludes from the
backup was somewhat incomplete and unorganized.  Change that with having
the exclusion driven from tables.  Clean up some code around it.  Also
document the exclusions in more detail so that users of pg_start_backup
can make use of it as well.

The contents of these directories are now excluded from the backup:
pg_dynshmem, pg_notify, pg_serial, pg_snapshots, pg_subtrans

Also fix a bug that a pg_repl_slot or pg_stat_tmp being a symlink would
cause a corrupt tar header to be created.  Now such symlinks are
included in the backup as empty directories.  Bug found by Ashutosh
Sharma <ashu.coek88@gmail.com>.

From: David Steele <david@pgmasters.net>
Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
doc/src/sgml/backup.sgml
doc/src/sgml/protocol.sgml
doc/src/sgml/ref/pg_basebackup.sgml
src/backend/replication/basebackup.c
src/bin/pg_basebackup/t/010_pg_basebackup.pl