Document use of rsync for file system backups.

Tino Wildenhain
This commit is contained in:
Bruce Momjian 2005-03-17 05:03:37 +00:00
parent 82c46e5a70
commit ca2d08579e

View File

@ -1,5 +1,5 @@
<!-- <!--
$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
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