<text><backrest/> release numbers consist of two parts, major and minor. A major release may break compatibility with the prior major release, for instance the 1.XX releases are not compatible with the 0.XX releases. Minor releases can include bug fixes and features but do not change the interface, naming, or the repository format.
The notes for a release may also contain <quote>Additional Notes</quote> but changes in this section are only to documentation or the test suite and have no direct impact the on the <backrest/> codebase.</text>
<p>Fixed an issue where <br-option>retention-archive</br-option> was not automatically being set when <br-option>retention-archive-type=diff</br-option>, resulting in a less aggressive than intended expiration of archive.</p>
<p>The <setting>archive-start</setting> and <setting>archive-stop</setting> settings are now filled in <file>backup.manifest</file> even when <br-option>archive-check-n</br-option>.</p>
<p>Experimental support for non-exclusive backups in <postgres/> 9.6 rc1. Changes to the control/catalog/WAL versions in subsequent betas may break compatibility but <backrest/> will be updated with each release to keep pace.</p>
<p>Changed temporary file names to consistently use the <file>.pgbackrest.tmp</file> extension even if the destination file is compressed or has an appended checksum.</p>
<p>Fixed an issue where options that should not allow multiple values could be specified multiple times in <file>pgbackrest.conf</file> without an error being raised.</p>
<p>Fixed an issue where the <br-option>protocol-timeout</br-option> option was not automatically increased when the <br-option>db-timeout</br-option> option was increased.</p>
<p>Backup from a standby cluster. A connection to the primary cluster is still required to start/stop the backup and copy files that are not replicated, but the vast majority of files are copied from the standby in order to reduce load on the master.</p>
<p>More flexible configuration for databases. Master and standby can both be configured on the backup server and <backrest/> will automatically determine which is the master. This means no configuration changes for backup are required after failing over from a master to standby when a separate backup server is used.</p>
<p>Exclude directories during backup that are cleaned, recreated, or zeroed by <postgres/> at startup. These include <path>pgsql_tmp</path> and <path>pg_stat_tmp</path>. The <file>postgresql.auto.conf.tmp</file> file is now excluded in addition to files that were already excluded: <file>backup_label.old</file>, <file>postmaster.opts</file>, <file>postmaster.pid</file>, <file>recovery.conf</file>, <file>recovery.done</file>.</p>
<p>Experimental support for non-exclusive backups in <postgres/> 9.6 beta4. Changes to the control/catalog/WAL versions in subsequent betas may break compatibility but <backrest/> will be updated with each release to keep pace.</p>
<p>Removed all <code>OP_*</code> function constants that were used only for debugging, not in the protocol, and replaced with <code>__PACKAGE__</code>.</p>
<p>Improvements in <code>Db</code> module: separated out <code>connect()</code> function, allow <code>executeSql()</code> calls that do not return data, and improve error handling.</p>
<p>Fixed an issue where tablespace paths that had $PGDATA as a substring would be identified as a subdirectories of $PGDATA even when they were not. Also hardened relative path checking a bit.</p>
<p>Fixed an issue where db-path was not required for the <cmd>check</cmd> command so an assert was raised when it was missing rather than a polite error message.</p>
<p>Fixed an issue where a remote could try to start its own remote when the <br-option>backup-host</br-option> option was not present in <file>pgbackrest.conf</file> on the database server.</p>
<p>Fixed an issue where the contents of <path>pg_xlog</path> were being backed up if the directory was symlinked. This didn't cause any issues during restore but was a waste of space.</p>
<p>Experimental support for non-exclusive backups in <postgres/> 9.6 beta3. Changes to the control/catalog/WAL versions in subsequent betas may break compatibility but <backrest/> will be updated with each release to keep pace.</p>
<p>Fixed an issue where <id>keep-alives</id> could be starved out by lots of small files during multi-threaded <cmd>backup</cmd>. They were also completely absent from single/multi-threaded <cmd>backup</cmd> resume and <cmd>restore</cmd> checksumming.</p>
<p>Fixed an issue where the <cmd>expire</cmd> command would refuse to run when explicitly called from the command line if the <br-option>db-host</br-option> option was set. This was not an issue when <cmd>expire</cmd> was run automatically after a <cmd>backup</cmd></p>
<p>Fixed an issue where validation was being running on <pg-setting>archive_command</pg-setting> even when the <br-option>archive-check</br-option> option was disabled.</p>
<p>Added the <br-option>protocol-timeout</br-option> option. Previously <br-option>protocol-timeout</br-option> was set as <br-option>db-timeout</br-option> + 30 seconds.</p>
<p>Failure to shutdown remotes at the end of the backup no longer throws an exception. Instead a warning is generated that recommends a higher <br-option>protocol-timeout</br-option>.</p>
<p>Experimental support for non-exclusive backups in <postgres/> 9.6 beta2. Changes to the control/catalog/WAL versions in subsequent betas may break compatibility but <backrest/> will be updated with each release to keep pace.</p>
<p>The <code>pg_xlogfile_name()</code> function is no longer used to construct WAL filenames from LSNs. While this function is convenient it is not available on a standby. Instead, the archive is searched for the LSN in order to find the timeline. If due to some misadventure the LSN appears on multiple timelines then an error will be thrown, whereas before this condition would have passed unnoticed.</p>
<p>Option handling is now far more strict. Previously it was possible for a command to use an option that was not explicitly assigned to it. This was especially true for the <br-option>backup-host</br-option> and <br-option>db-host</br-option> options which are used to determine locality.</p>
<p>Improved handling of users/groups captured during backup that do not exist on the restore host. Also explicitly handle the case where user/group is not mapped to a name.</p>
<p>Changed version variable to a constant. It had originally been designed to play nice with a specific packaging tool but that tool was never used.</p>
<p>Allow hidden options to be added to a command. This allows certain commands (like <id>apt-get</id>) to be forced during the build without making that a part of the documentation.</p>
<p>Recommended install location for <backrest/> modules is now <path>/usr/share/perl5</path> since <path>/usr/lib/perl5</path> has been removed from the search path in newer versions of Perl.</p>
</release-item>
<release-item>
<p>Added instructions for removing prior versions of <backrest/>.</p>
<p>Major refactor of the test suite to make it more modular and object-oriented. Multiple Docker containers can now be created for a single test to simulate more realistic environments. Tests paths have been renamed for clarity.</p>
<p>Greatly reduced the quantity of Docker containers built by default. Containers are only built for <postgres/> versions specified in <id>db-minimal</id> and those required to build documentation. Additional containers can be built with <br-option>--db-version=all</br-option> or by specifying a version, e.g. <br-option>--db-version=9.4</br-option>.</p>
<p>Release notes are now broken into sections so that bugs, features, and refactors are clearly delineated. An <quote>Additional Notes</quote> section has been added for changes to documentation and the test suite that do not affect the core code.</p>
<p>Added an execution cache so that documentation can be generated without setting up the full container environment. This is useful for packaging, keeps the documentation consistent for a release, and speeds up generation when no changes are made in the execution list.</p>
<p>The change log was the last piece of documentation to be rendered in Markdown only. Wrote a converter so the document can be output by the standard renderers. The change log will now be located on the website and has been renamed to <quote>Releases</quote>.</p>
</release-item>
<release-item>
<p>Remove function constants and pass strings directly to logDebugParam(). The function names were only used once so creating constants for them was wasteful.</p>
</release-item>
<release-item>
<p>Lists can now be used outside of <id>p</id> and <id>text</id> tags for more flexible document structuring.</p>
<p>Upgraded doc/test VM to Ubuntu 16.04. This will help catch Perl errors in the doc code since it is not run across multiple distributions like the core and test code. It is also to be hoped that a newer kernel will make Docker more stable.</p>
<p>Allow selective restore of databases from a cluster backup. This feature can result in major space and time savings when only specific databases are restored. Unrestored databases will not be accessible but must be manually dropped before they will be removed from the shared catalogue.</p>
<p>Experimental support for non-exclusive backups in <postgres/> 9.6 beta1. Changes to the control/catalog/WAL versions in subsequent betas may break compatibility but <backrest/> will be updated with each release to keep pace.</p>
</release-item>
</release-feature-list>
</release-core-list>
</release>
<releasedate="2016-04-14"version="1.00"title="New Repository Format and Configuration Scheme, Link Support">
<release-core-list>
<p><b>IMPORTANT NOTE</b>: This flag day release breaks compatibility with older versions of <backrest/>. The manifest format, on-disk structure, configuration scheme, and the exe/path names have all changed. You must create a new repository to hold backups for this version of <backrest/> and keep your older repository for a time in case you need to do a restore. Restores from the prior repository will require the prior version of <backrest/> but because of name changes it is possible to have <id>1.00</id> and a prior version of <backrest/> installed at the same time. See the notes below for more detailed information on what has changed.</p>
<p>Implemented a new configuration scheme which should be far simpler to use. See the User Guide and Configuration Reference for details but for a simple configuration all options can now be placed in the <setting>stanza</setting> section. Options that are shared between stanzas can be placed in the <setting>[global]</setting> section. More complex configurations can still make use of command sections though this should be a rare use case.</p>
</release-item>
<release-item>
<p>The <setting>repo-path</setting> option now always refers to the repository where backups and archive are stored, whether local or remote, so the <setting>repo-remote-path</setting> option has been removed. The new <setting>spool-path</setting> option can be used to define a location for queueing WAL segments when archiving asynchronously. A local repository is no longer required.</p>
<p>The default configuration filename is now <file>pgbackrest.conf</file> instead of <file>pg_backrest.conf</file>. This was done for consistency with other naming changes but also to prevent old config files from being loaded accidentally when migrating to <id>1.00</id>.</p>
<p>The default repository name was changed from <path>/var/lib/backup</path> to <path>/var/lib/pgbackrest</path>.</p>
</release-item>
<release-item>
<!-- <release-item-contributor-list>
<release-item-contributorid="steele.david"/>
</release-item-contributor-list> -->
<p>Lock files are now stored in <path>/tmp/pgbackrest</path> by default. These days <path>/run/pgbackrest</path> is the preferred location but that would require init scripts which are not part of this release. The <setting>lock-path</setting> option can be used to configure the lock directory.</p>
<p>Log files are now stored in <path>/var/log/pgbackrest</path> by default and no longer have the date appended so they can be managed with <id>logrotate</id>. The <setting>log-path</setting> option can be used to configure the lock directory.</p>
<p>Executable filename changed from <file>pg_backrest</file> to <file>pgbackrest</file>.</p>
</release-item>
<release-item>
<p>All files and directories linked from PGDATA are now included in the backup. By default links will be restored directly into PGDATA as files or directories. The <setting>{[dash]}-link-all</setting> option can be used to restore all links to their original locations. The <setting>{[dash]}-link-map</setting> option can be used to remap a link to a new location.</p>
</release-item>
<release-item>
<p>Removed <setting>{[dash]}-tablespace</setting> option and replaced with <setting>{[dash]}-tablespace-map-all</setting> option which should more clearly indicate its function.</p>
</release-item>
<release-item>
<p>Added <id>detail</id> log level which will output more information than <id>info</id> without being as verbose as <id>debug</id>.</p>
<p>Fixed an issue where the master process was passing <setting>{[dash]}-repo-remote-path</setting> instead of <setting>{[dash]}-repo-path</setting> to the remote and causing the lock files to be created in the default repository directory (<path>/var/lib/backup</path>), generally ending in failure. This was only an issue when <setting>{[dash]}-repo-remote-path</setting> was defined on the command line rather than in <file>pg_backrest.conf</file>.</p>
</release-item>
</release-bug-list>
</release-core-list>
</release>
<releasedate="2016-03-22"version="0.91"title="Tablespace Bug Fix and Minor Enhancements">
<release-core-list>
<p><b>IMPORTANT BUG FIX FOR TABLESPACES</b>: A change to the repository format was accidentally introduced in 0.90 which means the on-disk backup was no longer a valid <postgres/> cluster when the backup contained tablespaces. This only affected users who directly copied the backups to restore <postgres/> clusters rather than using the restore command. However, the fix breaks compatibility with older backups that contain tablespaces no matter how they are being restored (<backrest/> will throw errors and refuse to restore). New full backups should be taken immediately after installing version 0.91 for any clusters that contain tablespaces. If older backups need to be restored then use a version of <backrest/> that matches the backup version.</p>
<release-bug-list>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="benoit.evan"/>
</release-item-contributor-list>
<p>Fixed repository incompatibility introduced in <backrest/> 0.90.</p>
</release-item>
</release-bug-list>
<release-feature-list>
<release-item>
<p>Copy <file>global/pg_control</file> last during backups.</p>
</release-item>
<release-item>
<p>Write <id>.info</id> and <id>.manifest</id> files to temp before moving them to their final locations and fsync'ing.</p>
</release-item>
<release-item>
<p>Rename <setting>{[dash]}-no-start-stop</setting> option to <setting>{[dash]}-no-online</setting>.</p>
</release-item>
</release-feature-list>
</release-core-list>
<release-test-list>
<release-feature-list>
<release-item>
<p>Static source analysis using Perl-Critic, currently passes on gentle.</p>
</release-item>
</release-feature-list>
</release-test-list>
</release>
<releasedate="2016-02-07"version="0.90"title="9.5 Support, Various Enhancements, and Minor Bug Fixes">
<release-core-list>
<release-bug-list>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="odonnell.jason"/>
</release-item-contributor-list>
<p>Fixed an issue where specifying <setting>{[dash]}-no-archive-check</setting> would throw a configuration error.</p>
</release-item>
<release-item>
<p>Fixed an issue where a temp WAL file left over after a well-timed system crash could cause the next <cmd>archive-push</cmd> to fail.</p>
</release-item>
<release-item>
<p>The <setting>retention-archive</setting> option can now be be safely set to less than backup retention (<setting>retention-full</setting> or <setting>retention-diff</setting>) without also specifying <setting>archive-copy=n</setting>. The WAL required to make the backups that fall outside of archive retention consistent will be preserved in the archive. However, in this case PITR will not be possible for the backups that fall outside of archive retention.</p>
</release-item>
</release-bug-list>
<release-feature-list>
<release-item>
<p>When backing up and restoring tablespaces <backrest/> only operates on the subdirectory created for the version of <postgres/> being run against. Since multiple versions can live in a tablespace (especially during a binary upgrade) this prevents too many files from being copied during a backup and other versions possibly being wiped out during a restore. This only applies to <postgres/> >= 9.0 &mdash; prior versions of <postgres/> could not share a tablespace directory.</p>
</release-item>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="steele.david"/>
<release-item-contributorid="odonnell.jason"/>
</release-item-contributor-list>
<p>Generate an error when <setting>archive-check=y</setting> but <setting>archive_command</setting> does not execute <file>pg_backrest</file>.</p>
</release-item>
<release-item>
<p>Improved error message when <setting>repo-path</setting> or <setting>repo-remote-path</setting> does not exist.</p>
</release-item>
<release-item>
<p>Added checks for <setting>{[dash]}-delta</setting> and <setting>{[dash]}-force</setting> restore options to ensure that the destination is a valid $PGDATA directory. <backrest/> will check for the presence of <file>PG_VERSION</file> or <file>backup.manifest</file> (left over from an aborted restore). If neither file is found then <setting>{[dash]}-delta</setting> and <setting>{[dash]}-force</setting> will be disabled but the restore will proceed unless there are files in the $PGDATA directory (or any tablespace directories) in which case the operation will be aborted.</p>
</release-item>
<release-item>
<p>When restore <setting>{[dash]}-set=latest</setting> (the default) the actual backup restored will be output to the log.</p>
</release-item>
<release-item>
<p>Support for <postgres/> 9.5 partial WAL segments and <setting>recovery_target_action</setting> setting. The <setting>archive_mode = 'always'</setting> setting is not yet supported.</p>
</release-item>
<release-item>
<p>Support for <setting>recovery_target = 'immediate'</setting> recovery setting introduced in <postgres/> 9.4.</p>
</release-item>
<release-item>
<p>The following tablespace checks have been added: paths or files in pg_tblspc, relative links in pg_tblspc, tablespaces in $PGDATA. All three will generate errors.</p>
</release-item>
</release-feature-list>
</release-core-list>
<release-doc-list>
<release-bug-list>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="harvey.john"/>
</release-item-contributor-list>
<p>Fixed an issue where document generation failed because some OSs are not tolerant of having multiple installed versions of <postgres/>. A separate VM is now created for each version. Also added a sleep after database starts during document generation to ensure the database is running before the next command runs.</p>
</release-item>
</release-bug-list>
</release-doc-list>
</release>
<releasedate="2015-12-24"version="0.89"title="Timeout Bug Fix and Restore Read-Only Repositories">
<release-core-list>
<release-bug-list>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="frost.stephen"/>
</release-item-contributor-list>
<p>Fixed an issue where longer-running backups/restores would timeout when remote and threaded. Keepalives are now used to make sure the remote for the main process does not timeout while the thread remotes do all the work. The error message for timeouts was also improved to make debugging easier.</p>
</release-item>
</release-bug-list>
<release-feature-list>
<release-item>
<p>Allow restores to be performed on a read-only repository by using <setting>{[dash]}-no-lock</setting> and <setting>{[dash]}-log-level-file=off</setting>. The <setting>{[dash]}-no-lock</setting> option can only be used with restores.</p>
</release-item>
</release-feature-list>
</release-core-list>
<release-doc-list>
<release-refactor-list>
<release-item>
<p>Minor styling changes, clarifications and rewording in the user guide.</p>
</release-item>
</release-refactor-list>
</release-doc-list>
<release-test-list>
<release-refactor-list>
<release-item>
<p>The dev branch has been renamed to master and for the time being the master branch has renamed to release, though it will probably be removed at some point {[dash]}- thus ends the gitflow experiment for <backrest/>. It is recommended that any forks get re-forked and clones get re-cloned.</p>
</release-item>
</release-refactor-list>
</release-test-list>
</release>
<releasedate="2015-11-22"version="0.88"title="Documentation and Minor Bug Fixes">
<release-core-list>
<release-bug-list>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="didovicher.dmitry"/>
</release-item-contributor-list>
<p>Fixed an issue where the <cmd>start</cmd>/<cmd>stop</cmd> commands required the <setting>{[dash]}-config</setting> option.</p>
</release-item>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="frost.stephen"/>
<release-item-ideatorid="didovicher.dmitry"/>
</release-item-contributor-list>
<p>Fixed an issue where log files were being overwritten instead of appended.</p>
</release-item>
<release-item>
<p>Fixed an issue where <setting>backup-user</setting> was not optional.</p>
</release-item>
</release-bug-list>
<release-feature-list>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="frost.stephen"/>
</release-item-contributor-list>
<p>Symlinks are no longer created in backup directories in the repository. These symlinks could point virtually anywhere and potentially be dangerous. Symlinks are still recreated during a restore.</p>
</release-item>
<release-item>
<p>Added better messaging for backup expiration. Full and differential backup expirations are logged on a single line along with a list of all dependent backups expired.</p>
</release-item>
<release-item>
<p>Archive retention is automatically set to full backup retention if not explicitly configured.</p>
</release-item>
</release-feature-list>
</release-core-list>
<release-doc-list>
<release-feature-list>
<release-item>
<p>Added documentation in the user guide for delta restores, expiration, dedicated backup hosts, starting and stopping <backrest/>, and replication.</p>
</release-item>
</release-feature-list>
</release-doc-list>
</release>
<releasedate="2015-10-28"version="0.87"title="Website and User Guide">
<release-core-list>
<release-feature-list>
<release-item>
<p>The <file>backup_label.old</file> and <file>recovery.done</file> files are now excluded from backups.</p>
</release-item>
</release-feature-list>
</release-core-list>
<release-doc-list>
<release-feature-list>
<release-item>
<release-item-contributor-list>
<release-item-contributorid="steele.david"/>
<release-item-contributorid="frost.stephen"/>
<release-item-reviewerid="renner.michael"/>
<release-item-reviewerid="shang.cynthia"/>
<release-item-reviewerid="radman.eric"/>
<release-item-reviewerid="didovicher.dmitry"/>
</release-item-contributor-list>
<p>Added a new user guide that covers <backrest/> basics and some advanced topics including PITR. Much more to come, but it's a start.</p>
</release-item>
</release-feature-list>
<release-refactor-list>
<release-item>
<p>The website, markdown, and command-line help are now all generated from the same XML source.</p>
</release-item>
</release-refactor-list>
</release-doc-list>
</release>
<releasedate="2015-10-08"version="0.85"title="Start/Stop Commands and Minor Bug Fixes">
<release-core-list>
<release-bug-list>
<release-item>
<p>Fixed an issue where an error could be returned after a backup or restore completely successfully.</p>
</release-item>
<release-item>
<p>Fixed an issue where a resume would fail if temp files were left in the root backup directory when the backup failed. This scenario was likely if the backup process got terminated during the copy phase.</p>
</release-item>
</release-bug-list>
<release-feature-list>
<release-item>
<p>Added <cmd>stop</cmd> and <cmd>start</cmd> commands to prevent <backrest/> processes from running on a system where <postgres/> is shutdown or the system needs to be quiesced for some other reason.</p>
</release-item>
<release-item>
<p>Experimental support for <postgres/> 9.5 beta1. This may break when the control version or WAL magic changes in future versions but will be updated in each <backrest/> release to keep pace. All regression tests pass except for <setting>{[dash]}-target-resume</setting> tests (this functionality has changed in 9.5) and there is no testing yet for <file>.partial</file> WAL segments.</p>
</release-item>
</release-feature-list>
<release-refactor-list>
<release-item>
<p>Removed dependency on <code>IO::String</code> module.</p>
</release-item>
</release-refactor-list>
</release-core-list>
</release>
<releasedate="2015-09-14"version="0.82"title="Refactoring, Command-line Help, and Minor Bug Fixes">
<release-core-list>
<release-bug-list>
<release-item>
<p>Fixed an issue where resumed compressed backups were not preserving existing files.</p>
</release-item>
<release-item>
<p>Fixed an issue where resume and incr/diff would not ensure that the prior backup had the same compression and hardlink settings.</p>
</release-item>
<release-item>
<p>Fixed an issue where a cold backup using <setting>{[dash]}-no-start-stop</setting> could be started on a running <postgres/> cluster without <setting>{[dash]}-force</setting> specified.</p>
</release-item>
<release-item>
<p>Fixed an issue where a thread could be started even when none were requested.</p>
</release-item>
<release-item>
<p>Fixed an issue where the <backrest/> version number was not being updated in <file>backup.info</file> and <file>archive.info</file> after an upgrade/downgrade.</p>
</release-item>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="frost.stephen"/>
</release-item-contributor-list>
<p>Fixed an issue where the <cmd>info</cmd> command was throwing an exception when the repository contained no stanzas.</p>
</release-item>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="frost.stephen"/>
</release-item-contributor-list>
<p>Fixed an issue where the <postgres/><code>pg_stop_backup()</code> NOTICEs were being output to <id>stderr</id>.</p>
</release-item>
</release-bug-list>
<release-feature-list>
<release-item>
<p>Experimental support for <postgres/> 9.5 alpha2. This may break when the control version or WAL magic changes in future versions but will be updated in each <backrest/> release to keep pace. All regression tests pass except for <setting>{[dash]}-target-resume</setting> tests (this functionality has changed in 9.5) and there is no testing yet for <file>.partial</file> WAL segments.</p>
</release-item>
</release-feature-list>
<release-refactor-list>
<release-item>
<p>Renamed <setting>recovery-setting</setting> option and section to <setting>recovery-option</setting> to be more consistent with <backrest/> naming conventions.</p>
</release-item>
<release-item>
<p>Code cleanup and refactoring to standardize on patterns that have evolved over time.</p>
</release-item>
<release-item>
<p>Added dynamic module loading to speed up commands, especially asynchronous archiving.</p>
</release-item>
</release-refactor-list>
</release-core-list>
<release-doc-list>
<release-feature-list>
<release-item>
<p>Command-line help is now extracted from the same XML source that is used for the other documentation and includes much more detail.</p>
</release-item>
</release-feature-list>
</release-doc-list>
<release-test-list>
<release-feature-list>
<release-item>
<p>Expiration tests are now synthetic rather than based on actual backups. This will allow development of more advanced expiration features.</p>
</release-item>
</release-feature-list>
</release-test-list>
</release>
<releasedate="2015-08-09"version="0.80"title="DBI Support, Stability, and Convenience Features">
<release-core-list>
<release-bug-list>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="renner.michael"/>
</release-item-contributor-list>
<p>Fixed an issue that caused the formatted timestamp for both the oldest and newest backups to be reported as the current time by the <cmd>info</cmd> command. Only <id>text</id> output was affected {[dash]}- <id>json</id> output reported the correct epoch values.</p>
</release-item>
<release-item>
<p>Fixed protocol issue that was preventing ssh errors (especially on connection) from being logged.</p>
</release-item>
</release-bug-list>
<release-feature-list>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="shang.cynthia"/>
</release-item-contributor-list>
<p>The repository is now created and updated with consistent directory and file modes. By default <id>umask</id> is set to <id>0000</id> but this can be disabled with the <setting>neutral-umask</setting> setting.</p>
</release-item>
<release-item>
<p>Added the <br-option>stop-auto</br-option> option to allow failed backups to automatically be stopped when a new backup starts.</p>
</release-item>
<release-item>
<p>Added the <br-option>db-timeout</br-option> option to limit the amount of time <backrest/> will wait for <code>pg_start_backup()</code> and <code>pg_stop_backup()</code> to return.</p>
</release-item>
<release-item>
<p>Remove <file>pg_control</file> file at the beginning of the restore and copy it back at the very end. This prevents the possibility that a partial restore can be started by <postgres/>.</p>
</release-item>
<release-item>
<p>Added checks to be sure the <setting>db-path</setting> setting is consistent with <setting>db-port</setting> by comparing the <setting>data_directory</setting> as reported by the cluster against the <setting>db-path</setting> setting and the version as reported by the cluster against the value read from <file>pg_control</file>. The <setting>db-socket-path</setting> setting is checked to be sure it is an absolute path.</p>
</release-item>
<release-item>
<p>Experimental support for <postgres/> 9.5 alpha1. This may break when the control version or WAL magic changes in future versions but will be updated in each <backrest/> release to keep pace. All regression tests pass except for <setting>{[dash]}-target-resume</setting> tests (this functionality has changed in 9.5) and there is no testing yet for <file>.partial</file> WAL segments.</p>
</release-item>
</release-feature-list>
<release-refactor-list>
<release-item>
<p>Now using Perl <code>DBI</code> and <code>DBD::Pg</code> for connections to <postgres/> rather than <cmd>psql</cmd>. The <setting>cmd-psql</setting> and <setting>cmd-psql-option</setting> settings have been removed and replaced with <setting>db-port</setting> and <setting>db-socket-path</setting>. Follow the instructions in the Installation Guide to install <code>DBD::Pg</code> on your operating system.</p>
</release-item>
<release-item>
<p>Major refactoring of the protocol layer to support future development.</p>
</release-item>
</release-refactor-list>
</release-core-list>
<release-doc-list>
<release-feature-list>
<release-item>
<p>Split most of <file>README.md</file> out into <file>USERGUIDE.md</file> and <file>CHANGELOG.md</file> because it was becoming unwieldy. Changed most references to <quote>database</quote> in the user guide to <quote>database cluster</quote> for clarity.</p>
</release-item>
<release-item>
<p>Changed most references to <quote>database</quote> in the user guide to <quote>database cluster</quote> for clarity.</p>
</release-item>
</release-feature-list>
</release-doc-list>
<release-test-list>
<release-feature-list>
<release-item>
<p>Added vagrant test configurations for Ubuntu 14.04 and CentOS 7.</p>
<p>Removed dependency on CPAN packages for multi-threaded operation. While it might not be a bad idea to update the <code>threads</code> and <code>Thread::Queue</code> packages, it is no longer necessary.</p>
</release-item>
<release-item>
<p>Modified wait backoff to use a Fibonacci rather than geometric sequence. This will make wait time grow less aggressively while still giving reasonable values.</p>
</release-item>
</release-refactor-list>
</release-core-list>
<release-test-list>
<release-feature-list>
<release-item>
<p>Added vagrant test configurations for Ubuntu 12.04 and CentOS 6.</p>
</release-item>
<release-item>
<p>More options for regression tests and improved code to run in a variety of environments.</p>
</release-item>
</release-feature-list>
</release-test-list>
</release>
<releasedate="2015-06-30"version="0.77"title="CentOS/RHEL 6 Support and Protocol Improvements">
<release-core-list>
<release-feature-list>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="freund.andres"/>
</release-item-contributor-list>
<p>Added file and directory syncs to the <code>File</code> object for additional safety during backup/restore and archiving.</p>
</release-item>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="radman.eric"/>
</release-item-contributor-list>
<p>Added support for Perl 5.10.1 and OpenSSH 5.3 which are default for CentOS/RHEL 6.</p>
</release-item>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="radman.eric"/>
</release-item-contributor-list>
<p>Improved error message when backup is run without <setting>archive_command</setting> set and without <setting>{[dash]}-no-archive-check</setting> specified.</p>
</release-item>
</release-feature-list>
<release-refactor-list>
<release-item>
<p>Removed <file>pg_backrest_remote</file> and added the functionality to <file>pg_backrest</file> as the <cmd>remote</cmd> command.</p>
</release-item>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="renner.michael"/>
</release-item-contributor-list>
<p>Moved version number out of the <file>VERSION</file> file to <file>Version.pm</file> to better support packaging.</p>
</release-item>
<release-item>
<p>Replaced <code>IPC::System::Simple</code> and <code>Net::OpenSSH</code> with <code>IPC::Open3</code> to eliminate CPAN dependency for multiple operating systems.</p>
</release-item>
</release-refactor-list>
</release-core-list>
</release>
<releasedate="2015-06-14"version="0.75"title="New Repository Format, Info Command and Experimental 9.5 Support">
<release-core-list>
<p><b>IMPORTANT NOTE</b>: This flag day release breaks compatibility with older versions of <backrest/>. The manifest format, on-disk structure, and the binary names have all changed. You must create a new repository to hold backups for this version of <backrest/> and keep your older repository for a time in case you need to do a restore. The <file>pg_backrest.conf</file> file has not changed but you'll need to change any references to <file>pg_backrest.pl</file> in cron (or elsewhere) to <file>pg_backrest</file> (without the <file>.pl</file> extension).</p>
<release-feature-list>
<release-item>
<p>Added the <cmd>info</cmd> command.</p>
</release-item>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="renner.michael"/>
</release-item-contributor-list>
<p>Logging now uses unbuffered output. This should make log files that are being written by multiple threads less chaotic.</p>
</release-item>
<release-item>
<p>Experimental support for <postgres/> 9.5. This may break when the control version or WAL magic changes but will be updated in each release.</p>
</release-item>
</release-feature-list>
<release-refactor-list>
<release-item>
<p>More efficient file ordering for <cmd>backup</cmd>. Files are copied in descending size order so a single thread does not end up copying a large file at the end. This had already been implemented for <cmd>restore</cmd>.</p>
</release-item>
</release-refactor-list>
</release-core-list>
</release>
<releasedate="2015-06-01"version="0.70"title="Stability Improvements for Archiving, Improved Logging and Help">
<release-core-list>
<release-bug-list>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="renner.michael"/>
</release-item-contributor-list>
<p>Fixed an issue where <cmd>archive-copy</cmd> would fail on an incr/diff backup when <setting>hardlink=n</setting>. In this case the <path>pg_xlog</path> path does not already exist and must be created.</p>
</release-item>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="renner.michael"/>
</release-item-contributor-list>
<p>Fixed an issue in async archiving where <cmd>archive-push</cmd> was not properly returning 0 when <setting>archive-max-mb</setting> was reached and moved the async check after transfer to avoid having to remove the stop file twice. Also added unit tests for this case and improved error messages to make it clearer to the user what went wrong.</p>
</release-item>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="renner.michael"/>
</release-item-contributor-list>
<p>Fixed a locking issue that could allow multiple operations of the same type against a single stanza. This appeared to be benign in terms of data integrity but caused spurious errors while archiving and could lead to errors in backup/restore.</p>
</release-item>
</release-bug-list>
<release-feature-list>
<release-item>
<p>Allow duplicate WAL segments to be archived when the checksum matches. This is necessary for some recovery scenarios.</p>
</release-item>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="renner.michael"/>
</release-item-contributor-list>
<p>Allow comments/disabling in <file>pg_backrest.conf</file> using the <id>#</id> character. Only <id>#</id> characters in the forst character of the line are honored.</p>
</release-item>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="renner.michael"/>
</release-item-contributor-list>
<p>Better logging before <id>pg_start_backup()</id> to make it clear when the backup is waiting on a checkpoint.</p>
</release-item>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="renner.michael"/>
<release-item-reviewerid="renner.michael"/>
</release-item-contributor-list>
<p>Various command behavior and logging fixes.</p>
</release-item>
</release-feature-list>
<release-refactor-list>
<release-item>
<p>Replaced <code>JSON</code> module with <code>JSON::PP</code> which ships with core Perl.</p>
</release-item>
</release-refactor-list>
</release-core-list>
<release-doc-list>
<release-bug-list>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="renner.michael"/>
<release-item-reviewerid="renner.michael"/>
</release-item-contributor-list>
<p>Various help fixes.</p>
</release-item>
</release-bug-list>
</release-doc-list>
</release>
<releasedate="2015-05-11"version="0.65"title="Improved Resume and Restore Logging, Compact Restores">
<release-core-list>
<release-bug-list>
<release-item>
<p>Fixed an issue where an absolute path was not written into <file>recovery.conf</file> when the restore was run with a relative path.</p>
</release-item>
</release-bug-list>
<release-feature-list>
<release-item>
<p>Better resume support. Resumed files are checked to be sure they have not been modified and the manifest is saved more often to preserve checksums as the backup progresses. More unit tests to verify each resume case.</p>
</release-item>
<release-item>
<p>Resume is now optional. Use the <setting>resume</setting> setting or <setting>{[dash]}-no-resume</setting> from the command line to disable.</p>
</release-item>
<release-item>
<p>More info messages during restore. Previously, most of the restore messages were debug level so not a lot was output in the log.</p>
</release-item>
<release-item>
<p>Added <setting>tablespace</setting> setting to allow tablespaces to be restored into the <path>pg_tblspc</path> path. This produces compact restores that are convenient for development, staging, etc. Currently these restores cannot be backed up as <backrest/> expects only links in the <path>pg_tblspc</path> path.</p>
</release-item>
</release-feature-list>
</release-core-list>
</release>
<releasedate="2015-04-21"version="0.61"title="Bug Fix for Uncompressed Remote Destination">
<release-core-list>
<release-bug-list>
<release-item>
<p>Fixed a buffering error that could occur on large, highly-compressible files when copying to an uncompressed remote destination. The error was detected in the decompression code and resulted in a failed backup rather than corruption so it should not affect successful backups made with previous versions.</p>
</release-item>
</release-bug-list>
</release-core-list>
</release>
<releasedate="2015-04-19"version="0.60"title="Better Version Support and WAL Improvements">
<release-core-list>
<release-bug-list>
<release-item>
<p>Pushing duplicate WAL now generates an error. This worked before only if checksums were disabled.</p>
</release-item>
</release-bug-list>
<release-feature-list>
<release-item>
<p>Database System IDs are used to make sure that all WAL in an archive matches up. This should help prevent misconfigurations that send WAL from multiple clusters to the same archive.</p>
</release-item>
</release-feature-list>
<release-refactor-list>
<release-item>
<p>Improved threading model by starting threads early and terminating them late.</p>
</release-item>
</release-refactor-list>
</release-core-list>
<release-test-list>
<release-feature-list>
<release-item>
<p>Regression tests working back to <postgres/> 8.3.</p>
</release-item>
</release-feature-list>
</release-test-list>
</release>
<releasedate="2015-03-25"version="0.50"title="Restore and Much More">
<release-core-list>
<release-bug-list>
<release-item>
<p>Fixed broken checksums and now they work with normal and resumed backups. Finally realized that checksums and checksum deltas should be functionally separated and this simplified a number of things. Issue #28 has been created for checksum deltas.</p>
</release-item>
<release-item>
<p>Fixed an issue where a backup could be resumed from an aborted backup that didn't have the same type and prior backup.</p>
</release-item>
</release-bug-list>
<release-feature-list>
<release-item>
<p>Added restore functionality.</p>
</release-item>
<release-item>
<p>All options can now be set on the command-line making <file>pg_backrest.conf</file> optional.</p>
</release-item>
<release-item>
<p>De/compression is now performed without threads and checksum/size is calculated in stream. That means file checksums are no longer optional.</p>
</release-item>
<release-item>
<p>Added option <setting>{[dash]}-no-start-stop</setting> to allow backups when Postgres is shut down. If <file>postmaster.pid</file> is present then <setting>{[dash]}-force</setting> is required to make the backup run (though if Postgres is running an inconsistent backup will likely be created). This option was added primarily for the purpose of unit testing, but there may be applications in the real world as well.</p>
</release-item>
<release-item>
<p>Checksum for <file>backup.manifest</file> to detect a corrupted/modified manifest.</p>
</release-item>
<release-item>
<p>Link <path>latest</path> always points to the last backup. This has been added for convenience and to make restores simpler.</p>
</release-item>
</release-feature-list>
<release-refactor-list>
<release-item>
<p>Removed dependency on <code>Moose</code>. It wasn't being used extensively and makes for longer startup times.</p>
</release-item>
</release-refactor-list>
</release-core-list>
<release-test-list>
<release-feature-list>
<release-item>
<p>More comprehensive unit tests in all areas.</p>
</release-item>
</release-feature-list>
</release-test-list>
</release>
<releasedate="2014-10-05"version="0.30"title="Core Restructuring and Unit Tests">
<release-core-list>
<release-refactor-list>
<release-item>
<p>Complete rewrite of <code>BackRest::File</code> module to use a custom protocol for remote operations and Perl native GZIP and SHA operations. Compression is performed in threads rather than forked processes.</p>
</release-item>
<release-item>
<p>Removed dependency on <code>Storable</code> and replaced with a custom ini file implementation.</p>
</release-item>
<release-item>
<p>Numerous other changes that can only be identified with a diff.</p>
</release-item>
</release-refactor-list>
</release-core-list>
<release-doc-list>
<release-feature-list>
<release-item>
<p>Added much needed documentation</p>
</release-item>
</release-feature-list>
</release-doc-list>
<release-test-list>
<release-feature-list>
<release-item>
<p>Fairly comprehensive unit tests for all the basic operations. More work to be done here for sure, but then there is always more work to be done on unit tests.</p>
<p>Found and squashed a nasty bug where <code>file_copy()</code> was defaulted to ignore errors. There was also an issue in <code>file_exists()</code> that was causing the test to fail when the file actually did exist. Together they could have resulted in a corrupt backup with no errors, though it is very unlikely.</p>
</release-item>
</release-bug-list>
<release-refactor-list>
<release-item>
<p>Worked on improving error handling in the <code>File</code> object. This is not complete, but works well enough to find a few errors that have been causing us problems (notably, find is occasionally failing building the archive async manifest when system is under load).</p>
</release-item>
</release-refactor-list>
</release-core-list>
</release>
<releasedate="2014-04-13"version="0.18"title="Return Soft Error When Archive Missing">
<release-core-list>
<release-bug-list>
<release-item>
<release-item-contributor-list>
<release-item-ideatorid="frost.stephen"/>
</release-item-contributor-list>
<p>The <cmd>archive-get</cmd> command now returns a 1 when the archive file is missing to differentiate from hard errors (ssh connection failure, file copy error, etc.) This lets <postgres/> know that that the archive stream has terminated normally. However, this does not take into account possible holes in the archive stream.</p>
</release-item>
</release-bug-list>
</release-core-list>
</release>
<releasedate="2014-04-03"version="0.17"title="Warn When Archive Directories Cannot Be Deleted">
<release-core-list>
<release-bug-list>
<release-item>
<p>If an archive directory which should be empty could not be deleted backrest was throwing an error. There's a good fix for that coming, but for the time being it has been changed to a warning so processing can continue. This was impacting backups as sometimes the final archive file would not get pushed if the first archive file had been in a different directory (plus some bad luck).</p>
</release-item>
</release-bug-list>
</release-core-list>
</release>
<releasedate="2014-04-01"version="0.16"title="RequestTTY=yes for SSH Sessions">
<release-core-list>
<release-bug-list>
<release-item>
<p>Added <setting>RequestTTY=yes</setting> to ssh sessions. Hoping this will prevent random lockups.</p>
<p>Removed <setting>master_stderr_discard</setting> option on database SSH connections. There have been occasional lockups and they could be related to issues originally seen in the file code.</p>
</release-item>
<release-item>
<p>Changed lock file conflicts on <cmd>backup</cmd> and <cmd>expire</cmd> commands to <id>ERROR</id>. They were set to <id>DEBUG</id> due to a copy-and-paste from the archive locks.</p>
</release-item>
</release-bug-list>
</release-core-list>
</release>
<releasedate="2014-03-05"version="0.10"title="Backup and Archiving are Functional">
<release-core-list>
<release-feature-list>
<release-item>
<p>No restore functionality, but the backup directories are consistent <postgres/> data directories. You'll need to either uncompress the files or turn off compression in the backup. Uncompressed backups on a ZFS (or similar) filesystem are a good option because backups can be restored locally via a snapshot to create logical backups or do spot data recovery.</p>
</release-item>
<release-item>
<p>Archiving is single-threaded. This has not posed an issue on our multi-terabyte databases with heavy write volume. Recommend a large WAL volume or to use the async option with a large volume nearby.</p>
</release-item>
<release-item>
<p>Backups are multi-threaded, but the <code>Net::OpenSSH</code> library does not appear to be 100% thread-safe so it will very occasionally lock up on a thread. There is an overall process timeout that resolves this issue by killing the process. Yes, very ugly.</p>
</release-item>
<release-item>
<p>Checksums are lost on any resumed backup. Only the final backup will record checksum on multiple resumes. Checksums from previous backups are correctly recorded and a full backup will reset everything.</p>
</release-item>
<release-item>
<p>The <file>backup.manifest</file> is being written as <code>Storable</code> because <code>Config::IniFile</code> does not seem to handle large files well. Would definitely like to save these as human-readable text.</p>
</release-item>
</release-feature-list>
</release-core-list>
<release-doc-list>
<release-feature-list>
<release-item>
<p>Absolutely no documentation (outside the code). Well, excepting these release notes.</p>