pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: pg_dump to a remote server
Date: Tue, 17 Apr 2018 02:35:21 -0500
Message-ID: <ef885c50-538f-c05a-a0f5-950e981cde00@gmail.com> (raw)
In-Reply-To: <375dee68-48ba-346b-76c3-8dff20309ab7@aklaver.com>
References: <53c302b2-a634-96c2-b1f5-328437eb37fd@gmail.com>
	<1fa1fafe-d814-066e-385e-77a2766c050d@aklaver.com>
	<c105053c-372c-b258-5a27-ca952e7f063b@gmail.com>
	<375dee68-48ba-346b-76c3-8dff20309ab7@aklaver.com>

On 04/16/2018 11:07 PM, Adrian Klaver wrote:
> On 04/16/2018 06:43 PM, Ron wrote:
>>
>>
>> On 04/16/2018 07:18 PM, Adrian Klaver wrote:
>>> On 04/16/2018 04:58 PM, Ron wrote:
>>>> We're upgrading from v8.4 to 9.6 on a new VM in a different DC.  The 
>>>> dump file will be more than 1TB, and there's not enough disk space on 
>>>> the current system for the dump file.
>>>>
>>>> Thus, how can I send the pg_dump file directly to the new server while 
>>>> the pg_dump command is running?  NFS is one method, but are there 
>>>> others (netcat, rsync)?  Since it's within the same company, encryption 
>>>> is not required.
>>>
>>> Maybe?:
>>>
>>> pg_dump -d test -U postgres -Fc | ssh aklaver@arkansas 'cat > test_cat.out'
>>
>> That looks promising.  I could then "pg_restore -jX".
>
> More promising would be the suggestion from Michael Nolan:
>
> https://www.postgresql.org/message-id/CAOzAqu%2BVpOfzBHwcqptSzm3PkeZAjkqqc0XqB%2BA-jBNioU6x%2Bg%40ma... 
>
>
> "Can you run pg_dump on the new server, connecting remotely to the current 
> one?"
>
> It eliminates two programs(ssh and cat) and a pipe.

Is that supported?

-- 
Angular momentum makes the world go 'round.




view thread (12+ messages)  latest in thread

Message-ID: <ef885c50-538f-c05a-a0f5-950e981cde00@gmail.com>
Permalink:  ../ef885c50-538f-c05a-a0f5-950e981cde00@gmail.com/
Also on:    postgresql.org/message-id/ef885c50-538f-c05a-a0f5-950e981cde00@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: pg_dump to a remote server
  In-Reply-To: <ef885c50-538f-c05a-a0f5-950e981cde00@gmail.com>
  References: <53c302b2-a634-96c2-b1f5-328437eb37fd@gmail.com> <1fa1fafe-d814-066e-385e-77a2766c050d@aklaver.com> <c105053c-372c-b258-5a27-ca952e7f063b@gmail.com> <375dee68-48ba-346b-76c3-8dff20309ab7@aklaver.com> <ef885c50-538f-c05a-a0f5-950e981cde00@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox