Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8Htj-0004Xv-VS for pgsql-general@arkaria.postgresql.org; Tue, 17 Apr 2018 04:07:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f8Hti-0004vc-G9 for pgsql-general@arkaria.postgresql.org; Tue, 17 Apr 2018 04:07:14 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8Hth-0004vS-BF for pgsql-general@lists.postgresql.org; Tue, 17 Apr 2018 04:07:14 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8Hta-0005ss-1P for pgsql-general@postgresql.org; Tue, 17 Apr 2018 04:07:12 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id EA8F621B53; Tue, 17 Apr 2018 00:07:04 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 17 Apr 2018 00:07:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=nrhgPpV11wLa1eSPRpwx360LeZNGQ JAMh2GWsj/5wfI=; b=oGAffId/d/j/1Rh4G8kv+XHd68mel3A9nPWhTcjIi889q yHDSgJHfs0C46sRD1RNFoFFeTC2kjt7oB5cZNm+LgcgYbpMwXlLC/epLBmco4/bV +LZ+seQ2LZYH8KsC7WWtHSA/TSy/M3SbDOD1Y0qqw5HkeXtCSWHDp8QjctQm4EbD zOcCG+p41S6nfjjfy3qq1fxSAvl4jkDY6on1syrVVspkNqCI30GlmqTgFKou3G5K lKibNc2UoC8veWivqt/Qiv3XofyQEpZfE/WjNGE0VeFfpdSjvGpeVmNImxBY4pLs GkKrLPDikuQyCLL9MrR04EJvKCcmP558kh7ojMxzg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=nrhgPp V11wLa1eSPRpwx360LeZNGQJAMh2GWsj/5wfI=; b=Pn4YeHGzpLXH3FDvEE1nlP V69SC2RLbikFYnWERoxoO/YUHytUBDfbNjUpcpjSWh2/Y6FYyg06jMK8s25kzdKY H3mzJXEtXRPqpZ5uY3AdfVBX7/wC6mL6G1I+UqUYA3pZs1wDBffDhxZzsEUd++bN glHiGUK4obXKDmmhOq/9ddGCzmQjLifqKg0k9Z8RmxVVAopygJ6+7hV6tBAyHzIv 3Y8/yDJ0Ef/dmvzWh4kI0RWdnlZyQxlzJMD4Tn1LFQDWcYlsYz8h84N62y+IfC+f YmqwIZEAWKnqGAXKzSnfKiTVD9cAbwbzdD7EzUBoUZX2G3+wnkb+Mea9bQ+/EAJg == X-ME-Sender: Received: from [192.168.1.2] (71-35-123-124.tukw.qwest.net [71.35.123.124]) by mail.messagingengine.com (Postfix) with ESMTPA id 210A9102E3; Tue, 17 Apr 2018 00:07:04 -0400 (EDT) Subject: Re: pg_dump to a remote server To: Ron , pgsql-general References: <53c302b2-a634-96c2-b1f5-328437eb37fd@gmail.com> <1fa1fafe-d814-066e-385e-77a2766c050d@aklaver.com> From: Adrian Klaver Message-ID: <375dee68-48ba-346b-76c3-8dff20309ab7@aklaver.com> Date: Mon, 16 Apr 2018 21:07:03 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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%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. -- Adrian Klaver adrian.klaver@aklaver.com