Re: getting pg_basebackup to use remote destination

From: Francisco Olarte <folarte(at)peoplecall(dot)com>
To: Chuck Martin <clmartin(at)theombudsman(dot)com>
Cc: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: getting pg_basebackup to use remote destination
Date: 2018-12-30 19:27:11
Message-ID: CA+bJJbzo9rm-MPpVGDgeNAu83MO0wjfM7k-GrvvQo2ye2t0SdA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Dec 30, 2018 at 5:52 PM Chuck Martin <clmartin(at)theombudsman(dot)com> wrote:
......
> I’ve started pg_basebackup from the standby. It failed once due to an ssh error, but I reloaded sshd and started again. May take a while. It about 750gb.

IIRC pg_base backup uses the postgres connection, so I supose ssh
failed on the terminal session you were using to run it. If this is
your problem you could ( should, IMO ) install something like tmux /
screen which is really a life saver for this cases. ( I'll recommend
tmux if you've never used one of them, they are terminal multiplexers
which allow you to open a session, runs some terminal sessions under
it and connect/disconnect/reconnect to them, and specially when your
ssh barfs they just disconnect the session, so you just ssh again and
reconnect. They are great when you have long running termina commands
like pg_basebackup / pg_dump, I routinely use them to launch a long
running process and just reconnect periodically to check on it ).

Francisco Olarte.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Janes 2018-12-30 20:27:46 Re: getting pg_basebackup to use remote destination
Previous Message Adrian Klaver 2018-12-30 16:56:13 Re: In which session context is a trigger run?