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 1f8Fel-0005Rg-V1 for pgsql-general@arkaria.postgresql.org; Tue, 17 Apr 2018 01:43:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f8Fek-0004Tz-Vf for pgsql-general@arkaria.postgresql.org; Tue, 17 Apr 2018 01:43:38 +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 1f8Fek-0004Tp-KH for pgsql-general@lists.postgresql.org; Tue, 17 Apr 2018 01:43:38 +0000 Received: from mail-oi0-x22e.google.com ([2607:f8b0:4003:c06::22e]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f8Fei-0002bn-Cp for pgsql-general@postgresql.org; Tue, 17 Apr 2018 01:43:37 +0000 Received: by mail-oi0-x22e.google.com with SMTP id p62-v6so135852oie.10 for ; Mon, 16 Apr 2018 18:43:36 -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=Fz0bOLHa38nrti4gvLsEEU9NsCjJciOY9egfczrFFHw=; b=NOHQ1r9KIdk2UNa35HaXdK3P+R7rCiQo15KhI45DzRhnXyYpjquu/ckSht5kZfjf9N WcPWxW9Hyu/+SdKF/tmfE+5bi0vZLR0eVKxcZHHGgTcx/idtBUIz1F2xkTUsHR6NGbAl RQYOF1lI0ccQTvpRO8BHjnh1vw4Cuml3lz3bwmUNqyc7/X92hSXCtnZJj/Y+g4sOVIsl JTNbjpxhgvl1BhCK7OCpQU1ea249vqxwHtvhm8P5yzJew8zMMQY6s/fQMIucKWvXk/TG WmGsDKcUmkT1ktsniaUVc7xX5oZYsXrwtLdwCRMn6pgtZ0wdfyb3RYwwWAv5HMCxe7VA S7ag== 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=Fz0bOLHa38nrti4gvLsEEU9NsCjJciOY9egfczrFFHw=; b=SPD6UyLLyLSpC0smokpCvzXIqEImVbVOmwJYHtNGVISf/bRPgcNopWkixardsFmRVv 21QGfEvA0AdSgonjTeJTZhbBPSEhddAi/lEAu3TtUp14bkZZ4aFwRgBt2ot14g97mNdZ VdIoJikIf3T6aDAWOsIycI8QFWNtZDMHvcto4DQLh4M4V6doGPG9+kSuHJ38FGYSM7Ja YHZbQR2MzK3/ppiect/4/eY0KC3F2D96U5RbQhQ+tfea1JA8aHrYf7yWUwniT0Bxc+NO gRkLG2xibXspqM7bLHZgO3Mu3f097PZ9QBr4dL1IinVmkb7l1E11cUz+qaB95UeGoLaE pI4A== X-Gm-Message-State: ALQs6tB9thNS9emOLJAtpv2ALSOeluMjXT3CiSgjrSu0h/ydzMGLaahx 87kb415xmCYat5+9bTKdzDI20g== X-Google-Smtp-Source: AIpwx49kM3OLBZSJ4aJ11iNzEKyZmaxxEML6KjYKLMUS9hgdqGUP9V6pmtxdUdpNhno3eSCEaW4z8Q== X-Received: by 2002:aca:59c1:: with SMTP id n184-v6mr90253oib.158.1523929415481; Mon, 16 Apr 2018 18:43:35 -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 p8-v6sm2965837oti.56.2018.04.16.18.43.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Apr 2018 18:43:34 -0700 (PDT) Subject: Re: pg_dump to a remote server To: Adrian Klaver , pgsql-general References: <53c302b2-a634-96c2-b1f5-328437eb37fd@gmail.com> <1fa1fafe-d814-066e-385e-77a2766c050d@aklaver.com> From: Ron Message-ID: Date: Mon, 16 Apr 2018 20:43:34 -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: <1fa1fafe-d814-066e-385e-77a2766c050d@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 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". -- Angular momentum makes the world go 'round.