From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Anthony DeBarros <adebarros@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Backup PostgreSQL from RDS straight to S3
Date: Wed, 18 Sep 2019 12:12:26 -0700
Message-ID: <b2986a70-7247-03d9-125f-6562b7ac2d16@aklaver.com> (raw)
In-Reply-To: <CAAQFaF+03dcRvpy50UB+eAuwAdQ9YOyW6yErGKqDgt84K07eOQ@mail.gmail.com>
References: <CAAQFaFLH7WGZxBmJgkfjZy9LEQxN5L3zLnY1+KmE3AM03SHNkA@mail.gmail.com>
<66ea419a-2584-f3b7-d306-9df40beb267d@aklaver.com>
<CAAQFaF+03dcRvpy50UB+eAuwAdQ9YOyW6yErGKqDgt84K07eOQ@mail.gmail.com>
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 <adrian.klaver@aklaver.com
> <mailto:adrian.klaver@aklaver.com>> 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 <mailto:adrian.klaver@aklaver.com>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, adebarros@gmail.com
Subject: Re: Backup PostgreSQL from RDS straight to S3
In-Reply-To: <b2986a70-7247-03d9-125f-6562b7ac2d16@aklaver.com>
References: <CAAQFaFLH7WGZxBmJgkfjZy9LEQxN5L3zLnY1+KmE3AM03SHNkA@mail.gmail.com> <66ea419a-2584-f3b7-d306-9df40beb267d@aklaver.com> <CAAQFaF+03dcRvpy50UB+eAuwAdQ9YOyW6yErGKqDgt84K07eOQ@mail.gmail.com> <b2986a70-7247-03d9-125f-6562b7ac2d16@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox