mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-12 10:04:14 +02:00
Moved change log to website.
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 "Releases".
This commit is contained in:
parent
e2094c3d31
commit
5a85122841
360
CHANGELOG.md
360
CHANGELOG.md
@ -1,360 +0,0 @@
|
||||
# pgBackRest <br/> Change Log
|
||||
|
||||
## v1.01: Enhanced Info, Selective Restore, and 9.6 Support
|
||||
__Released May 17, 2016__
|
||||
|
||||
* Enhanced text output of `info` command to include timestamps, sizes, and the reference list for all backups. _Contributed by Cynthia Shang_.
|
||||
|
||||
* 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.
|
||||
|
||||
* Experimental support for non-exclusive backups in PostgreSQL 9.6 beta1. Changes to the control/catalog/WAL versions in subsequent betas may break compatibility but pgBackRest will be updated with each release to keep pace.
|
||||
|
||||
## v1.00: New Repository Format and Configuration Scheme, Link Support
|
||||
__Released April 14, 2016__
|
||||
|
||||
* **IMPORTANT NOTE**: This flag day release breaks compatibility with older versions of pgBackRest. 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 pgBackRest 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 pgBackRest but because of name changes it is possible to have `1.00` and a prior version of pgBackRest installed at the same time. See the notes below for more detailed information on what has changed.
|
||||
|
||||
* 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 `stanza` section. Options that are shared between stanzas can be placed in the `[global]` section. More complex configurations can still make use of command sections though this should be a rare use case.
|
||||
|
||||
* The `repo-path` option now always refers to the repository where backups and archive are stored, whether local or remote, so the `repo-remote-path` option has been removed. The new `spool-path` option can be used to define a location for queueing WAL segments when archiving asynchronously. A local repository is no longer required.
|
||||
|
||||
* The default configuration filename is now `pgbackrest.conf` instead of `pg_backrest.conf`. This was done for consistency with other naming changes but also to prevent old config files from being loaded accidentally when migrating to `1.00`.
|
||||
|
||||
* The default repository name was changed from `/var/lib/backup` to `/var/lib/pgbackrest`.
|
||||
|
||||
* Lock files are now stored in `/tmp/pgbackrest` by default. These days `/run/pgbackrest` is the preferred location but that would require init scripts which are not part of this release. The `lock-path` option can be used to configure the lock directory.
|
||||
|
||||
* Log files are now stored in `/var/log/pgbackrest` by default and no longer have the date appended so they can be managed with `logrotate`. The `log-path` option can be used to configure the lock directory.
|
||||
|
||||
* Executable filename changed from `pg_backrest` to `pgbackrest`.
|
||||
|
||||
* 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 `--link-all` option can be used to restore all links to their original locations. The `--link-map` option can be used to remap a link to a new location.
|
||||
|
||||
* Removed `--tablespace` option and replaced with `--tablespace-map-all` option which should more clearly indicate its function.
|
||||
|
||||
* Added `detail` log level which will output more information than `info` without being as verbose as `debug`.
|
||||
|
||||
## v0.92: Command-line Repository Path Fix
|
||||
__Released April 6, 2016__
|
||||
|
||||
* Fixed an issue where the master process was passing `--repo-remote-path` instead of `--repo-path` to the remote and causing the lock files to be created in the default repository directory (`/var/lib/backup`), generally ending in failure. This was only an issue when `--repo-remote-path` was defined on the command line rather than in `pg_backrest.conf`. _Reported by Jan Wieck_.
|
||||
|
||||
## v0.91: Tablespace Bug Fix and Minor Enhancements
|
||||
__Released March 22, 2016__
|
||||
|
||||
* **IMPORTANT BUG FIX FOR TABLESPACES**: A change to the repository format was accidentally introduced in 0.90 which means the on-disk backup was no longer a valid PostgreSQL cluster when the backup contained tablespaces. This only affected users who directly copied the backups to restore PostgreSQL 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 (pgBackRest 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 pgBackRest that matches the backup version. _Reported by Evan Benoit_.
|
||||
|
||||
* Copy `global/pg_control` last during backups.
|
||||
|
||||
* Write `.info` and `.manifest` files to temp before moving them to their final locations and fsync'ing.
|
||||
|
||||
* Rename `--no-start-stop` option to `--no-online`.
|
||||
|
||||
* Static source analysis using Perl-Critic, currently passes on gentle.
|
||||
|
||||
## v0.90: 9.5 Support, Various Enhancements, and Minor Bug Fixes
|
||||
__Released February 7, 2016__
|
||||
|
||||
* Fixed an issue where specifying `--no-archive-check` would throw a configuration error. _Reported by Jason O'Donnell_.
|
||||
|
||||
* Fixed an issue where a temp WAL file left over after a well-timed system crash could cause the next `archive-push` to fail.
|
||||
|
||||
* Fixed an issue where document generation failed because some OSs are not tolerant of having multiple installed versions of PostgreSQL. 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. _Reported by John Harvey_.
|
||||
|
||||
* The `retention-archive` option can now be be safely set to less than backup retention (`retention-full` or `retention-diff`) without also specifying `archive-copy=n`. 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.
|
||||
|
||||
* When backing up and restoring tablespaces pgBackRest only operates on the subdirectory created for the version of PostgreSQL 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 PostgreSQL >= 9.0 -- prior versions of PostgreSQL could not share a tablespace directory.
|
||||
|
||||
* Generate an error when `archive-check=y` but `archive_command` does not execute `pg_backrest`. _Contributed by Jason O'Donnell_.
|
||||
|
||||
* Improved error message when `repo-path` or `repo-remote-path` does not exist.
|
||||
|
||||
* Added checks for `--delta` and `--force` restore options to ensure that the destination is a valid $PGDATA directory. pgBackRest will check for the presence of `PG_VERSION` or `backup.manifest` (left over from an aborted restore). If neither file is found then `--delta` and `--force` 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.
|
||||
|
||||
* When restore `--set=latest` (the default) the actual backup restored will be output to the log.
|
||||
|
||||
* Support for PostgreSQL 9.5 partial WAL segments and `recovery_target_action` setting. The `archive_mode = 'always'` setting is not yet supported.
|
||||
|
||||
* Support for `recovery_target = 'immediate'` recovery setting introduced in PostgreSQL 9.4.
|
||||
|
||||
* 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.
|
||||
|
||||
## v0.89: Timeout Bug Fix and Restore Read-Only Repositories
|
||||
__Released December 24, 2015__
|
||||
|
||||
* 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.
|
||||
|
||||
* Allow restores to be performed on a read-only repository by using `--no-lock` and `--log-level-file=off`. The `--no-lock` option can only be used with restores.
|
||||
|
||||
* Minor styling changes, clarifications and rewording in the user guide.
|
||||
|
||||
* 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 -- thus ends the gitflow experiment for pgBackRest. It is recommended that any forks get re-forked and clones get re-cloned.
|
||||
|
||||
## v0.88: Documentation and Minor Bug Fixes
|
||||
__Released November 22, 2015__
|
||||
|
||||
* Added documentation in the user guide for delta restores, expiration, dedicated backup hosts, starting and stopping pgBackRest, and replication.
|
||||
|
||||
* Fixed an issue where the `start`/`stop` commands required the `--config` option.
|
||||
|
||||
* Fixed an issue where log files were being overwritten instead of appended.
|
||||
|
||||
* Fixed an issue where `backup-user` was not optional.
|
||||
|
||||
* 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.
|
||||
|
||||
* 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.
|
||||
|
||||
* Archive retention is automatically set to full backup retention if not explicitly configured.
|
||||
|
||||
## v0.87: Website and User Guide
|
||||
__Released October 28, 2015__
|
||||
|
||||
* Added a new user guide that covers pgBackRest basics and some advanced topics including PITR. Much more to come, but it's a start.
|
||||
|
||||
* The website, markdown, and command-line help are now all generated from the same XML source.
|
||||
|
||||
* The `backup_label.old` and `recovery.done` files are now excluded from backups.
|
||||
|
||||
## v0.85: Start/Stop Commands and Minor Bug Fixes
|
||||
__Released October 8, 2015__
|
||||
|
||||
* Added new feature to allow all pgBackRest operations to be stopped or started using the `stop` and `start` commands. This prevents any pgBackRest processes from running on a system where PostgreSQL is shutdown or the system needs to be quiesced for some reason.
|
||||
|
||||
* Removed dependency on `IO::String` module.
|
||||
|
||||
* Fixed an issue where an error could be returned after a backup or restore completely successfully.
|
||||
|
||||
* 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.
|
||||
|
||||
* Experimental support for PostgreSQL 9.5 beta1. This may break when the control version or WAL magic changes in future versions but will be updated in each pgBackRest release to keep pace. All regression tests pass except for `--target-resume` tests (this functionality has changed in 9.5) and there is no testing yet for `.partial` WAL segments.
|
||||
|
||||
## v0.82: Refactoring, Command-line Help, and Minor Bug Fixes
|
||||
__Released September 14, 2015__
|
||||
|
||||
* Fixed an issue where resumed compressed backups were not preserving existing files.
|
||||
|
||||
* Fixed an issue where resume and incr/diff would not ensure that the prior backup had the same compression and hardlink settings.
|
||||
|
||||
* Fixed an issue where a cold backup using `--no-start-stop` could be started on a running PostgreSQL cluster without `--force` specified.
|
||||
|
||||
* Fixed an issue where a thread could be started even when none were requested.
|
||||
|
||||
* Fixed an issue where the pgBackRest version number was not being updated in `backup.info` and `archive.info` after an upgrade/downgrade.
|
||||
|
||||
* Fixed an issue where the `info` command was throwing an exception when the repository contained no stanzas. _Reported by Stephen Frost_.
|
||||
|
||||
* Fixed an issue where the PostgreSQL `pg_stop_backup()` NOTICEs were being output to stderr. _Reported by Stephen Frost_.
|
||||
|
||||
* Renamed `recovery-setting` option and section to `recovery-option` to be more consistent with pgBackRest naming conventions.
|
||||
|
||||
* Command-line help is now extracted from the same XML source that is used for the other documentation and includes much more detail.
|
||||
|
||||
* Code cleanup and refactoring to standardize on patterns that have evolved over time.
|
||||
|
||||
* Added dynamic module loading to speed up commands, especially asynchronous archiving.
|
||||
|
||||
* Expiration tests are now synthetic rather than based on actual backups. This will allow development of more advanced expiration features.
|
||||
|
||||
* Experimental support for PostgreSQL 9.5 alpha2. This may break when the control version or WAL magic changes in future versions but will be updated in each pgBackRest release to keep pace. All regression tests pass except for `--target-resume` tests (this functionality has changed in 9.5) and there is no testing yet for `.partial` WAL segments.
|
||||
|
||||
## v0.80: DBI Support, Stability, and Convenience Features
|
||||
__Released August 9, 2015__
|
||||
|
||||
* Fixed an issue that caused the formatted timestamp for both the oldest and newest backups to be reported as the current time by the `info` command. Only `text` output was affected -- `json` output reported the correct epoch values. _Reported by Michael Renner_.
|
||||
|
||||
* Fixed protocol issue that was preventing ssh errors (especially on connection) from being logged.
|
||||
|
||||
* Now using Perl `DBI` and `DBD::Pg` for connections to PostgreSQL rather than `psql`. The `cmd-psql` and `cmd-psql-option` settings have been removed and replaced with `db-port` and `db-socket-path`. Follow the instructions in [Installation](USERGUIDE.md#installation) to install `DBD::Pg` on your operating system.
|
||||
|
||||
* Add [stop-auto](USERGUIDE.md#stop-auto-key) option to allow failed backups to automatically be stopped when a new backup starts.
|
||||
|
||||
* Add [db-timeout](USERGUIDE.md#db-timeout-key) option to limit the amount of time pgBackRest will wait for pg_start_backup() and pg_stop_backup() to return.
|
||||
|
||||
* Remove `pg_control` 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 PostgreSQL.
|
||||
|
||||
* The repository is now created and updated with consistent directory and file modes. By default `umask` is set to `0000` but this can be disabled with the `neutral-umask` setting. _Reported by Cynthia Shang_
|
||||
|
||||
* Added checks to be sure the `db-path` setting is consistent with `db-port` by comparing the `data_directory` as reported by the cluster against the `db-path` setting and the version as reported by the cluster against the value read from `pg_control`. The `db-socket-path` setting is checked to be sure it is an absolute path.
|
||||
|
||||
* Experimental support for PostgreSQL 9.5 alpha1. This may break when the control version or WAL magic changes in future versions but will be updated in each pgBackRest release to keep pace. All regression tests pass except for `--target-resume` tests (this functionality has changed in 9.5) and there is no testing yet for `.partial` WAL segments.
|
||||
|
||||
* Major refactoring of the protocol layer to support future development.
|
||||
|
||||
* Added vagrant test configurations for Ubuntu 14.04 and CentOS 7.
|
||||
|
||||
* Split most of `README.md` out into `USERGUIDE.md` and `CHANGELOG.md` because it was becoming unwieldy. Changed most references to "database" in the user guide to "database cluster" for clarity.
|
||||
|
||||
## v0.78: Remove CPAN Dependencies, Stability Improvements
|
||||
__Released July 13, 2015__
|
||||
|
||||
* Removed dependency on CPAN packages for multi-threaded operation. While it might not be a bad idea to update the `threads` and `Thread::Queue` packages, it is no longer necessary.
|
||||
|
||||
* Added vagrant test configurations for Ubuntu 12.04 and CentOS 6.
|
||||
|
||||
* Modified wait backoff to use a Fibonacci rather than geometric sequence. This will make wait time grow less aggressively while still giving reasonable values.
|
||||
|
||||
* More options for regression tests and improved code to run in a variety of environments.
|
||||
|
||||
## v0.77: CentOS/RHEL 6 Support and Protocol Improvements
|
||||
__Released June 30, 2015__
|
||||
|
||||
* Removed `pg_backrest_remote` and added the functionality to `pg_backrest` as the `remote` command.
|
||||
|
||||
* Added file and directory syncs to the `File` object for additional safety during backup/restore and archiving. _Suggested by Andres Freund_.
|
||||
|
||||
* Support for Perl 5.10.1 and OpenSSH 5.3 which are default for CentOS/RHEL 6. _Reported by Eric Radman._
|
||||
|
||||
* Improved error message when backup is run without `archive_command` set and without `--no-archive-check` specified. _Reported by Eric Radman_.
|
||||
|
||||
* Moved version number out of the `VERSION` file to `Version.pm` to better support packaging. _Suggested by Michael Renner_.
|
||||
|
||||
* Replaced `IPC::System::Simple` and `Net::OpenSSH` with `IPC::Open3` to eliminate CPAN dependency for multiple operating systems.
|
||||
|
||||
## v0.75: New Repository Format, Info Command and Experimental 9.5 Support
|
||||
__Released June 14, 2015__
|
||||
|
||||
* **IMPORTANT NOTE**: This flag day release breaks compatibility with older versions of pgBackRest. 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 pgBackRest and keep your older repository for a time in case you need to do a restore. The `pg_backrest.conf` file has not changed but you'll need to change any references to `pg_backrest.pl` in cron (or elsewhere) to `pg_backrest` (without the `.pl` extension).
|
||||
|
||||
* Add `info` command.
|
||||
|
||||
* More efficient file ordering for `backup`. 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 `restore`.
|
||||
|
||||
* Logging now uses unbuffered output. This should make log files that are being written by multiple threads less chaotic. _Suggested by Michael Renner_.
|
||||
|
||||
* Experimental support for PostgreSQL 9.5. This may break when the control version or WAL magic changes but will be updated in each release.
|
||||
|
||||
## v0.70: Stability Improvements for Archiving, Improved Logging and Help
|
||||
__Released June 1, 2015__
|
||||
|
||||
* Fixed an issue where `archive-copy` would fail on an incr/diff backup when `hardlink=n`. In this case the `pg_xlog` path does not already exist and must be created. _Reported by Michael Renner_
|
||||
|
||||
* Allow duplicate WAL segments to be archived when the checksum matches. This is necessary for some recovery scenarios.
|
||||
|
||||
* Allow comments/disabling in `pg_backrest.conf` using the `#` character. Only `#` characters in the forst character of the line are honored. _Suggested by Michael Renner_.
|
||||
|
||||
* Better logging before `pg_start_backup()` to make it clear when the backup is waiting on a checkpoint. _Suggested by Michael Renner_.
|
||||
|
||||
* Various command behavior, help and logging fixes. _Reported by Michael Renner_.
|
||||
|
||||
* Fixed an issue in async archiving where `archive-push` was not properly returning 0 when `archive-max-mb` 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. _Reported by Michael Renner_.
|
||||
|
||||
* 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. _Reported by Michael Renner_.
|
||||
|
||||
* Replaced `JSON` module with `JSON::PP` which ships with core Perl.
|
||||
|
||||
## v0.65: Improved Resume and Restore Logging, Compact Restores
|
||||
__Released May 11, 2015__
|
||||
|
||||
* 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.
|
||||
|
||||
* Resume is now optional. Use the `resume` setting or `--no-resume` from the command line to disable.
|
||||
|
||||
* More info messages during restore. Previously, most of the restore messages were debug level so not a lot was output in the log.
|
||||
|
||||
* Fixed an issue where an absolute path was not written into recovery.conf when the restore was run with a relative path.
|
||||
|
||||
* Added `tablespace` setting to allow tablespaces to be restored into the `pg_tblspc` path. This produces compact restores that are convenient for development, staging, etc. Currently these restores cannot be backed up as pgBackRest expects only links in the `pg_tblspc` path.
|
||||
|
||||
## v0.61: Bug Fix for Uncompressed Remote Destination
|
||||
__Released April 21, 2015__
|
||||
|
||||
* 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.
|
||||
|
||||
## v0.60: Better Version Support and WAL Improvements
|
||||
__Released April 19, 2015__
|
||||
|
||||
* Pushing duplicate WAL now generates an error. This worked before only if checksums were disabled.
|
||||
|
||||
* 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.
|
||||
|
||||
* Regression tests working back to PostgreSQL 8.3.
|
||||
|
||||
* Improved threading model by starting threads early and terminating them late.
|
||||
|
||||
## v0.50: Restore and Much More
|
||||
__Released March 25, 2015__
|
||||
|
||||
* Added restore functionality.
|
||||
|
||||
* All options can now be set on the command-line making `pg_backrest.conf` optional.
|
||||
|
||||
* De/compression is now performed without threads and checksum/size is calculated in stream. That means file checksums are no longer optional.
|
||||
|
||||
* Added option `--no-start-stop` to allow backups when Postgres is shut down. If `postmaster.pid` is present then `--force` 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.
|
||||
|
||||
* 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.
|
||||
|
||||
* Fixed an issue where a backup could be resumed from an aborted backup that didn't have the same type and prior backup.
|
||||
|
||||
* Removed dependency on `Moose`. It wasn't being used extensively and makes for longer startup times.
|
||||
|
||||
* Checksum for `backup.manifest` to detect a corrupted/modified manifest.
|
||||
|
||||
* Link `latest` always points to the last backup. This has been added for convenience and to make restores simpler.
|
||||
|
||||
* More comprehensive unit tests in all areas.
|
||||
|
||||
## v0.30: Core Restructuring and Unit Tests
|
||||
__Released October 5, 2014__
|
||||
|
||||
* Complete rewrite of `BackRest::File` 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.
|
||||
|
||||
* 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.
|
||||
|
||||
* Removed dependency on `Storable` and replaced with a custom ini file implementation.
|
||||
|
||||
* Added much needed documentation
|
||||
|
||||
* Numerous other changes that can only be identified with a diff.
|
||||
|
||||
## v0.19: Improved Error Reporting/Handling
|
||||
__Released May 13, 2014__
|
||||
|
||||
* Working on improving error handling in the `File` 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).
|
||||
|
||||
* Found and squashed a nasty bug where `file_copy()` was defaulted to ignore errors. There was also an issue in `file_exists()` 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.
|
||||
|
||||
## v0.18: Return Soft Error When Archive Missing
|
||||
__Released April 13, 2014__
|
||||
|
||||
* The `archive-get` command returns a 1 when the archive file is missing to differentiate from hard errors (ssh connection failure, file copy error, etc.) This lets PostgreSQL know that that the archive stream has terminated normally. However, this does not take into account possible holes in the archive stream.
|
||||
|
||||
## v0.17: Warn When Archive Directories Cannot Be Deleted
|
||||
__Released April 3, 2014__
|
||||
|
||||
* 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).
|
||||
|
||||
## v0.16: RequestTTY=yes for SSH Sessions
|
||||
__Released April 1, 2014__
|
||||
|
||||
* Added `RequestTTY=yes` to ssh sessions. Hoping this will prevent random lockups.
|
||||
|
||||
## v0.15: Added archive-get
|
||||
__Released March 29, 2014__
|
||||
|
||||
* Added `archive-get` functionality to aid in restores.
|
||||
|
||||
* Added option to force a checkpoint when starting the backup, `start-fast=y`.
|
||||
|
||||
## v0.11: Minor Fixes
|
||||
__Released March 26, 2014__
|
||||
|
||||
* Removed `master_stderr_discard` option on database SSH connections. There have been occasional lockups and they could be related to issues originally seen in the file code.
|
||||
|
||||
* Changed lock file conflicts on `backup` and `expire` commands to `ERROR`. They were set to `DEBUG` due to a copy-and-paste from the archive locks.
|
||||
|
||||
## v0.10: Backup and Archiving are Functional
|
||||
__Released March 5, 2014__
|
||||
|
||||
* No restore functionality, but the backup directories are consistent PostgreSQL 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.
|
||||
|
||||
* 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.
|
||||
|
||||
* Backups are multi-threaded, but the `Net::OpenSSH` 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.
|
||||
|
||||
* 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.
|
||||
|
||||
* The `backup.manifest` is being written as `Storable` because `Config::IniFile` does not seem to handle large files well. Would definitely like to save these as human-readable text.
|
||||
|
||||
* Absolutely no documentation (outside the code). Well, excepting these release notes.
|
@ -84,7 +84,7 @@ Code fixes or new features can be submitted via pull requests. Ideas for new fea
|
||||
|
||||
Bug reports should be [submitted as issues](https://github.com/pgbackrest/pgbackrest/issues). Please provide as much information as possible to aid in determining the cause of the problem.
|
||||
|
||||
You will always receive credit in the [change log](https://github.com/pgbackrest/pgbackrest/blob/master/CHANGELOG.md) for your contributions.
|
||||
You will always receive credit in the [release notes](http://www.pgbackrest.org/release.html) for your contributions.
|
||||
|
||||
## Support
|
||||
|
||||
|
39
doc/doc.pl
39
doc/doc.pl
@ -60,13 +60,6 @@ doc.pl [options]
|
||||
--require Require only certain sections of the document (to speed testing)
|
||||
=cut
|
||||
|
||||
####################################################################################################################################
|
||||
# Operation constants
|
||||
####################################################################################################################################
|
||||
use constant OP_MAIN => 'Main';
|
||||
|
||||
use constant OP_MAIN_DOC_PROCESS => OP_MAIN . '::docProcess';
|
||||
|
||||
####################################################################################################################################
|
||||
# Load command line parameters and config (see usage above for details)
|
||||
####################################################################################################################################
|
||||
@ -139,32 +132,6 @@ if (!defined($strDocPath))
|
||||
|
||||
my $strOutputPath = "${strDocPath}/output";
|
||||
|
||||
sub docProcess
|
||||
{
|
||||
# Assign function parameters, defaults, and log debug info
|
||||
my
|
||||
(
|
||||
$strOperation,
|
||||
$strXmlIn,
|
||||
$strMdOut,
|
||||
$oManifest
|
||||
) =
|
||||
logDebugParam
|
||||
(
|
||||
OP_MAIN_DOC_PROCESS, \@_,
|
||||
{name => 'strXmlIn'},
|
||||
{name => 'strMdOut'},
|
||||
{name => 'oHtmlSite'}
|
||||
);
|
||||
|
||||
# Build the document from xml
|
||||
my $oDoc = new BackRestDoc::Common::Doc($strXmlIn);
|
||||
|
||||
# Write markdown
|
||||
my $oRender = new BackRestDoc::Common::DocRender('markdown', $oManifest);
|
||||
$oRender->save($strMdOut, $oManifest->variableReplace($oRender->process($oDoc)));
|
||||
}
|
||||
|
||||
# Create the out path if it does not exist
|
||||
if (!-e $strOutputPath)
|
||||
{
|
||||
@ -217,12 +184,6 @@ for my $strOutput (@stryOutput)
|
||||
);
|
||||
|
||||
$oMarkdown->process();
|
||||
|
||||
# Generate the change log using the old markdown code.
|
||||
if ($oManifest->isBackRest())
|
||||
{
|
||||
docProcess("${strBasePath}/xml/change-log.xml", "${strBasePath}/../CHANGELOG.md", $oManifest);
|
||||
}
|
||||
}
|
||||
elsif ($strOutput eq 'help' && $oManifest->isBackRest())
|
||||
{
|
||||
|
@ -278,7 +278,7 @@ sub build
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# nodeGet
|
||||
# nodeGetById
|
||||
#
|
||||
# Return a node by name - error if more than one exists
|
||||
####################################################################################################################################
|
||||
|
@ -631,7 +631,7 @@ sub sectionChildProcess
|
||||
}
|
||||
}
|
||||
# Skip children that have already been processed and error on others
|
||||
elsif ($oChild->nameGet() ne 'title')
|
||||
elsif ($oChild->nameGet() ne 'title' && $oChild->nameGet() ne 'subtitle' && $oChild->nameGet() ne 'subsubtitle')
|
||||
{
|
||||
confess &log(ASSERT, 'unable to process child type ' . $oChild->nameGet());
|
||||
}
|
||||
|
@ -16,6 +16,7 @@ use pgBackRest::Common::Log;
|
||||
use pgBackRest::Common::String;
|
||||
|
||||
use BackRestDoc::Common::DocManifest;
|
||||
use BackRestDoc::Custom::DocCustomRelease;
|
||||
|
||||
####################################################################################################################################
|
||||
# Render tags for various output types
|
||||
@ -171,12 +172,16 @@ sub new
|
||||
|
||||
# Determine if this is a custom source which signals special handling for different projects.
|
||||
my $strSourceType = ${$self->{oManifest}->sourceGet('reference')}{strSourceType};
|
||||
|
||||
if (defined($strSourceType) && $strSourceType eq 'custom')
|
||||
{
|
||||
# Get the reference if this is the backrest project
|
||||
# Get the reference and release xml if this is the backrest project
|
||||
if ($self->{oManifest}->isBackRest())
|
||||
{
|
||||
$self->{oReference} = new BackRestDoc::Common::DocConfig(${$self->{oManifest}->sourceGet('reference')}{doc}, $self);
|
||||
$self->{oReference} =
|
||||
new BackRestDoc::Common::DocConfig(${$self->{oManifest}->sourceGet('reference')}{doc}, $self);
|
||||
$self->{oRelease} =
|
||||
new BackRestDoc::Custom::DocCustomRelease(${$self->{oManifest}->sourceGet('release')}{doc}, $self);
|
||||
}
|
||||
}
|
||||
|
||||
@ -195,6 +200,10 @@ sub new
|
||||
confess &log(ERROR, "cannot render $self->{strRenderOutKey} from source $$oRenderOut{source}");
|
||||
}
|
||||
}
|
||||
elsif (defined($$oRenderOut{source}) && $$oRenderOut{source} eq 'release')
|
||||
{
|
||||
$self->{oDoc} = $self->{oRelease}->docGet();
|
||||
}
|
||||
else
|
||||
{
|
||||
$self->{oDoc} = ${$self->{oManifest}->sourceGet($self->{strRenderOutKey})}{doc};
|
||||
@ -401,180 +410,6 @@ sub isRequired
|
||||
defined(${$self->{oSectionRequired}}{$strPath}) ? true : false;
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# process
|
||||
#
|
||||
# Render the document
|
||||
####################################################################################################################################
|
||||
sub process
|
||||
{
|
||||
my $self = shift;
|
||||
|
||||
# Assign function parameters, defaults, and log debug info
|
||||
my
|
||||
(
|
||||
$strOperation,
|
||||
$oDoc,
|
||||
$iDepth,
|
||||
$bChildList,
|
||||
) =
|
||||
logDebugParam
|
||||
(
|
||||
__PACKAGE__ . '->process', \@_,
|
||||
{name => 'oDoc', trace => true},
|
||||
{name => 'iDepth', default => 1, trace => true},
|
||||
{name => 'bChildList', default => true, trace => true}
|
||||
);
|
||||
|
||||
my $strType = $self->{strType};
|
||||
|
||||
my $strBuffer = "";
|
||||
my $bList = $oDoc->nameGet() =~ /.*-bullet-list$/;
|
||||
$bChildList = defined($bChildList) ? $bChildList : false;
|
||||
my $iChildDepth = $iDepth;
|
||||
|
||||
my @stryMonth = ('January', 'February', 'March', 'April', 'May', 'June',
|
||||
'July', 'August', 'September', 'October', 'November', 'December');
|
||||
|
||||
if ($strType eq 'markdown' || $strType eq 'text')
|
||||
{
|
||||
if (defined($oDoc->paramGet('id', false)))
|
||||
{
|
||||
my @stryToken = split('-', $oDoc->nameGet());
|
||||
my $strTitle = @stryToken == 0 ? '[unknown]' : $stryToken[@stryToken - 1];
|
||||
|
||||
$strBuffer = ('#' x $iDepth) . ' `' . $oDoc->paramGet('id') . '` ' . $strTitle;
|
||||
}
|
||||
|
||||
# Try to get the title param from the element (??? this is the old style and should be removed)
|
||||
my $strTitle = $oDoc->paramGet('title', false);
|
||||
|
||||
if (!defined($strTitle))
|
||||
{
|
||||
$strTitle = $oDoc->paramGet('subtitle', false);
|
||||
}
|
||||
|
||||
# If not found then get the title element
|
||||
if (!defined($strTitle) && defined($oDoc->nodeGet('title', false)))
|
||||
{
|
||||
$strTitle = $self->processText($oDoc->nodeGet('title')->textGet());
|
||||
}
|
||||
|
||||
if (defined($strTitle))
|
||||
{
|
||||
$strBuffer = ('#' x $iDepth) . ' ';
|
||||
|
||||
if (defined($oDoc->paramGet('version', false)))
|
||||
{
|
||||
$strBuffer .= 'v' . $oDoc->paramGet('version') . ': ';
|
||||
}
|
||||
|
||||
$strBuffer .= ($iDepth == 1 ? "{[project]} <br/> " : '') . $strTitle;
|
||||
|
||||
if (defined($oDoc->paramGet('date', false)))
|
||||
{
|
||||
my $strDate = $oDoc->paramGet('date');
|
||||
|
||||
if ($strDate !~ /^(XXXX-XX-XX)|([0-9]{4}-[0-9]{2}-[0-9]{2})$/)
|
||||
{
|
||||
confess "invalid date ${strDate}";
|
||||
}
|
||||
|
||||
if ($strDate =~ /^X/)
|
||||
{
|
||||
$strBuffer .= "\n__No Release Date Set__";
|
||||
}
|
||||
else
|
||||
{
|
||||
$strBuffer .= "\n__Released " . $stryMonth[(substr($strDate, 5, 2) - 1)] . ' ' .
|
||||
(substr($strDate, 8, 2) + 0) . ', ' . substr($strDate, 0, 4) . '__';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($strBuffer ne "")
|
||||
{
|
||||
$iChildDepth++;
|
||||
}
|
||||
|
||||
if (defined($oDoc->nodeGet('summary', false)))
|
||||
{
|
||||
if ($strBuffer ne "")
|
||||
{
|
||||
$strBuffer .= "\n\n";
|
||||
}
|
||||
|
||||
if ($bChildList)
|
||||
{
|
||||
$strBuffer .= '* ';
|
||||
}
|
||||
|
||||
$strBuffer .= $self->processText($oDoc->nodeGet('summary')->textGet());
|
||||
}
|
||||
|
||||
if (defined($oDoc->textGet(false)))
|
||||
{
|
||||
if ($strBuffer ne "")
|
||||
{
|
||||
$strBuffer .= "\n\n";
|
||||
}
|
||||
|
||||
if ($bChildList)
|
||||
{
|
||||
$strBuffer .= '* ';
|
||||
}
|
||||
|
||||
$strBuffer .= $self->processText($oDoc->textGet());
|
||||
}
|
||||
|
||||
if ($strBuffer ne "" && $iDepth != 1 && !$bList)
|
||||
{
|
||||
$strBuffer = "\n\n" . $strBuffer;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
confess "unknown type ${strType}";
|
||||
}
|
||||
|
||||
my $bFirst = true;
|
||||
|
||||
foreach my $oChild ($oDoc->nodeList(undef, false))
|
||||
{
|
||||
if ($oChild->nameGet() ne 'summary' && $oChild->nameGet() ne 'title')
|
||||
{
|
||||
if ($strType eq 'markdown' || $strType eq 'text')
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
confess "unknown type ${strType}";
|
||||
}
|
||||
|
||||
$strBuffer .= $self->process($oChild, $iChildDepth, $bList);
|
||||
}
|
||||
}
|
||||
|
||||
if ($iDepth == 1)
|
||||
{
|
||||
if ($strType eq 'markdown' || $strType eq 'text')
|
||||
{
|
||||
$strBuffer .= "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
confess "unknown type ${strType}";
|
||||
}
|
||||
}
|
||||
|
||||
# Return from function and log return values if any
|
||||
return logDebugReturn
|
||||
(
|
||||
$strOperation,
|
||||
{name => 'strBuffer', value => $strBuffer, trace => true}
|
||||
);
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# processTag
|
||||
####################################################################################################################################
|
||||
@ -767,46 +602,4 @@ sub processText
|
||||
);
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# save
|
||||
####################################################################################################################################
|
||||
sub save
|
||||
{
|
||||
my $self = shift;
|
||||
|
||||
# Assign function parameters, defaults, and log debug info
|
||||
my
|
||||
(
|
||||
$strOperation,
|
||||
$strFileName,
|
||||
$strBuffer
|
||||
) =
|
||||
logDebugParam
|
||||
(
|
||||
__PACKAGE__ . '->save', \@_,
|
||||
{name => 'strFileName', trace => true},
|
||||
{name => 'strBuffer', trace => true}
|
||||
);
|
||||
|
||||
# Open the file
|
||||
my $hFile;
|
||||
open($hFile, '>', $strFileName)
|
||||
or confess &log(ERROR, "unable to open ${strFileName}");
|
||||
|
||||
# Write the buffer
|
||||
my $iBufferOut = syswrite($hFile, $strBuffer);
|
||||
|
||||
# Report any errors
|
||||
if (!defined($iBufferOut) || $iBufferOut != length($strBuffer))
|
||||
{
|
||||
confess "unable to write '${strBuffer}'" . (defined($!) ? ': ' . $! : '');
|
||||
}
|
||||
|
||||
# Close the file
|
||||
close($hFile);
|
||||
|
||||
# Return from function and log return values if any
|
||||
return logDebugReturn($strOperation);
|
||||
}
|
||||
|
||||
1;
|
||||
|
123
doc/lib/BackRestDoc/Custom/DocCustomRelease.pm
Normal file
123
doc/lib/BackRestDoc/Custom/DocCustomRelease.pm
Normal file
@ -0,0 +1,123 @@
|
||||
####################################################################################################################################
|
||||
# DOC RELEASE MODULE
|
||||
####################################################################################################################################
|
||||
package BackRestDoc::Custom::DocCustomRelease;
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
use Carp qw(confess);
|
||||
|
||||
use Exporter qw(import);
|
||||
our @EXPORT = qw();
|
||||
use File::Basename qw(dirname);
|
||||
|
||||
use lib dirname($0) . '/../lib';
|
||||
use pgBackRest::Common::Log;
|
||||
use pgBackRest::Common::String;
|
||||
use pgBackRest::Config::Config;
|
||||
use pgBackRest::Config::ConfigHelp;
|
||||
use pgBackRest::FileCommon;
|
||||
|
||||
####################################################################################################################################
|
||||
# CONSTRUCTOR
|
||||
####################################################################################################################################
|
||||
sub new
|
||||
{
|
||||
my $class = shift; # Class name
|
||||
|
||||
# Create the class hash
|
||||
my $self = {};
|
||||
bless $self, $class;
|
||||
|
||||
# Assign function parameters, defaults, and log debug info
|
||||
(
|
||||
my $strOperation,
|
||||
$self->{oDoc}
|
||||
) =
|
||||
logDebugParam
|
||||
(
|
||||
__PACKAGE__ . '->new', \@_,
|
||||
{name => 'oDoc'}
|
||||
);
|
||||
|
||||
# Return from function and log return values if any
|
||||
return logDebugReturn
|
||||
(
|
||||
$strOperation,
|
||||
{name => 'self', value => $self}
|
||||
);
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# docGet
|
||||
#
|
||||
# Get the xml for release.
|
||||
####################################################################################################################################
|
||||
sub docGet
|
||||
{
|
||||
my $self = shift;
|
||||
|
||||
# Assign function parameters, defaults, and log debug info
|
||||
my $strOperation = logDebugParam(__PACKAGE__ . '->docGet');
|
||||
|
||||
# Create the doc
|
||||
my $oDoc = new BackRestDoc::Common::Doc();
|
||||
$oDoc->paramSet('title', $self->{oDoc}->paramGet('title'));
|
||||
|
||||
# Set the description for use as a meta tag
|
||||
$oDoc->fieldSet('description', $self->{oDoc}->fieldGet('description'));
|
||||
|
||||
# Add the introduction
|
||||
my $oIntroSectionDoc = $oDoc->nodeAdd('section', undef, {id => 'introduction'});
|
||||
$oIntroSectionDoc->nodeAdd('title')->textSet('Introduction');
|
||||
$oIntroSectionDoc->textSet($self->{oDoc}->nodeGet('intro')->textGet());
|
||||
|
||||
# Add each release section
|
||||
foreach my $oRelease ($self->{oDoc}->nodeGet('changelog')->nodeList('changelog-release'))
|
||||
{
|
||||
# Get the required release version and date
|
||||
my $strVersion = $oRelease->paramGet('version');
|
||||
my $strDate = $oRelease->paramGet('date');
|
||||
my $strDateOut = "";
|
||||
|
||||
# Format the date
|
||||
my @stryMonth = ('January', 'February', 'March', 'April', 'May', 'June',
|
||||
'July', 'August', 'September', 'October', 'November', 'December');
|
||||
|
||||
if ($strDate !~ /^(XXXX-XX-XX)|([0-9]{4}-[0-9]{2}-[0-9]{2})$/)
|
||||
{
|
||||
confess &log(ASSERT, "invalid date ${strDate} for release {$strVersion}");
|
||||
}
|
||||
|
||||
if ($strDate =~ /^X/)
|
||||
{
|
||||
$strDateOut .= "\n__No Release Date Set__";
|
||||
}
|
||||
else
|
||||
{
|
||||
$strDateOut .= $stryMonth[(substr($strDate, 5, 2) - 1)] . ' ' .
|
||||
(substr($strDate, 8, 2) + 0) . ', ' . substr($strDate, 0, 4);
|
||||
}
|
||||
|
||||
# Add section and titles
|
||||
my $oSection = $oDoc->nodeAdd('section', undef, {id => $strVersion});
|
||||
$oSection->nodeAdd('title')->textSet("$strVersion Release");
|
||||
$oSection->nodeAdd('subtitle')->textSet($oRelease->paramGet('title'));
|
||||
$oSection->nodeAdd('subsubtitle')->textSet('Released ' . $strDateOut);
|
||||
|
||||
# Add release features
|
||||
foreach my $oReleaseFeature ($oRelease->nodeGet('release-feature-bullet-list')->nodeList('release-feature'))
|
||||
{
|
||||
$oSection->nodeAdd('p')->textSet($oReleaseFeature->textGet());
|
||||
}
|
||||
}
|
||||
|
||||
# Return from function and log return values if any
|
||||
return logDebugReturn
|
||||
(
|
||||
$strOperation,
|
||||
{name => 'oDoc', value => $oDoc}
|
||||
);
|
||||
}
|
||||
|
||||
1;
|
@ -234,6 +234,21 @@ sub sectionProcess
|
||||
addNew(HTML_A, undef,
|
||||
{strContent => $strSectionTitle, strRef => "#${strAnchor}"});
|
||||
|
||||
# Add subtitle and subsubtitle if they exist
|
||||
if ($oSection->nodeTest('subtitle'))
|
||||
{
|
||||
$oSectionElement->
|
||||
addNew(HTML_DIV, "section${iDepth}-subtitle",
|
||||
{strContent => $self->processText($oSection->nodeGet('subtitle')->textGet())});
|
||||
}
|
||||
|
||||
if ($oSection->nodeTest('subsubtitle'))
|
||||
{
|
||||
$oSectionElement->
|
||||
addNew(HTML_DIV, "section${iDepth}-subsubtitle",
|
||||
{strContent => $self->processText($oSection->nodeGet('subsubtitle')->textGet())});
|
||||
}
|
||||
|
||||
# Add the section intro if it exists
|
||||
if (defined($oSection->textGet(false)))
|
||||
{
|
||||
|
@ -32,6 +32,7 @@
|
||||
<source key="index"/>
|
||||
<source key="user-guide"/>
|
||||
<source key="reference" type="custom"/>
|
||||
<source key="release" type="custom"/>
|
||||
<source key="backlog"/>
|
||||
<source key="test"/>
|
||||
</source-list>
|
||||
@ -42,6 +43,7 @@
|
||||
<render-source key="user-guide" menu="User Guide"/>
|
||||
<render-source key="configuration" source="reference" menu="Configuration"/>
|
||||
<render-source key="command" source="reference" menu="Commands"/>
|
||||
<render-source key="release" menu="Releases"/>
|
||||
<render-source key="backlog" menu="Backlog"/>
|
||||
</render>
|
||||
|
||||
|
@ -187,6 +187,19 @@ Section
|
||||
margin-bottom: .5em;
|
||||
}
|
||||
|
||||
.section1-subtitle, .section2-subtitle, .section3-subtitle
|
||||
{
|
||||
font-weight: bold;
|
||||
font-size: 16pt;
|
||||
}
|
||||
|
||||
.section1-subsubtitle, .section2-subsubtitle, .section3-subsubtitle
|
||||
{
|
||||
font-style: italic;
|
||||
font-size: 14pt;
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
.section2
|
||||
{
|
||||
margin-top: 1em;
|
||||
@ -226,7 +239,7 @@ Section
|
||||
/*.section-body*/
|
||||
|
||||
/*******************************************************************************
|
||||
Config, Execute, and Code Block Elements
|
||||
Config, Execute, Code Block, Release Elements
|
||||
*******************************************************************************/
|
||||
.section-body-text
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!ELEMENT doc ((intro, changelog)|(config, operation)|(description, variable-list?, cleanup?, section+))>
|
||||
<!ELEMENT doc ((description, intro, changelog)|(config, operation)|(description, variable-list?, cleanup?, section+))>
|
||||
<!ATTLIST doc title CDATA "">
|
||||
<!ATTLIST doc subtitle CDATA "">
|
||||
<!ATTLIST doc toc CDATA "y">
|
||||
@ -110,7 +110,7 @@
|
||||
<!ATTLIST section id CDATA #REQUIRED>
|
||||
<!ATTLIST section keyword CDATA "">
|
||||
<!ATTLIST section depend CDATA "">
|
||||
<!ELEMENT title (#PCDATA|b|i|bi|ul|ol|id|code|file|path|cmd|param|setting|exe|backrest|postgres|br-option|br-setting|
|
||||
<!ELEMENT title (#PCDATA|b|i|bi|ul|ol|id|code|file|path|cmd|setting|exe|backrest|postgres|br-option|br-setting|
|
||||
pg-option|pg-setting|link|user)*>
|
||||
|
||||
<!ELEMENT default (#PCDATA)>
|
||||
@ -150,29 +150,29 @@
|
||||
|
||||
<!ELEMENT table-header (table-column+)>
|
||||
<!ATTLIST table-header width CDATA "">
|
||||
<!ELEMENT table-column (#PCDATA|quote|b|i|id|code|host|file|path|cmd|param|setting|exe|backrest|postgres|br-option|
|
||||
<!ELEMENT table-column (#PCDATA|quote|b|i|id|code|host|file|path|cmd|setting|exe|backrest|postgres|br-option|
|
||||
br-setting|pg-option|pg-setting|link|user)*>
|
||||
<!ATTLIST table-column align CDATA "">
|
||||
<!ATTLIST table-column fill CDATA "">
|
||||
|
||||
<!ELEMENT table-data (table-row+)>
|
||||
<!ELEMENT table-row (table-cell+)>
|
||||
<!ELEMENT table-cell (#PCDATA|quote|b|i|ul|ol|id|code|code-block|host|file|path|cmd|param|setting|exe|backrest|postgres|br-option|
|
||||
<!ELEMENT table-cell (#PCDATA|quote|b|i|ul|ol|id|code|code-block|host|file|path|cmd|setting|exe|backrest|postgres|br-option|
|
||||
br-setting|pg-option|pg-setting|link|user)*>
|
||||
|
||||
<!-- Formatted elements -->
|
||||
<!ELEMENT summary (#PCDATA|quote|b|i|ul|ol|id|code|code-block|host|file|path|cmd|param|setting|exe|backrest|postgres|br-option|
|
||||
<!ELEMENT summary (#PCDATA|quote|b|i|ul|ol|id|code|code-block|host|file|path|cmd|setting|exe|backrest|postgres|br-option|
|
||||
br-setting|pg-option|pg-setting|link|user)*>
|
||||
<!ELEMENT p (#PCDATA|quote|b|i|ul|ol|id|code|code-block|host|file|path|cmd|param|setting|exe|backrest|postgres|br-option|br-setting|
|
||||
<!ELEMENT p (#PCDATA|quote|b|i|ul|ol|id|code|code-block|host|file|path|cmd|setting|exe|backrest|postgres|br-option|br-setting|
|
||||
pg-option|pg-setting|link|user)*>
|
||||
<!ATTLIST p keyword CDATA "">
|
||||
<!ELEMENT text (#PCDATA|quote|b|i|ul|ol|id|code|code-block|host|file|path|cmd|param|setting|exe|backrest|postgres|br-option|
|
||||
<!ELEMENT text (#PCDATA|quote|b|i|ul|ol|id|code|code-block|host|file|path|cmd|setting|exe|backrest|postgres|br-option|
|
||||
br-setting|pg-option|pg-setting|link|user)*>
|
||||
<!ELEMENT i (#PCDATA)>
|
||||
<!ELEMENT b (#PCDATA)>
|
||||
<!ELEMENT ul (li+)>
|
||||
<!ELEMENT ol (li+)>
|
||||
<!ELEMENT li (#PCDATA|quote|b|i|ul|ol|id|code|code-block|host|file|path|cmd|param|setting|exe|backrest|postgres|br-option|
|
||||
<!ELEMENT li (#PCDATA|quote|b|i|ul|ol|id|code|code-block|host|file|path|cmd|setting|exe|backrest|postgres|br-option|
|
||||
br-setting|pg-option|pg-setting|link|user)*>
|
||||
<!ELEMENT id (#PCDATA)>
|
||||
<!ELEMENT code (#PCDATA)>
|
||||
@ -185,7 +185,6 @@
|
||||
<!ELEMENT cmd (#PCDATA)>
|
||||
<!ELEMENT user (#PCDATA)>
|
||||
<!ELEMENT quote (#PCDATA)>
|
||||
<!ELEMENT param (#PCDATA)>
|
||||
<!ELEMENT setting (#PCDATA)>
|
||||
<!ELEMENT br-option (#PCDATA)>
|
||||
<!ELEMENT br-setting (#PCDATA)>
|
||||
|
@ -9,7 +9,6 @@
|
||||
<variable key="github-url-base">{[github-url-root]}/pgbackrest/pgbackrest</variable>
|
||||
<variable key="github-url-master">{[github-url-base]}/blob/master</variable>
|
||||
<variable key="github-url-issues">{[github-url-base]}/issues</variable>
|
||||
<variable key="github-url-change-log">{[github-url-master]}/CHANGELOG.md</variable>
|
||||
<variable key="github-url-release">{[github-url-base]}/archive/release</variable>
|
||||
<variable key="github-url-license">{[github-url-master]}/LICENSE</variable>
|
||||
|
||||
@ -18,6 +17,7 @@
|
||||
<variable key="backrest-page-configuration">configuration.html</variable>
|
||||
<variable key="backrest-page-command">command.html</variable>
|
||||
<variable key="backrest-page-feature-backlog">backlog.html</variable>
|
||||
<variable key="backrest-page-release">release.html</variable>
|
||||
|
||||
<variable key="crunchy-url-base">http://www.crunchydata.com</variable>
|
||||
<variable key="crunchy-url-cbm">{[crunchy-url-base]}/crunchy-backup-manager</variable>
|
||||
@ -138,7 +138,7 @@
|
||||
|
||||
Bug reports should be <link url="{[github-url-issues]}">submitted as issues</link>. Please provide as much information as possible to aid in determining the cause of the problem.
|
||||
|
||||
You will always receive credit in the <link url="{[github-url-change-log]}">change log</link> for your contributions.</p>
|
||||
You will always receive credit in the <link page="{[backrest-page-release]}">release notes</link> for your contributions.</p>
|
||||
</section>
|
||||
|
||||
<section id="support">
|
||||
|
@ -1,8 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE doc SYSTEM "doc.dtd">
|
||||
<doc title="Change Log">
|
||||
<doc title="Releases">
|
||||
<description>The {[project]} Releases detail each version of the software and lists the changes made in each version.</description>
|
||||
<intro>
|
||||
<text></text>
|
||||
<text>Listing of changes with contributor credits for each release of <backrest/>.</text>
|
||||
</intro>
|
||||
|
||||
<changelog>
|
||||
@ -47,10 +48,10 @@
|
||||
<text>Executable filename changed from <file>pg_backrest</file> to <file>pgbackrest</file>.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>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>--link-all</setting> option can be used to restore all links to their original locations. The <setting>--link-map</setting> option can be used to remap a link to a new location.</text>
|
||||
<text>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.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Removed <setting>--tablespace</setting> option and replaced with <setting>--tablespace-map-all</setting> option which should more clearly indicate its function.</text>
|
||||
<text>Removed <setting>{[dash]}-tablespace</setting> option and replaced with <setting>{[dash]}-tablespace-map-all</setting> option which should more clearly indicate its function.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Added <id>detail</id> log level which will output more information than <id>info</id> without being as verbose as <id>debug</id>.</text>
|
||||
@ -60,7 +61,7 @@
|
||||
|
||||
<changelog-release date="2016-04-06" version="0.92" title="Command-line Repository Path Fix">
|
||||
<release-feature-bullet-list>
|
||||
<release-feature><text>Fixed an issue where the master process was passing <setting>--repo-remote-path</setting> instead of <setting>--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>--repo-remote-path</setting> was defined on the command line rather than in <file>pg_backrest.conf</file>. <i>Reported by Jan Wieck</i>.</text></release-feature>
|
||||
<release-feature><text>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>. <i>Reported by Jan Wieck</i>.</text></release-feature>
|
||||
</release-feature-bullet-list>
|
||||
</changelog-release>
|
||||
|
||||
@ -76,7 +77,7 @@
|
||||
<text>Write <id>.info</id> and <id>.manifest</id> files to temp before moving them to their final locations and fsync'ing.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Rename <setting>--no-start-stop</setting> option to <setting>--no-online</setting>.</text>
|
||||
<text>Rename <setting>{[dash]}-no-start-stop</setting> option to <setting>{[dash]}-no-online</setting>.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Static source analysis using Perl-Critic, currently passes on gentle.</text>
|
||||
@ -87,7 +88,7 @@
|
||||
<changelog-release date="2016-02-07" version="0.90" title="9.5 Support, Various Enhancements, and Minor Bug Fixes">
|
||||
<release-feature-bullet-list>
|
||||
<release-feature>
|
||||
<text>Fixed an issue where specifying <setting>--no-archive-check</setting> would throw a configuration error. <i>Reported by Jason O'Donnell</i>.</text>
|
||||
<text>Fixed an issue where specifying <setting>{[dash]}-no-archive-check</setting> would throw a configuration error. <i>Reported by Jason O'Donnell</i>.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>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.</text>
|
||||
@ -99,7 +100,7 @@
|
||||
<text>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.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>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 -- prior versions of <postgres/> could not share a tablespace directory.</text>
|
||||
<text>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 {[dash]}- prior versions of <postgres/> could not share a tablespace directory.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Generate an error when <setting>archive-check=y</setting> but <setting>archive_command</setting> does not execute <file>pg_backrest</file>. <i>Contributed by Jason O'Donnell</i>.</text>
|
||||
@ -108,10 +109,10 @@
|
||||
<text>Improved error message when <setting>repo-path</setting> or <setting>repo-remote-path</setting> does not exist.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Added checks for <setting>--delta</setting> and <setting>--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>--delta</setting> and <setting>--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.</text>
|
||||
<text>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.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>When restore <setting>--set=latest</setting> (the default) the actual backup restored will be output to the log.</text>
|
||||
<text>When restore <setting>{[dash]}-set=latest</setting> (the default) the actual backup restored will be output to the log.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>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.</text>
|
||||
@ -131,13 +132,13 @@
|
||||
<text>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.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Allow restores to be performed on a read-only repository by using <setting>--no-lock</setting> and <setting>--log-level-file=off</setting>. The <setting>--no-lock</setting> option can only be used with restores.</text>
|
||||
<text>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.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Minor styling changes, clarifications and rewording in the user guide.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>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 -- thus ends the gitflow experiment for <backrest/>. It is recommended that any forks get re-forked and clones get re-cloned.</text>
|
||||
<text>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.</text>
|
||||
</release-feature>
|
||||
</release-feature-bullet-list>
|
||||
</changelog-release>
|
||||
@ -148,7 +149,7 @@
|
||||
<text>Added documentation in the user guide for delta restores, expiration, dedicated backup hosts, starting and stopping <backrest/>, and replication.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Fixed an issue where the <cmd>start</cmd>/<cmd>stop</cmd> commands required the <setting>--config</setting> option.</text>
|
||||
<text>Fixed an issue where the <cmd>start</cmd>/<cmd>stop</cmd> commands required the <setting>{[dash]}-config</setting> option.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Fixed an issue where log files were being overwritten instead of appended.</text>
|
||||
@ -197,7 +198,7 @@
|
||||
<text>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.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>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>--target-resume</setting> tests (this functionality has changed in 9.5) and there is no testing yet for <file>.partial</file> WAL segments.</text>
|
||||
<text>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.</text>
|
||||
</release-feature>
|
||||
</release-feature-bullet-list>
|
||||
</changelog-release>
|
||||
@ -211,7 +212,7 @@
|
||||
<text>Fixed an issue where resume and incr/diff would not ensure that the prior backup had the same compression and hardlink settings.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Fixed an issue where a cold backup using <setting>--no-start-stop</setting> could be started on a running <postgres/> cluster without <setting>--force</setting> specified.</text>
|
||||
<text>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.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Fixed an issue where a thread could be started even when none were requested.</text>
|
||||
@ -241,7 +242,7 @@
|
||||
<text>Expiration tests are now synthetic rather than based on actual backups. This will allow development of more advanced expiration features.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>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>--target-resume</setting> tests (this functionality has changed in 9.5) and there is no testing yet for <file>.partial</file> WAL segments.</text>
|
||||
<text>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.</text>
|
||||
</release-feature>
|
||||
</release-feature-bullet-list>
|
||||
</changelog-release>
|
||||
@ -249,7 +250,7 @@
|
||||
<changelog-release date="2015-08-09" version="0.80" title="DBI Support, Stability, and Convenience Features">
|
||||
<release-feature-bullet-list>
|
||||
<release-feature>
|
||||
<text>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 -- <id>json</id> output reported the correct epoch values. <i>Reported by Michael Renner</i>.</text>
|
||||
<text>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. <i>Reported by Michael Renner</i>.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Fixed protocol issue that was preventing ssh errors (especially on connection) from being logged.</text>
|
||||
@ -273,7 +274,7 @@
|
||||
<text>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.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>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>--target-resume</setting> tests (this functionality has changed in 9.5) and there is no testing yet for <file>.partial</file> WAL segments.</text>
|
||||
<text>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.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Major refactoring of the protocol layer to support future development.</text>
|
||||
@ -316,7 +317,7 @@
|
||||
<text>Support for Perl 5.10.1 and OpenSSH 5.3 which are default for CentOS/RHEL 6. <i>Reported by Eric Radman.</i></text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Improved error message when backup is run without <setting>archive_command</setting> set and without <setting>--no-archive-check</setting> specified. <i>Reported by Eric Radman</i>.</text>
|
||||
<text>Improved error message when backup is run without <setting>archive_command</setting> set and without <setting>{[dash]}-no-archive-check</setting> specified. <i>Reported by Eric Radman</i>.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Moved version number out of the <file>VERSION</file> file to <file>Version.pm</file> to better support packaging. <i>Suggested by Michael Renner</i>.</text>
|
||||
@ -382,7 +383,7 @@
|
||||
<text>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.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Resume is now optional. Use the <setting>resume</setting> setting or <param>--no-resume</param> from the command line to disable.</text>
|
||||
<text>Resume is now optional. Use the <setting>resume</setting> setting or <setting>{[dash]}-no-resume</setting> from the command line to disable.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>More info messages during restore. Previously, most of the restore messages were debug level so not a lot was output in the log.</text>
|
||||
@ -433,7 +434,7 @@
|
||||
<text>De/compression is now performed without threads and checksum/size is calculated in stream. That means file checksums are no longer optional.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Added option <param>--no-start-stop</param> to allow backups when Postgres is shut down. If <file>postmaster.pid</file> is present then <param>--force</param> 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.</text>
|
||||
<text>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.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>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.</text>
|
||||
@ -555,5 +556,6 @@
|
||||
</release-feature>
|
||||
</release-feature-bullet-list>
|
||||
</changelog-release>
|
||||
|
||||
</changelog>
|
||||
</doc>
|
@ -325,7 +325,7 @@ eval
|
||||
BackRestDoc::Common::Doc->import();
|
||||
|
||||
# Make sure version number matches the latest release
|
||||
my $strReleaseFile = dirname(dirname($0)) . '/doc/xml/change-log.xml';
|
||||
my $strReleaseFile = dirname(dirname($0)) . '/doc/xml/release.xml';
|
||||
my $oReleaseDoc = new BackRestDoc::Common::Doc($strReleaseFile);
|
||||
|
||||
foreach my $oRelease ($oReleaseDoc->nodeGet('changelog')->nodeList('changelog-release'))
|
||||
|
Loading…
Reference in New Issue
Block a user