Re: Backups

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Nilesh Govindarajan <lists(at)itech7(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Backups
Date: 2010-02-20 17:53:37
Message-ID: dcc563d11002200953s3857f5e7m39162dfdc5d187a3@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Sat, Feb 20, 2010 at 10:11 AM, Nilesh Govindarajan <lists(at)itech7(dot)com> wrote:
> I want a script to backup all databases table by table in different .sql
> files.

Why? It may be that pg_dump / pg_restore already provide the
functionality you are looking for.

> How to do this ?

pg_dump -t tablename dbname

rinse repeat

> Also since it is a script, there has to be some role having read access to
> all tables on all databases. How to grant that ?

Can they just be a superuser? Or can you grant them the role that has
ownership of the tables?

In response to

  • Backups at 2010-02-20 17:11:28 from Nilesh Govindarajan

Responses

  • Re: Backups at 2010-02-21 01:57:28 from Nilesh Govindarajan

Browse pgsql-admin by date

  From Date Subject
Next Message Glen Brown 2010-02-20 20:41:28 Re: pg_dump/restore problems
Previous Message Kevin Grittner 2010-02-20 17:52:58 Re: pg_dump/restore problems