Re: Backup Database Question

From: Adam Cornett <adam(dot)cornett(at)gmail(dot)com>
To: Carlos Mennens <carlos(dot)mennens(at)gmail(dot)com>
Cc: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Backup Database Question
Date: 2011-10-06 16:20:23
Message-ID: CAB5sPxaiGxo0ARJmArM8gFmme4WG_5c=Wk7vUpzV1u22fyrpRw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have a little bash script that is called by cron to make a backup of the
db, as well as being able to pull a copy of our production db to my local
machine for development.

It requires that you have a .pgpass file setup to connect to your database
without entering a password.

On Thu, Oct 6, 2011 at 11:26 AM, Carlos Mennens <carlos(dot)mennens(at)gmail(dot)com>wrote:

> On Thu, Oct 6, 2011 at 11:19 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> > Use pg_dumpall. The extra time to dump the user and database
> > definitions is unlikely to be noticeable, and if push comes to shove
> > you'll be glad you had them.
>
> Yes I agree but I didn't know enough about PostgreSQL to make that
> determination. Seems very logical however. Does anyone know of a
> PostgreSQL backup script floating around the Internet for Linux
> systems? I found a great one for MySQL but sadly that doesn't do me
> any good.
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

--
Adam Cornett
adam(dot)cornett(at)gmail(dot)com
(678) 296-1150

Attachment Content-Type Size
pull_production.sh application/x-sh 1.1 KB

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sean Laurent 2011-10-06 17:21:52 Postgres 9.01, Amazon EC2/EBS, XFS, JDBC and lost connections
Previous Message Merlin Moncure 2011-10-06 16:09:34 Re: plpgsql: type of array cells