Re: Locking Tables & Backup Inquiry

From: Carlos Mennens <carlos(dot)mennens(at)gmail(dot)com>
To: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Locking Tables & Backup Inquiry
Date: 2011-12-14 18:26:12
Message-ID: CAAQLLO4W92iDD4=FXxxWhOMzQjaa86MMJuC=VBZJCyazv_bucQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Dec 14, 2011 at 1:15 PM, Andy Colson <andy(at)squeakycode(dot)net> wrote:
> Yep, you simply cron a pg_dump.  (dumpall if you want users/roles and all
> databases).  No locking needed.

So how would one put this in cron if I wanted to run this everyday?

0 * * * * /usr/bin/pg_dumpall > pg_dumpall.$DATE.sql

Will that work above assuming I wanted to run this every day at that
specific time? I'm just guessing since I've never created a Crontab or
messed with PG backups.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andy Colson 2011-12-14 18:38:19 Re: Locking Tables & Backup Inquiry
Previous Message Andy Colson 2011-12-14 18:15:20 Re: Locking Tables & Backup Inquiry