Commit ca2d0857 authored by Bruce Momjian's avatar Bruce Momjian

Document use of rsync for file system backups.

Tino Wildenhain
parent 82c46e5a
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.56 2005/02/25 04:56:01 momjian Exp $ $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.57 2005/03/17 05:03:37 momjian Exp $
--> -->
<chapter id="backup"> <chapter id="backup">
<title>Backup and Restore</title> <title>Backup and Restore</title>
...@@ -373,6 +373,15 @@ tar -cf backup.tar /usr/local/pgsql/data ...@@ -373,6 +373,15 @@ tar -cf backup.tar /usr/local/pgsql/data
establish all the frozen snapshots. establish all the frozen snapshots.
</para> </para>
<para>
Another option is to use <application>rsync</> to perform a file
system backup. First, while the database server is running,
run <application>rsync</>, then shut down the database
server and perform a second <application>rsync</>, then
restart the database server. This allows a file system backup to be
performed with minimal downtime.
</para>
<para> <para>
Note that a file system backup will not necessarily be Note that a file system backup will not necessarily be
smaller than an SQL dump. On the contrary, it will most likely be smaller than an SQL dump. On the contrary, it will most likely be
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment