From: | Ron <ronljohnsonjr(at)gmail(dot)com> |
---|---|
To: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: pg_dump to a remote server |
Date: | 2018-04-17 07:35:21 |
Message-ID: | ef885c50-538f-c05a-a0f5-950e981cde00@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
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(at)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%40mail.gmail.com
>
>
> "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.
From | Date | Subject | |
---|---|---|---|
Next Message | Laurenz Albe | 2018-04-17 08:19:05 | Re: To prefer sorts or filters in postgres, that is the question.... |
Previous Message | Gao Jack | 2018-04-17 07:08:35 | RE: Re:Postgresql with JDK |