From: | Wim Aarts <w(dot)aarts(at)dsdeurne(dot)nl> |
---|---|
To: | The Hermit Hacker <scrappy(at)hub(dot)org>, Paul Branston <apbran(at)rannoch(dot)demon(dot)co(dot)uk> |
Cc: | pgsql-general(at)postgreSQL(dot)org |
Subject: | Re: [GENERAL] Database synchronisation over the internet... |
Date: | 2000-01-14 08:41:51 |
Message-ID: | 200001140841.JAA17741@qube.dsdeurne.nl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
>> I am also working on the self same thing. I am using ssh to authenticate
>> and encrpyt the connection. The master database uses pg_dump, since the
>> data is not too large, to create a file which is securely copied via scp
>> to the slave host. An ssh connection then logs into the slave,drops the
>> table and loads the data from the dump file which has been copied over.
>>
>> seems to work so far, but there must be more refinements I can add.
>
>use ssh to create a tunnel between server A and server B, then, from
>Server A, issue somethig like:
>
>psql -h ServerB -p 5432 -c "drop table <tablename>";
>pg_dump tablename | psql -h ServerB -p 5432 ...
So encryption will be with ssh. Thanks.
Then, considering both options, my question would be what happens if the
internet connection failed for some period of time? Will the second command
keep visitors waiting?
Are there any different kind of solutions? Where only changed data is synced?
Is such a solution likely to be slower than using dumps?
Cheers Wim.
From | Date | Subject | |
---|---|---|---|
Next Message | Hojdar Karel Ing. | 2000-01-14 13:13:15 | How to get number of the week from datetime? |
Previous Message | Marcin Mazurek - Multinet SA - Poznan | 2000-01-14 08:21:15 | Re: [GENERAL] Image data type |