Fix mistake in ssh command.
authorTatsuo Ishii <ishii@postgresql.org>
Thu, 25 Jul 2013 01:00:27 +0000 (10:00 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Thu, 25 Jul 2013 01:01:43 +0000 (10:01 +0900)
doc/basebackup.sh

index f9118fdb8b802af0f4e65719f3c8dfddd930e4ba..3d3fc6ee5fac853c9303cccba1dda0af308f0daf 100644 (file)
@@ -12,6 +12,6 @@ rsync -C -a --delete -e ssh --exclude postgresql.conf --exclude postmaster.pid \
 --exclude postmaster.opts --exclude pg_log --exclude pg_xlog \
 --exclude recovery.conf $datadir/ $desthost:$destdir/
 
-ssh -T localhost mv $destdir/recovery.done $destdir/recovery.conf
+ssh -T $desthost mv $destdir/recovery.done $destdir/recovery.conf
 
 psql -c "SELECT pg_stop_backup()" postgres