]> begriffs open source - ai-pg/blob - full-docs/txt/backup.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / backup.txt
1
2 Chapter 25. Backup and Restore
3
4    Table of Contents
5
6    25.1. SQL Dump
7
8         25.1.1. Restoring the Dump
9         25.1.2. Using pg_dumpall
10         25.1.3. Handling Large Databases
11
12    25.2. File System Level Backup
13    25.3. Continuous Archiving and Point-in-Time Recovery (PITR)
14
15         25.3.1. Setting Up WAL Archiving
16         25.3.2. Making a Base Backup
17         25.3.3. Making an Incremental Backup
18         25.3.4. Making a Base Backup Using the Low Level API
19         25.3.5. Recovering Using a Continuous Archive Backup
20         25.3.6. Timelines
21         25.3.7. Tips and Examples
22         25.3.8. Caveats
23
24    As with everything that contains valuable data, PostgreSQL databases
25    should be backed up regularly. While the procedure is essentially
26    simple, it is important to have a clear understanding of the underlying
27    techniques and assumptions.
28
29    There are three fundamentally different approaches to backing up
30    PostgreSQL data:
31      * SQL dump
32      * File system level backup
33      * Continuous archiving
34
35    Each has its own strengths and weaknesses; each is discussed in turn in
36    the following sections.