Search Postgresql Archives

Re: Pgbasebackup help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Maybe I'm just being picky here, but...

On 12/3/15 3:04 PM, Andreas Kretschmer wrote:
If you invoke pg_start_backup()  before the copy, and pg_stop_backup()
>after the copy, then a file system copy is consistent.

The filesystem copy is not consistent, but because of how pg_start/stop_backup works it doesn't matter that it's inconsistent. Postgres uses the archived WAL files to recover from the inconsistency.

file system snapshot PLUS transaction logs => consistent backup.

A real filesystem snapshot would always be consistent, and as long as it included all Postgres files that's all you need. Start Postgres against that snapshot and it will think the database had crashed and perform a normal recovery.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com


--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux