Re: WAL shipping question

From: SHARMILA JOTHIRAJAH <sharmi_jo(at)yahoo(dot)com>
To: Richard Huxton <dev(at)archonet(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: WAL shipping question
Date: 2007-12-04 16:51:48
Message-ID: 150691.39088.qm@web31107.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> Im trying to play a bit with log shipping between 2 servers primary
and standby. These servers are running versions 8.3betat3. I had set up
continuous archiving at the primary server. The manuals' example of
archive_command is
> archive_command = 'cp -i %p /mnt/server/archivedir/%f </dev/null'
>
> This basically archives the data in the primary server
itself...right!!!
> But how can I set up continuous archiving from primary to a directory
(WAL archive directory)
> on the stand-by server ?

>>a. Mount the remote directory via NFS/SMBFS/...
>>b. Use a remote copy, e.g. scp, FTP...

Thanks...
I tried this command to both copy in the primary server and scp to standby server.

archive_command = 'cp -i "%p" .../archivedir/"%f" &&
scp -B "%p".../archivedir/"%f" "%p" user(at)172(dot)31(dot)0(dot)21:/....archivedir/"%f"'

cp works but scp doesnt work. Is it becoz scp generally asks for password. I can do scp or ssh without password authentication but Im not sure if it is safe to do that.

What is the alternative for getting this done?

Thanks
sharmila

____________________________________________________________________________________
Be a better pen pal.
Text or chat with friends inside Yahoo! Mail. See how. http://overview.mail.yahoo.com/

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2007-12-04 17:10:51 Re: WAL shipping question
Previous Message Sam Mason 2007-12-04 16:40:14 Re: difficulty extracting variable-sized field on triggered row