diff -ur postgresql-snapshot/doc/src/sgml/backup.sgml my-postgresql/doc/src/sgml/backup.sgml
--- postgresql-snapshot/doc/src/sgml/backup.sgml 2009-03-05 13:50:03.000000000 -0600
+++ my-postgresql/doc/src/sgml/backup.sgml 2009-03-25 13:35:24.000000000 -0500
@@ -564,7 +564,7 @@
which will copy archivable WAL segments to the directory
/mnt/server/archivedir. (This is an example, not a
- recommendation, and might not work on all platforms.) After the
+ recommendation, and might not work on all platforms. It is highly recommend you use a tool that does atomic copies such as rsync -arv %p...) After the
%p and %f parameters have been replaced,
the actual command executed might look like this:
diff -ur postgresql-snapshot/doc/src/sgml/pgstandby.sgml my-postgresql/doc/src/sgml/pgstandby.sgml
--- postgresql-snapshot/doc/src/sgml/pgstandby.sgml 2009-02-27 03:30:21.000000000 -0600
+++ my-postgresql/doc/src/sgml/pgstandby.sgml 2009-03-25 13:27:42.000000000 -0500
@@ -207,7 +207,7 @@
On Linux or Unix systems, you might use:
-archive_command = 'cp %p .../archive/%f'
+archive_command = 'rsync -arz %p .../archive/%f'
restore_command = 'pg_standby -l -d -s 2 -t /tmp/pgsql.trigger.5442 .../archive %f %p %r 2>>standby.log'