mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-14 10:13:05 +02:00
be77136eae
Bug Fixes: * Fixed an issue where a tablespace link that referenced another link would not produce an error, but instead skip the tablespace entirely. (Reported by Michael Vitale.) * Fixed an issue where options that should not allow multiple values could be specified multiple times in pgbackrest.conf without an error being raised. (Reported by Michael Vitale.) * Fixed an issue where the protocol-timeout option was not automatically increased when the db-timeout option was increased. (Reported by Todd Vernick.) Features: * 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. * More flexible configuration for databases. Master and standby can both be configured on the backup server and pgBackRest 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. * Exclude directories during backup that are cleaned, recreated, or zeroed by PostgreSQL at startup. These include pgsql_tmp and pg_stat_tmp. The postgresql.auto.conf.tmp file is now excluded in addition to files that were already excluded: backup_label.old, postmaster.opts, postmaster.pid, recovery.conf, recovery.done. * Experimental support for non-exclusive backups in PostgreSQL 9.6 beta4. Changes to the control/catalog/WAL versions in subsequent betas may break compatibility but pgBackRest will be updated with each release to keep pace. Refactoring: * Simplify protocol creation and identifying which host is local/remote. * Removed all OP_* function constants that were used only for debugging, not in the protocol, and replaced with __PACKAGE__. * Improvements in Db module: separated out connect() function, allow executeSql() calls that do not return data, and improve error handling. * Improve error message for links that reference links in manifest build. * Added hints to error message when relative paths are detected in archive-push or archive-get. * Improve backup log messages to indicate which host the files are being copied from.
50 lines
2.2 KiB
Perl
50 lines
2.2 KiB
Perl
####################################################################################################################################
|
|
# VERSION MODULE
|
|
#
|
|
# Contains BackRest version and format numbers.
|
|
####################################################################################################################################
|
|
package pgBackRest::Version;
|
|
|
|
use strict;
|
|
use warnings FATAL => qw(all);
|
|
|
|
use Cwd qw(abs_path);
|
|
use Exporter qw(import);
|
|
our @EXPORT = qw();
|
|
|
|
# Project Name
|
|
#
|
|
# Defines the official project name.
|
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
|
use constant BACKREST_NAME => 'pgBackRest';
|
|
push @EXPORT, qw(BACKREST_NAME);
|
|
use constant BACKREST_EXE => lc(BACKREST_NAME);
|
|
push @EXPORT, qw(BACKREST_EXE);
|
|
use constant BACKREST_CONF => BACKREST_EXE . '.conf';
|
|
push @EXPORT, qw(BACKREST_CONF);
|
|
|
|
# Binary location
|
|
#
|
|
# Stores the exe location.
|
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
|
use constant BACKREST_BIN => abs_path($0);
|
|
push @EXPORT, qw(BACKREST_BIN);
|
|
|
|
# BackRest Version Number
|
|
#
|
|
# Defines the current version of the BackRest executable. The version number is used to track features but does not affect what
|
|
# repositories or manifests can be read - that's the job of the format number.
|
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
|
use constant BACKREST_VERSION => '1.06';
|
|
push @EXPORT, qw(BACKREST_VERSION);
|
|
|
|
# Format Format Number
|
|
#
|
|
# Defines format for info and manifest files as well as on-disk structure. If this number changes then the repository will be
|
|
# invalid unless migration functions are written.
|
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
|
use constant BACKREST_FORMAT => 5;
|
|
push @EXPORT, qw(BACKREST_FORMAT);
|
|
|
|
1;
|