Skip to content

Commit de71541

Browse files
committed
doc: Improve pg_upgrade rsync examples to use clusterdir
Commit 9521ce4 from Sep 13, 2017 and backpatched through 9.5 used rsync examples with datadir. The reporter has pointed out, and testing has verified, that clusterdir must be used, so update the docs accordingly. Reported-by: Don Seiler Discussion: https://postgr.es/m/CAHJZqBD0u9dCERpYzK6BkRv=663AmH==DFJpVC=M4Xg_rq2=CQ@mail.gmail.com Backpatch-through: 9.5
1 parent d40d97d commit de71541

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/src/sgml/ref/pgupgrade.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -494,10 +494,10 @@ pg_upgrade.exe
494494
server:
495495

496496
<programlisting>
497-
rsync --archive --delete --hard-links --size-only --no-inc-recursive old_pgdata new_pgdata remote_dir
497+
rsync --archive --delete --hard-links --size-only --no-inc-recursive old_cluster new_cluster remote_dir
498498
</programlisting>
499499

500-
where <option>old_pgdata</option> and <option>new_pgdata</option> are relative
500+
where <option>old_cluster</option> and <option>new_cluster</option> are relative
501501
to the current directory on the primary, and <option>remote_dir</option>
502502
is <emphasis>above</emphasis> the old and new cluster directories
503503
on the standby. The directory structure under the specified
@@ -506,8 +506,8 @@ rsync --archive --delete --hard-links --size-only --no-inc-recursive old_pgdata
506506
remote directory, e.g.
507507

508508
<programlisting>
509-
rsync --archive --delete --hard-links --size-only --no-inc-recursive /opt/PostgreSQL/9.5/data \
510-
/opt/PostgreSQL/9.6/data standby.example.com:/opt/PostgreSQL
509+
rsync --archive --delete --hard-links --size-only --no-inc-recursive /opt/PostgreSQL/9.5 \
510+
/opt/PostgreSQL/9.6 standby.example.com:/opt/PostgreSQL
511511
</programlisting>
512512

513513
You can verify what the command will do using

0 commit comments

Comments
 (0)