Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit28d150d

Browse files
committed
Update file system snapshot docs.
1 parent57fdb2b commit28d150d

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

‎doc/src/sgml/backup.sgml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.58 2005/03/1705:10:11 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.59 2005/03/1715:38:46 momjian Exp $
33
-->
44
<chapter id="backup">
55
<title>Backup and Restore</title>
@@ -364,9 +364,11 @@ tar -cf backup.tar /usr/local/pgsql/data
364364
</para>
365365

366366
<para>
367-
If your database is spread across multiple volumes (for example,
368-
if you are using tablespaces) there may not be any way
369-
to obtain exactly-simultaneous frozen snapshots of all the volumes.
367+
If your database is spread across multiple file systems there may not
368+
be any way to obtain exactly-simultaneous frozen snapshots of all
369+
the volumes. For example, if your data files and WAL log on different
370+
file disks, or if tablespaces are on different file systems, it might
371+
not be possible to use snapshots because the snapshots must be simultaneous.
370372
Read your file system documentation very carefully before trusting
371373
to the consistent-snapshot technique in such situations. The safest
372374
approach is to shut down the database server for long enough to
@@ -375,11 +377,12 @@ tar -cf backup.tar /usr/local/pgsql/data
375377

376378
<para>
377379
Another option is to use <application>rsync</> to perform a file
378-
system backup. First, while the database server is running,
379-
run <application>rsync</>, then shut down the database
380-
server and perform a second <application>rsync</>, then
381-
restart the database server. This allows a file system backup to be
382-
performed with minimal downtime.
380+
system backup. This is done by first running <application>rsync</>
381+
while the database server is running, then shutting down the database
382+
server just long enough to do a second <application>rsync</>. The
383+
second <application>rsync</> will be much quicker than the first,
384+
but will be consistent because the server was down. This method
385+
allows a file system backup to be performed with minimal downtime.
383386
</para>
384387

385388
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp