]> granicus.if.org Git - postgresql/commit
pg_basebackup: Clean created directories on failure
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 12 Sep 2016 16:00:00 +0000 (12:00 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 12 Sep 2016 16:00:00 +0000 (12:00 -0400)
commit9083353b15c3cf8e7bbac104a81ad42281178cdf
tree31bed8bbce6f0cd52d30f1537bf2dbed0926190a
parent63c1a871940c7c4798788e98fdb1a24408a49d05
pg_basebackup: Clean created directories on failure

Like initdb, clean up created data and xlog directories, unless the new
-n/--noclean option is specified.

Tablespace directories are not cleaned up, but a message is written
about that.

Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
doc/src/sgml/ref/pg_basebackup.sgml
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_basebackup/t/010_pg_basebackup.pl