Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iAfNT-0006LA-IL for pgsql-general@arkaria.postgresql.org; Wed, 18 Sep 2019 19:12:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iAfNS-000519-3V for pgsql-general@arkaria.postgresql.org; Wed, 18 Sep 2019 19:12:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iAfNQ-00050l-Gq for pgsql-general@lists.postgresql.org; Wed, 18 Sep 2019 19:12:33 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iAfNN-00059S-PI for pgsql-general@postgresql.org; Wed, 18 Sep 2019 19:12:31 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 633B9524; Wed, 18 Sep 2019 15:12:28 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 18 Sep 2019 15:12:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=K 2IQr6D7kDfUtbEmZjop+Y05yTDO2TCB++O2/7EOLX0=; b=khNatK695C+XXbqQV q9ZHoUY6WjKSDtphVUR68yuBzYEe9dKvjyL2JV6JRjHV0hlXq8Ch51zcgYy5JnH0 Y+EOZ7JOBXq4J5740WT4mNSkmR4zbksiNtn5f8bLDKsUYijt+GhwuDWfpSCDO+n8 nfSagw5uS96hxVz/qRBOq7/ExXRqJxnHdWXBIO+Jhp7h8wqCO6vY5iGl0v0OrOrB 4Z2Lrd7ArBTMUXOYJcWrIZdhhiTlmJ1O1DQI1L2WCWOoxKGrlxXwUnI3l+O89N+3 wMCROS4BDNeaz/gtuZvyhEqiKCLl3AEx4z/Wc3mWykOAYxa2nfCIcCZ8wMNOMEyV BnotA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=K2IQr6D7kDfUtbEmZjop+Y05yTDO2TCB++O2/7EOL X0=; b=z2KOurMXq293nNZDWaqwuAke4XzPCd71hmcoq2rJ9cehB8zzUuU/3mf40 mJubErhd3jnxJVj6+y1XPb2dV+tmoMvJdv6ZkFcXiQBU0ihVUVCHMXU9fY2Qx4jH RUDLXrdyjz/sIiYqC1zBnyDleaIMWtFowMGGThJaJYsGeoDvpqZaXvoMO2XcLf1C KusGCyj2Nrfxg41tBIObhX5IU0udlTpWFVy4VubJ7SYJfV7M9TqcPNHPxAsID/LO 5iYPPMYWaYW9SThp0zAqqxyoPFsunvsp+85jgFrvdCLbgH89LSeoocgGZb2B/t5e 2vwzlcQe9BK2GJ9fDQ3nO3UhXwKyg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudekgddufeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucffohhmrghinhepshhtrggtkhgvgigthhgrnhhgvgdrtghomhdprhihrghnshht uhhtohhrihgrlhhsrdhnvghtnecukfhppeehtddrudeljedrkedtrddvnecurfgrrhgrmh epmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm necuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from ranger.suse (50-197-80-2-static.hfc.comcastbusiness.net [50.197.80.2]) by mail.messagingengine.com (Postfix) with ESMTPA id 66306D60057; Wed, 18 Sep 2019 15:12:27 -0400 (EDT) Subject: Re: Backup PostgreSQL from RDS straight to S3 To: Anthony DeBarros Cc: pgsql-general@postgresql.org References: <66ea419a-2584-f3b7-d306-9df40beb267d@aklaver.com> From: Adrian Klaver Message-ID: Date: Wed, 18 Sep 2019 12:12:26 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 9/18/19 12:04 PM, Anthony DeBarros wrote: > Great, thanks. The question I have, which at first glance isn't covered > there, is whether those instructions will at any point bring the dump > file onto the EC2 box, either in memory or temp file storage, on its way > to S3? I don't know enough about how Linux handles data piped from one > command to the next to know whether that's standard OP or not. Good intoduction: https://ryanstutorials.net/linuxtutorial/piping.php The piping section is down the page Basically | connects the output of one command directly to input of another. Run a test case in one terminal and top in another to see the effect om memory. > > On Wed, Sep 18, 2019 at 2:36 PM Adrian Klaver > wrote: > > On 9/18/19 11:32 AM, Anthony DeBarros wrote: > > Hi, folks -- I'm a longtime PostgreSQL user but a bit of a noob > when it > > comes to maintenance. Question: > > > > I'm running PostgreSQL 11 on Amazon RDS. Also have an EC2 box > running > > Ubuntu that runs some Python scripts that collect data into > PostgreSQL. > > > > We're doing the standard RDS backups. However, I'd also like to do a > > nightly pg_dump and store that file on S3. Is there a way to go > straight > > from RDS to S3 without having to download the dump file onto the > EC2 box > > at any point? I want to avoid a scenario where the DB file fills > the EC2 > > box's disk. > > ?: > https://dba.stackexchange.com/questions/221454/best-way-to-pg-dump-postgresql-on-rds-to-s3 > > > > > Thanks for any and all advice! > > > > Anthony > > > > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > -- Adrian Klaver adrian.klaver@aklaver.com