Locking Tables & Backup Inquiry

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

I'm wanted to find out why is it recommended or even an option to lock
tables during a backup of a database? I've never experimented with
database backups so I'm only guessing it locks / freezes the data so
no changes can be made while the backup is in process, correct? Just
curious and wasn't able to find an answer online.

My next question is more complex but more of a recommendations. I'm
looking to see how do you guys backup your databases? Do you simply
cron 'pg_dump' command line or do you have a script that gets called
in cron using 'pg_dump' / 'pg_dumpall'? Just looking for ideas /
recommendations for a simple / quick way to back up 5 small databases
on my server.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ray Stell 2011-12-14 18:03:55 Cisco Systems fail
Previous Message Andreas 2011-12-14 17:16:23 Re: Philosophical question