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 1f8L9E-0007R7-Lg for pgsql-general@arkaria.postgresql.org; Tue, 17 Apr 2018 07:35:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f8L9D-0002XU-B8 for pgsql-general@arkaria.postgresql.org; Tue, 17 Apr 2018 07:35:27 +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 1f8L9C-0002XK-Js for pgsql-general@lists.postgresql.org; Tue, 17 Apr 2018 07:35:26 +0000 Received: from mail-ot0-x229.google.com ([2607:f8b0:4003:c0f::229]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f8L99-00023l-O2 for pgsql-general@postgresql.org; Tue, 17 Apr 2018 07:35:25 +0000 Received: by mail-ot0-x229.google.com with SMTP id h55-v6so20342324ote.9 for ; Tue, 17 Apr 2018 00:35:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=EW/OttsahQ+p8X0+VXqNjii3dqYie+fIo3cm+vFNs1o=; b=T2Q0ciPy60qVX8WPvvbUvVPafKUPV1MKaOwtbhTQRv81xMdOIOZCI7Smb6k1oku5Rc 1yAHIo8z7cKbZg9JaE7nspQBCEkYF+OCn1mMo25oBhN/fHU0sem+y8XefGDUoog7CqZz wv7NKldMZhZYbDwSkk1EJ8oZcndqE4grXICCsYtLELT3/bfloBUz2vuppQadoZ+OBJ1p tZZEsOwruJWnGIwZgZXF6ntRnywxrZsmfb1zfrG0VAsx3k/IeFA2X3bDhDSAeeCf4ZDX 33NkR8BuypWB9MkJ3fIbakNXWbVA/GhEmmN8cbbwr3aEsMD3in3plqD2SnXZhInQlEQl O4Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=EW/OttsahQ+p8X0+VXqNjii3dqYie+fIo3cm+vFNs1o=; b=eBbD7wOGDPWZ3vErQsapTXJ35QjVXtKI/pltRcRK3WlEtaal9gnyEi9fj5jfrmoMfg XVe2837HJzIR/13JNx/03bjh/ZqaEI7XGUOm8JZVuPVKcQJcAtiVOkuz5Yr3Z31wQz+N 1InAuLV1snbZf0L+DXO8WZ/PX9g+qdkbFfUsmxaz2YSeUWWUy1J1Rs+N3eGzpk+beTt0 WvZuR+xESVmqyy/IGUWteCBANfPBLXeCmHFgws4rJxxkYak26XMqxANxyFA9TWVCMi4S KbJ8MRtyoXCAHDvHfV2yMkGI111tnaK1kV3wcUOz1toEpki+ZU28U33nWUBp4ebaU3Jh RHFw== X-Gm-Message-State: ALQs6tDW/qUGT2uGE9anumH1uxLJyHHAn/YGAmxu/8bL6YGv/0kwtXS8 qyqxDwISIWp4HXn+zHTv6zmE6A== X-Google-Smtp-Source: AIpwx4/bOCZ4++Sv5+BXWtmlLdWUsijb72kvc0jzg9T0FBbwo8InXJGoBmUW3/waAIpmP7Bd5m41BA== X-Received: by 2002:a9d:2b19:: with SMTP id o25-v6mr606159otb.57.1523950522619; Tue, 17 Apr 2018 00:35:22 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id 76-v6sm8953049oii.25.2018.04.17.00.35.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Apr 2018 00:35:21 -0700 (PDT) Subject: Re: pg_dump to a remote server To: pgsql-general References: <53c302b2-a634-96c2-b1f5-328437eb37fd@gmail.com> <1fa1fafe-d814-066e-385e-77a2766c050d@aklaver.com> <375dee68-48ba-346b-76c3-8dff20309ab7@aklaver.com> From: Ron Message-ID: Date: Tue, 17 Apr 2018 02:35:21 -0500 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: <375dee68-48ba-346b-76c3-8dff20309ab7@aklaver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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%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.