Re: pg_upgrade + streaming replication ?

From: Henk Bronk <hb(at)101-factory(dot)eu>
To: dennis jenkins <dennis(dot)jenkins(dot)75(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_upgrade + streaming replication ?
Date: 2012-03-21 08:12:29
Message-ID: 990B1B91-246F-4D72-8BF8-274B35429565@101-factory.eu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On linux, you can also do a

cp -rpuv. source destination

or script, something like this in good old bash:

ls directory | grep file extension >> copy.txt
list=$(< /full path/copy.txt)
location=/target directory
scp $list user(at)host:$location

or rsync
rsync -avz --progress -e ssh user(at)host:source-directory/ /target-directory/
check the slashes at the end, without a new directory is created

Hope this is helpfull

Met vriendelijk groet, with kind regards

Henk Bronk

On 21 mrt. 2012, at 02:42, dennis jenkins <dennis(dot)jenkins(dot)75(at)gmail(dot)com> wrote:

>
> On Tue, Mar 20, 2012 at 8:27 PM, Jeff Davis <pgsql(at)j-davis(dot)com> wrote:
> On Tue, 2012-03-20 at 22:21 +0100, Henk Bronk wrote:
> > actually rsync works fine on file level and is good for manual syncing.
> > it check really the files with the stat command, so a bit change will trigger the copy
> > in practice you need to keep an eye on compleetness of the rsync action.
>
> Rsync still needs to examine the entire file. It has no information to
> know that the file is the same on master and slave.
>
> We could try to give it the appropriate information on which it can make
> that assumption -- e.g. keep the timestamps the same so that rsync
> assumes the contents are the same. But that seems fragile and I don't
> see a good way of doing it, anyway.
>
> We need a way to take a base backup of just the catalogs, essentially,
> and leave the user data intact. Probably quite a few details to sort out
> though.
>
> Regards,
> Jeff Davis
>
>
> rsync can take file that contains a list of files to sync. Is there a convenient way to generate such a control file?
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Geek Matter 2012-03-21 08:13:42 Re: POSTGRESQL Newbie
Previous Message Vincent Veyron 2012-03-21 07:48:57 Re: POSTGRESQL Newbie