Re: Locking Tables & Backup Inquiry - Mailing list pgsql-general

From Carlos Mennens
Subject Re: Locking Tables & Backup Inquiry
Date
Msg-id CAAQLLO4W92iDD4=FXxxWhOMzQjaa86MMJuC=VBZJCyazv_bucQ@mail.gmail.com
Whole thread Raw
In response to Re: Locking Tables & Backup Inquiry  (Andy Colson <andy@squeakycode.net>)
Responses Re: Locking Tables & Backup Inquiry  (Andy Colson <andy@squeakycode.net>)
List pgsql-general
On Wed, Dec 14, 2011 at 1:15 PM, Andy Colson <andy@squeakycode.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.

pgsql-general by date:

Previous
From: Andy Colson
Date:
Subject: Re: Locking Tables & Backup Inquiry
Next
From: Andy Colson
Date:
Subject: Re: Locking Tables & Backup Inquiry