Skip to content

Commit 4773c70

Browse files
committed
doc: Clarify what files pg_basebackup omits from data directory
1 parent c424c04 commit 4773c70

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

doc/src/sgml/protocol.sgml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1995,6 +1995,11 @@ The commands accepted in walsender mode are:
19951995
<filename>postmaster.opts</>
19961996
</para>
19971997
</listitem>
1998+
<listitem>
1999+
<para>
2000+
various temporary files created during the operation of the PostgreSQL server
2001+
</para>
2002+
</listitem>
19982003
<listitem>
19992004
<para>
20002005
<filename>pg_xlog</>, including subdirectories. If the backup is run
@@ -2003,6 +2008,18 @@ The commands accepted in walsender mode are:
20032008
backup to work, not the rest of the contents.
20042009
</para>
20052010
</listitem>
2011+
<listitem>
2012+
<para>
2013+
<filename>pg_replslot</> is copied as an empty directory.
2014+
</para>
2015+
</listitem>
2016+
<listitem>
2017+
<para>
2018+
Files other than regular files and directories, such as symbolic
2019+
links and special device files, are skipped. (Symbolic links
2020+
in <filename>pg_tblspc</filename> are maintained.)
2021+
</para>
2022+
</listitem>
20062023
</itemizedlist>
20072024
Owner, group and file mode are set if the underlying file system on
20082025
the server supports it.

doc/src/sgml/ref/pg_basebackup.sgml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,10 @@ PostgreSQL documentation
571571
<para>
572572
The backup will include all files in the data directory and tablespaces,
573573
including the configuration files and any additional files placed in the
574-
directory by third parties. Only regular files and directories are allowed
575-
in the data directory, no symbolic links or special device files.
574+
directory by third parties. But only regular files and directories are
575+
copied. Symbolic links (other than those used for tablespaces) and special
576+
device files are skipped. (See <xref linkend="protocol-replication"> for
577+
the precise details.)
576578
</para>
577579

578580
<para>

0 commit comments

Comments
 (0)