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 1f8EK2-0007c9-74 for pgsql-general@arkaria.postgresql.org; Tue, 17 Apr 2018 00:18:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f8EK0-0005jt-TX for pgsql-general@arkaria.postgresql.org; Tue, 17 Apr 2018 00:18:08 +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 1f8EJz-0005jj-JI for pgsql-general@lists.postgresql.org; Tue, 17 Apr 2018 00:18:08 +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 1f8EJw-0000hO-Km for pgsql-general@postgresql.org; Tue, 17 Apr 2018 00:18:06 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id A51FC21D72; Mon, 16 Apr 2018 20:18:03 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 16 Apr 2018 20:18:03 -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=CQZj9J577zQ20pcsz0BKmHCNR71GD GU2WoYTjM1edgw=; b=OMc7ziYoogXKtMomrcxXkpK/bvRkoUihhDjJ4NJCYlqD+ BFLkbbgO1nPXXez1MQOa804u2z4oXdX8hd0inOUFxRDWQOGvV2rMcxJNu4Ql2va8 wgUOlYL6rR+a50Fx+D8PcjsBg328IpABwgc1oHwG5KUxmUHVjuW0Dmt/A1VtbHUs Z/GASyCh5erjx++U2maeWGmlRllrTUSpDgUMeiHkcVyLmi82H8zXtgXSL5Si+ZqV Tw1MGV+i3HK7DT+mH5RocpvHl6lPPaj4EyiQtadQ4lCRBMp8jO0rhuDvVNa54gnD dzY48nRsJ0gaqajHU7xjahVl6RZA2HJ1UH5IYZ7sQ== 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=CQZj9J 577zQ20pcsz0BKmHCNR71GDGU2WoYTjM1edgw=; b=MOkrvLfmZQFPk6fMiF+vcz sPF0v93MJ6WdsDunL09WIT8ypO+/7AhWRufqfsH8i9F8S6tOgOqpTCSM/NT7nMNt zfkezU+GQ6c/7xUB2QBGbXRt3eOHJimo3swpowZQ2cUYFhbKNLByppVfe8mTmFDj kLwSUacAoz/9BCV5yk4y+2dQ33BMlTUbzSxn2+XBtLULkv6w7RTR7BgGmOHlwPfl XfcwKiatGZ/M0KS32DSTfW1avtmwHJnnthNyQ6YfuTXlKCoDzMW8vosIKVeWLrN0 jRwl/845PR2QyeZJACB8BgCDgCelbndThNpfCagXaGvSdirj28X8rTHR/p/QSBGQ == 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 205A21026B; Mon, 16 Apr 2018 20:18:03 -0400 (EDT) Subject: Re: pg_dump to a remote server To: Ron , pgsql-general References: <53c302b2-a634-96c2-b1f5-328437eb37fd@gmail.com> From: Adrian Klaver Message-ID: <1fa1fafe-d814-066e-385e-77a2766c050d@aklaver.com> Date: Mon, 16 Apr 2018 17:18:02 -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: <53c302b2-a634-96c2-b1f5-328437eb37fd@gmail.com> 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 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' > > Or would it be better to install both 8.4 and 9.6 on the new server (can > I even install 8.4 on RHEL 6.9?), rsync the live database across and > then set up log shipping, and when it's time to cut over, do an in-place > pg_upgrade? > > (Because this is a batch system, we can apply the data input files to > bring the new database up to "equality" with the 8.4 production system.) > > Thanks > -- Adrian Klaver adrian.klaver@aklaver.com