Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
183 lines (183 loc) · 22.2 KB
/
Copy pathindex.html
File metadata and controls
183 lines (183 loc) · 22.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>pgBackRest - Reliable PostgreSQL Backup & Restore
</title><meta http-equiv="Content-Type" content="text/html;charset=utf-8"></meta>
<meta name="viewport" content="width=device-width, initial-scale=1"></meta>
<meta property="og:site_name" content="pgBackRest - Reliable PostgreSQL Backup & Restore"></meta>
<meta property="og:title" content="pgBackRest - Reliable PostgreSQL Backup & Restore"></meta>
<meta property="og:type" content="website"></meta>
<link rel="icon" href="logo.svg" type="image/svg+xml"></link>
<meta property="og:image" content="https://pgbackrest.org/card.png"></meta>
<meta property="og:image:type" content="image/png"></meta>
<meta property="og:image:width" content="1200"></meta>
<meta property="og:image:height" content="630"></meta>
<meta property="og:image:alt" content="pgBackRest - Reliable PostgreSQL Backup & Restore"></meta>
<meta name="twitter:card" content="summary_large_image"></meta>
<meta name="description" content="pgBackRest is a reliable backup and restore solution for PostgreSQL that seamlessly scales up to the largest databases and workloads."></meta>
<meta property="og:description" content="pgBackRest is a reliable backup and restore solution for PostgreSQL that seamlessly scales up to the largest databases and workloads."></meta>
<link rel="stylesheet" href="default.css?v=27b4dc4a" type="text/css"></link>
<script src="default.js?v=c642056a" defer="defer"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-VKCRNV73H1"></script>
<script>window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}gtag('js',new Date());gtag('config','G-VKCRNV73H1');</script>
</head><body><div class="page-header"><div class="page-header-logo"><span class="page-header-logo-name">
pgBackRest
</span></div><div class="page-header-title">
pgBackRest
</div><div class="page-header-subtitle">
Reliable PostgreSQL Backup & Restore
</div></div><div class="page-menu"><div class="menu-body"><div class="menu"><span class="menu-current">
Home
</span></div><div class="menu"><a class="menu-link" href="user-guide-index.html">
User Guides
</a></div><div class="menu"><a class="menu-link" href="release.html">
Releases
</a></div><div class="menu"><a class="menu-link" href="configuration.html">
Configuration
</a></div><div class="menu"><a class="menu-link" href="command.html">
Commands
</a></div><div class="menu"><a class="menu-link" href="news.html">
News
</a></div><div class="menu"><a class="menu-link" href="faq.html">
FAQ
</a></div><div class="menu"><a class="menu-link" href="metric.html">
Metrics
</a></div></div></div><div class="page-body"><div class="section1 section-aside"><a id="sponsors"></a><div class="section1-header"><div class="section1-title">
Sponsors
</div></div><div class="section-body"><div class="section-body-text">
<span class="backrest">pgBackRest</span> would not exist without sponsorship: new features, bug fixes, contribution reviews, community support, and maintenance all take considerable time. Please consider a <a href="https://github.com/sponsors/dwsteele">sponsorship</a> if you use <span class="backrest">pgBackRest</span> in your enterprise.
</div><div class="sponsor-list"><div class="sponsor"><a href="https://aws.amazon.com"><img class="sponsor-img sponsor-img-light" src="sponsor/aws-light.svg" alt="AWS" width="80"></img><img class="sponsor-img sponsor-img-dark" src="sponsor/aws-dark.svg" alt="AWS" width="80"></img></a></div><div class="sponsor"><a href="https://supabase.com"><img class="sponsor-img sponsor-img-light" src="sponsor/supabase-light.svg" alt="Supabase" width="200"></img><img class="sponsor-img sponsor-img-dark" src="sponsor/supabase-dark.svg" alt="Supabase" width="200"></img></a></div><div class="sponsor"><a href="https://pgedge.com"><img class="sponsor-img sponsor-img-light" src="sponsor/pgedge-light.svg" alt="pgEdge" width="155"></img><img class="sponsor-img sponsor-img-dark" src="sponsor/pgedge-dark.svg" alt="pgEdge" width="155"></img></a></div><div class="sponsor"><a href="https://tigerdata.com"><img class="sponsor-img sponsor-img-light" src="sponsor/tigerdata-light.svg" alt="Tiger Data" width="180"></img><img class="sponsor-img sponsor-img-dark" src="sponsor/tigerdata-dark.svg" alt="Tiger Data" width="180"></img></a></div><div class="sponsor"><a href="https://percona.com"><img class="sponsor-img sponsor-img-light" src="sponsor/percona-light.svg" alt="Percona" width="185"></img><img class="sponsor-img sponsor-img-dark" src="sponsor/percona-dark.svg" alt="Percona" width="185"></img></a></div><div class="sponsor"><a href="https://eon.io"><img class="sponsor-img sponsor-img-light" src="sponsor/eon.svg" alt="Eon" width="90"></img><img class="sponsor-img sponsor-img-dark" src="sponsor/eon.svg" alt="Eon" width="90"></img></a></div><div class="sponsor"><a href="https://xata.io"><img class="sponsor-img sponsor-img-light" src="sponsor/xata-light.svg" alt="Xata" width="120"></img><img class="sponsor-img sponsor-img-dark" src="sponsor/xata-dark.svg" alt="Xata" width="120"></img></a></div><div class="sponsor"><a href="https://dalibo.com"><img class="sponsor-img sponsor-img-light" src="sponsor/dalibo.svg" alt="Dalibo" width="150"></img><img class="sponsor-img sponsor-img-dark" src="sponsor/dalibo.svg" alt="Dalibo" width="150"></img></a></div><div class="sponsor"><a href="https://dataegret.com/"><img class="sponsor-img sponsor-img-light" src="sponsor/dataegret-light.svg" alt="Data Egret" width="165"></img><img class="sponsor-img sponsor-img-dark" src="sponsor/dataegret-dark.svg" alt="Data Egret" width="165"></img></a></div></div><div class="section-body-text">
We are grateful to our sponsors for investing in open-source infrastructure that benefits the entire <span class="postgres">PostgreSQL</span> community.
</div><div class="section-body-text">
Past sponsors: <a href="https://crunchydata.com">Crunchy Data</a>, <a href="https://resonate.com">Resonate</a>.
</div></div></div><div class="section1"><a id="introduction"></a><div class="section-body"><div class="section-body-text">
<span class="backrest">pgBackRest</span> is a reliable backup and restore solution for <span class="postgres">PostgreSQL</span> that seamlessly scales up to the largest databases and workloads.
</div><div class="section-body-text">
<span class="backrest">pgBackRest</span> <a href="https://github.com/pgbackrest/pgbackrest/releases/tag/release/2.60.1">v2.60.1</a> is the current stable release. Release notes are on the <a href="release.html">Releases</a> page.
</div><div class="section-body-text">
Please give us a star on <a href="https://github.com/pgbackrest/pgbackrest">GitHub</a> if you like <span class="backrest">pgBackRest</span>!
</div></div></div><div class="section1"><a id="news"></a><div class="section1-header"><div class="section1-title">
News
</div></div><div class="section-body"><div class="section-body-text">
<b>November 16, 2026</b> - <a href="news.html#release-2-60-1"><span class="backrest">pgBackRest</span> 2.60.1 Released</a>
</div><div class="section-body-text">
<b>October 18, 2026</b> - <a href="news.html#release-2-60-0"><span class="backrest">pgBackRest</span> 2.60.0 Released</a>
</div><div class="section-body-text">
<b>October 4, 2026</b> - <a href="news.html#weak-encryption">Weak Encryption Subkeys and Salts</a>
</div></div></div><div class="section1"><a id="features"></a><div class="section1-header"><div class="section1-title">
Features
</div></div><div class="section-body"><div class="section2"><a id="features/parallel-backup-restore"></a><div class="section2-header"><div class="section2-title">
Parallel Backup & Restore
</div></div><div class="section-body"><div class="section-body-text">
Compression is usually the bottleneck during backup operations so <span class="backrest">pgBackRest</span> solves this problem with parallel processing and more efficient compression algorithms such as <span class="host">lz4</span> and <span class="host">zstd</span>.
</div></div></div><div class="section2"><a id="features/local-or-remote"></a><div class="section2-header"><div class="section2-title">
Local or Remote Operation
</div></div><div class="section-body"><div class="section-body-text">
A custom protocol allows <span class="backrest">pgBackRest</span> to backup, restore, and archive locally or remotely via TLS/SSH with minimal configuration. An interface to query <span class="postgres">PostgreSQL</span> is also provided via the protocol layer so that remote access to <span class="postgres">PostgreSQL</span> is never required, which enhances security.
</div></div></div><div class="section2"><a id="features/multi-repo"></a><div class="section2-header"><div class="section2-title">
Multiple Repositories
</div></div><div class="section-body"><div class="section-body-text">
Multiple repositories allow, for example, a local repository with minimal retention for fast restores and a remote repository with a longer retention for redundancy and access across the enterprise.
</div></div></div><div class="section2"><a id="features/backup-standby"></a><div class="section2-header"><div class="section2-title">
Backup from Standby
</div></div><div class="section-body"><div class="section-body-text">
Backups can be made from a standby to reduce load on the primary. Only the few files that are not replicated are copied from the primary.
</div></div></div><div class="section2"><a id="features/backup-types"></a><div class="section2-header"><div class="section2-title">
Full, Differential, & Incremental Backups (at File or Block Level)
</div></div><div class="section-body"><div class="section-body-text">
Full, differential, and incremental backups are supported. <span class="backrest">pgBackRest</span> is not susceptible to the time resolution issues of rsync, making differential and incremental backups safe without the requirement to checksum each file. Block-level backups save space by only copying the parts of files that have changed.
</div></div></div><div class="section2"><a id="features/backup-rotation"></a><div class="section2-header"><div class="section2-title">
Backup Rotation & Archive Expiration
</div></div><div class="section-body"><div class="section-body-text">
Retention policies can be set for full and differential backups to create coverage for any time frame. The WAL archive can be maintained for all backups or strictly for the most recent backups. In the latter case WAL required to make older backups consistent will be maintained in the archive.
</div></div></div><div class="section2"><a id="features/backup-integrity"></a><div class="section2-header"><div class="section2-title">
Backup Integrity
</div></div><div class="section-body"><div class="section-body-text">
Checksums are calculated for every file in the backup and rechecked during a restore or verify. After a backup finishes copying files, it waits until every WAL segment required to make the backup consistent reaches the repository.
</div><div class="section-body-text">
Backups in the repository may be stored in the same format as a standard <span class="postgres">PostgreSQL</span> cluster (including tablespaces). If compression is disabled and hard links are enabled it is possible to snapshot a backup in the repository and bring up a <span class="postgres">PostgreSQL</span> cluster directly on the snapshot. This is advantageous for terabyte-scale databases that are time consuming to restore in the traditional way.
</div><div class="section-body-text">
All operations utilize file and directory level fsync to ensure durability.
</div></div></div><div class="section2"><a id="features/page-checksum"></a><div class="section2-header"><div class="section2-title">
Page Checksums
</div></div><div class="section-body"><div class="section-body-text">
If page checksums are enabled <span class="backrest">pgBackRest</span> will validate the checksums for every file that is copied during a backup. All page checksums are validated during a full backup and checksums in files that have changed are validated during differential and incremental backups.
</div><div class="section-body-text">
Validation failures do not stop the backup process, but warnings with details of exactly which pages have failed validation are output to the console and file log. By default restore errors when the backup has invalid page checksums and expire will not leave a backup with invalid page checksums as the oldest backup.
</div><div class="section-body-text">
This feature allows page-level corruption to be detected early, before backups that contain valid copies of the data have expired.
</div></div></div><div class="section2"><a id="features/backup-resume"></a><div class="section2-header"><div class="section2-title">
Backup Resume
</div></div><div class="section-body"><div class="section-body-text">
An interrupted backup can be resumed from the point where it was stopped. Files that were already copied are compared with the checksums in the manifest to ensure integrity. Since this operation can take place entirely on the repository host, it reduces load on the <span class="postgres">PostgreSQL</span> host and saves time since checksum calculation is faster than compressing and retransmitting data.
</div></div></div><div class="section2"><a id="features/stream-compression-checksums"></a><div class="section2-header"><div class="section2-title">
Streaming Compression & Checksums
</div></div><div class="section-body"><div class="section-body-text">
Compression and checksum calculations are performed in stream while files are being copied to the repository, whether the repository is located locally or remotely.
</div><div class="section-body-text">
If the repository is on a repository host, compression is performed on the <span class="postgres">PostgreSQL</span> host and files are transmitted in a compressed format and simply stored on the repository host. When compression is disabled a lower level of compression is utilized to make efficient use of available bandwidth while keeping CPU cost to a minimum.
</div></div></div><div class="section2"><a id="features/file-bundling"></a><div class="section2-header"><div class="section2-title">
File Bundling
</div></div><div class="section-body"><div class="section-body-text">
Small files are combined into bundles in the repository so fewer files are created during backup. This is especially effective on object stores.
</div></div></div><div class="section2"><a id="features/delta-restore"></a><div class="section2-header"><div class="section2-title">
Delta Restore
</div></div><div class="section-body"><div class="section-body-text">
The manifest contains checksums for every file in the backup so that during a restore it is possible to use these checksums to speed processing enormously. On a delta restore any files not present in the backup are first removed and then checksums are generated for the remaining files. Files that match the backup are left in place and the rest of the files are restored as usual. Parallel processing can lead to a dramatic reduction in restore times.
</div></div></div><div class="section2"><a id="features/parallel-archiving"></a><div class="section2-header"><div class="section2-title">
Parallel, Asynchronous WAL Push & Get
</div></div><div class="section-body"><div class="section-body-text">
Dedicated commands are included for pushing WAL to the archive and getting WAL from the archive. Both commands support parallelism to accelerate processing and run asynchronously to provide the fastest possible response time to <span class="postgres">PostgreSQL</span>.
</div><div class="section-body-text">
WAL push automatically detects WAL segments that are pushed multiple times and de-duplicates when the segment is identical, otherwise an error is raised. Asynchronous WAL push allows transfer to be offloaded to another process which compresses WAL segments in parallel for maximum throughput. This can be a critical feature for databases with extremely high write volume.
</div><div class="section-body-text">
Asynchronous WAL get maintains a local queue of WAL segments that are decompressed and ready for replay. This reduces the time needed to provide WAL to <span class="postgres">PostgreSQL</span> which maximizes replay speed. Higher-latency connections and storage (such as <span class="host">S3</span>) benefit the most.
</div><div class="section-body-text">
The push and get commands both ensure that the database and repository match by comparing <span class="postgres">PostgreSQL</span> versions and system identifiers. This virtually eliminates the possibility of misconfiguring the WAL archive location.
</div></div></div><div class="section2"><a id="features/tablespace-link-support"></a><div class="section2-header"><div class="section2-title">
Tablespace & Link Support
</div></div><div class="section-body"><div class="section-body-text">
Tablespaces are fully supported and on restore tablespaces can be remapped to any location. It is also possible to remap all tablespaces to one location with a single command which is useful for development restores.
</div><div class="section-body-text">
File and directory links are supported for any file or directory in the <span class="postgres">PostgreSQL</span> cluster. When restoring it is possible to restore all links to their original locations, remap some or all links, or restore some or all links as normal files or directories within the cluster directory.
</div></div></div><div class="section2"><a id="features/repo-storage"></a><div class="section2-header"><div class="section2-title">
S3, Azure, GCS, and SFTP Support
</div></div><div class="section-body"><div class="section-body-text">
<span class="backrest">pgBackRest</span> repositories can be located in <span class="host">S3</span>, <span class="host">Azure</span>, and <span class="host">GCS</span> compatible object stores to allow for virtually unlimited capacity and retention. Repositories can also be stored on an <span class="host">SFTP</span> server. Object store credentials can be retrieved automatically in cloud environments using a variety of authentication methods.
</div></div></div><div class="section2"><a id="features/encryption"></a><div class="section2-header"><div class="section2-title">
Encryption
</div></div><div class="section-body"><div class="section-body-text">
<span class="backrest">pgBackRest</span> can encrypt the repository to secure backups wherever they are stored.
</div></div></div><div class="section2"><a id="features/repo-versioning"></a><div class="section2-header"><div class="section2-title">
Ransomware & Malware Protection
</div></div><div class="section-body"><div class="section-body-text">
When the repository is stored on versioned object storage, <span class="backrest">pgBackRest</span> can read the repository as it was at a point-in-time. If backups are deleted or corrupted by accident, malware, or ransomware, a target time can be used to recover data from before the damage occurred.
</div><div class="section-body-text">
Versioning is supported by <span class="host">S3</span>, <span class="host">Azure</span>, and <span class="host">GCS</span> compatible object stores. Object locking for <span class="host">S3</span> and soft delete for <span class="host">GCS</span> or <span class="host">Azure</span> can provide additional protection against tampering.
</div></div></div><div class="section2"><a id="features/postgres-compatibility"></a><div class="section2-header"><div class="section2-title">
Compatibility with ten versions of <span class="postgres">PostgreSQL</span>
</div></div><div class="section-body"><div class="section-body-text">
<span class="backrest">pgBackRest</span> includes support for ten versions of <span class="postgres">PostgreSQL</span>, the five supported versions and the last five EOL versions. This allows ample time to upgrade to a supported version.
</div></div></div></div></div><div class="section1"><a id="getting-started"></a><div class="section1-header"><div class="section1-title">
Getting Started
</div></div><div class="section-body"><div class="section-body-text">
<span class="backrest">pgBackRest</span> strives to be easy to configure and operate:
</div><ul class="list-unordered"><li class="list-unordered">
<a href="user-guide-index.html">User guides</a> for various operating systems and <span class="postgres">PostgreSQL</span> versions.
</li><li class="list-unordered">
<a href="command.html">Command reference</a> for command-line operations.
</li><li class="list-unordered">
<a href="configuration.html">Configuration reference</a> for creating <span class="backrest">pgBackRest</span> configurations.
</li></ul></div></div><div class="section1 section-after-aside"><a id="contributions"></a><div class="section1-header"><div class="section1-title">
Contributions
</div></div><div class="section-body"><div class="section-body-text">
Contributions to <span class="backrest">pgBackRest</span> are always welcome! Please see our <a href="https://github.com/pgbackrest/pgbackrest/blob/main/CONTRIBUTING.md">Contributing Guidelines</a> for details on how to contribute features, improvements, or issues.
</div></div></div><div class="section1 section-after-aside"><a id="support"></a><div class="section1-header"><div class="section1-title">
Support
</div></div><div class="section-body"><div class="section-body-text">
<span class="backrest">pgBackRest</span> is completely free and open source under the <a href="https://github.com/pgbackrest/pgbackrest/blob/main/LICENSE">MIT</a> license. You may use it for personal or commercial purposes without any restrictions whatsoever. Bug reports are taken very seriously and will be addressed as quickly as possible. Please report bugs <a href="https://github.com/pgbackrest/pgbackrest/issues">here</a>.
</div><div class="section-body-text">
Creating a robust disaster recovery policy with proper replication and backup strategies can be a very complex and daunting task. You may find that you need help during the architecture phase and ongoing support to ensure that your enterprise continues running smoothly.
</div><div class="section-body-text">
Our <a href="#sponsors">sponsors</a> offer products and services that include <span class="backrest">pgBackRest</span> support and can help with your disaster recovery needs.
</div></div></div></div><div class="page-footer">
Copyright © 2015-2026, The PostgreSQL Global Development Group, <a href="https://github.com/pgbackrest/pgbackrest/blob/main/LICENSE">MIT License</a>. Updated November 16, 2026
</div></body></html>