Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
b9d8ea27
Commit
b9d8ea27
authored
Nov 17, 2004
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some further editorial adjustment of PITR recovery procedure description.
parent
4a6fd469
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
17 deletions
+25
-17
doc/src/sgml/backup.sgml
doc/src/sgml/backup.sgml
+25
-17
No files found.
doc/src/sgml/backup.sgml
View file @
b9d8ea27
<!--
<!--
$PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.5
1 2004/11/15 06:32:13 neilc
Exp $
$PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.5
2 2004/11/17 18:29:02 tgl
Exp $
-->
-->
<chapter id="backup">
<chapter id="backup">
<title>Backup and Restore</title>
<title>Backup and Restore</title>
...
@@ -617,6 +617,8 @@ archive_command = 'test ! -f .../%f && cp %p .../%f'
...
@@ -617,6 +617,8 @@ archive_command = 'test ! -f .../%f && cp %p .../%f'
it will not restore changes made to configuration files (that is,
it will not restore changes made to configuration files (that is,
<filename>postgresql.conf</>, <filename>pg_hba.conf</> and
<filename>postgresql.conf</>, <filename>pg_hba.conf</> and
<filename>pg_ident.conf</>) after the initial base backup.
<filename>pg_ident.conf</>) after the initial base backup.
You may wish to keep the configuration files in a location that will
be backed up by your regular filesystem backup procedures.
</para>
</para>
</sect2>
</sect2>
...
@@ -638,11 +640,11 @@ archive_command = 'test ! -f .../%f && cp %p .../%f'
...
@@ -638,11 +640,11 @@ archive_command = 'test ! -f .../%f && cp %p .../%f'
SELECT pg_start_backup('label');
SELECT pg_start_backup('label');
</programlisting>
</programlisting>
where <literal>label</> is any string you want to use to uniquely
where <literal>label</> is any string you want to use to uniquely
identify this backup operation.
<function>pg_start_backup</> creates
identify this backup operation.
(One good practice is to use the
a <firstterm>backup label</> file, called <filename>backup_label</>,
full path where you intend to put the backup dump file.)
in the cluster directory with information about your backup.
<function>pg_start_backup</> creates a <firstterm>backup label</> file,
One good practice is to use the full path where you intend to put the
called <filename>backup_label</>, in the cluster directory with
backup dump file as
.
information about your backup
.
</para>
</para>
<para>
<para>
...
@@ -762,19 +764,25 @@ SELECT pg_stop_backup();
...
@@ -762,19 +764,25 @@ SELECT pg_stop_backup();
<orderedlist>
<orderedlist>
<listitem>
<listitem>
<para>
<para>
Stop the postmaster, if it's running. If you have the space to do so,
Stop the postmaster, if it's running.
copy the cluster data directory and any tablespaces to a temporary
</para>
location so that you can reference them later. Note that this will
</listitem>
<listitem>
<para>
If you have the space to do so,
copy the whole cluster data directory and any tablespaces to a temporary
location in case you need them later. Note that this precaution will
require that you have enough free space on your system to hold two
require that you have enough free space on your system to hold two
copies of your existing database. If you do not have enough space,
copies of your existing database. If you do not have enough space,
you need at the least to
backup the <filename>pg_xlog</> directory in
you need at the least to
copy the contents of the <filename>pg_xlog</>
the cluster data directory as it may contain logs which were not archived
subdirectory of the cluster data directory, as it may contain logs which
before the system went down.
were not archived
before the system went down.
</para>
</para>
</listitem>
<listitem>
<para>
<para>
Next, clean out all existing files under the cluster data directory and
Clean out all existing files and subdirectories under the cluster data
under the root directories of any tablespaces you are using.
directory and
under the root directories of any tablespaces you are using.
</para>
</para>
</listitem>
</listitem>
<listitem>
<listitem>
...
@@ -797,7 +805,7 @@ SELECT pg_stop_backup();
...
@@ -797,7 +805,7 @@ SELECT pg_stop_backup();
</listitem>
</listitem>
<listitem>
<listitem>
<para>
<para>
If you had unarchived WAL segment files that you saved in step
1
,
If you had unarchived WAL segment files that you saved in step
2
,
copy them into <filename>pg_xlog/</>. (It is best to copy them,
copy them into <filename>pg_xlog/</>. (It is best to copy them,
not move them, so that you still have the unmodified files if a
not move them, so that you still have the unmodified files if a
problem occurs and you have to start over.)
problem occurs and you have to start over.)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment