From: | Chris Ruprecht <chris(at)ruprecht(dot)org> |
---|---|
To: | pgsql-admin(at)postgresql(dot)org |
Subject: | How to do fast, reliable backups? |
Date: | 2004-03-05 21:37:42 |
Message-ID: | 200403051637.42457.chris@ruprecht.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Hi all,
I am wondering how you guys back up your databases. Say, I have a 20 GB
database, data and indexes. If I run pg_dump on this, it backs up the schema
and the data. When I have to restore this, I whould have to run this through
psql which would then re-build the indexes after it has inserted the records.
That's not really a feasable option as it takes too long.
If I back up the pgdata directory, I will get inconsistent data, as somebody
might update data in 2 tables while my backup is running, one change in a
table I have already backed up, one in a table I have not. The solution would
be to shut the database server down, do the backup and then start everything
back up. But that's not really an option in a 24/7 environment.
What I'd like to see is a transaction aware backup which backs up indexes as
well as data.
Any ideas?
Best regards,
Chris
From | Date | Subject | |
---|---|---|---|
Next Message | Silvana Di Martino | 2004-03-05 21:38:41 | Re: Database Encryption (now required by law in Italy) |
Previous Message | Silvana Di Martino | 2004-03-05 21:32:50 | Re: Database Encryption (now required by law in Italy) |