2015-06-22 19:11:07 +02:00
|
|
|
####################################################################################################################################
|
|
|
|
# VERSION MODULE
|
|
|
|
#
|
|
|
|
# Contains BackRest version and format numbers.
|
|
|
|
####################################################################################################################################
|
2016-04-14 15:30:54 +02:00
|
|
|
package pgBackRest::Version;
|
2015-06-22 19:11:07 +02:00
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings FATAL => qw(all);
|
|
|
|
|
2016-08-24 18:39:27 +02:00
|
|
|
use Cwd qw(abs_path);
|
2015-06-22 19:11:07 +02:00
|
|
|
use Exporter qw(import);
|
2015-08-29 20:20:46 +02:00
|
|
|
our @EXPORT = qw();
|
2015-06-22 19:11:07 +02:00
|
|
|
|
2016-04-14 15:30:54 +02:00
|
|
|
# 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);
|
2016-06-24 14:12:58 +02:00
|
|
|
use constant BACKREST_CONF => BACKREST_EXE . '.conf';
|
|
|
|
push @EXPORT, qw(BACKREST_CONF);
|
2016-04-14 15:30:54 +02:00
|
|
|
|
2016-08-24 18:39:27 +02:00
|
|
|
# Binary location
|
|
|
|
#
|
|
|
|
# Stores the exe location.
|
|
|
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
use constant BACKREST_BIN => abs_path($0);
|
|
|
|
push @EXPORT, qw(BACKREST_BIN);
|
|
|
|
|
2015-06-22 19:11:07 +02:00
|
|
|
# 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.
|
|
|
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
2017-08-25 22:47:47 +02:00
|
|
|
use constant BACKREST_VERSION => '1.23dev';
|
2016-06-27 02:53:45 +02:00
|
|
|
push @EXPORT, qw(BACKREST_VERSION);
|
2015-06-22 19:11:07 +02:00
|
|
|
|
|
|
|
# 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.
|
|
|
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
2016-06-27 02:53:45 +02:00
|
|
|
use constant BACKREST_FORMAT => 5;
|
|
|
|
push @EXPORT, qw(BACKREST_FORMAT);
|
2015-06-22 19:11:07 +02:00
|
|
|
|
|
|
|
1;
|