1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-08-10 22:21:39 +02:00

v1.21: Improved Info Output and SSH Port Option

Bug Fixes:

* The archive_status directory is now recreated on restore to support PostgreSQL 8.3 which does not recreate it automatically like more recent versions do. (Reported by Stephen Frost.)
* Fixed an issue that could cause the empty archive directory for an old PostgreSQL version to be left behind after a stanza-upgrade. (Fixed by Cynthia Shang.)

Features:

* Modified the info command (both text and JSON output) to display the archive ID and minimum/maximum WAL currently present in the archive for the current and prior, if any, database cluster version. (Contributed by Cynthia Shang.)
* Added --backup-ssh-port and --db-ssh-port options to support non-default SSH ports. (Contributed by Cynthia Shang.)

Refactoring:

* Retry when S3 returns an internal error (500).
* Add bIgnoreMissing parameter to Local->manifest().
This commit is contained in:
David Steele
2017-08-08 18:09:07 -04:00
parent 038d47bcc0
commit cbc026418c
7 changed files with 510 additions and 407 deletions

View File

@@ -6,7 +6,7 @@ pgBackRest aims to be a simple, reliable backup and restore system that can seam
Instead of relying on traditional backup tools like tar and rsync, pgBackRest implements all backup features internally and uses a custom protocol for communicating with remote systems. Removing reliance on tar and rsync allows for better solutions to database-specific backup challenges. The custom remote protocol allows for more flexibility and limits the types of connections that are required to perform a backup which increases security.
pgBackRest [v1.20](https://github.com/pgbackrest/pgbackrest/releases/tag/release/1.20) is the current stable release. Release notes are on the [Releases](http://www.pgbackrest.org/release.html) page.
pgBackRest [v1.21](https://github.com/pgbackrest/pgbackrest/releases/tag/release/1.21) is the current stable release. Release notes are on the [Releases](http://www.pgbackrest.org/release.html) page.
## Features

File diff suppressed because it is too large Load Diff

View File

@@ -163,7 +163,7 @@
</contributor-list>
<release-list>
<release date="XXXX-XX-XX" version="1.21dev" title="UNDER DEVELOPMENT">
<release date="2017-08-08" version="1.21" title="Improved Info Output and SSH Port Option">
<release-core-list>
<release-bug-list>
<release-item>

View File

@@ -137,6 +137,17 @@ my $oConfigHelpData =
"When backing up to a locally mounted network filesystem this setting is not required."
},
# BACKUP-SSH-PORT Option Help
#---------------------------------------------------------------------------------------------------------------------------
'backup-ssh-port' =>
{
section => 'repository',
summary =>
"Backup server SSH port when backup-host is set.",
description =>
"Use this option to specify a non-default SSH port for the backup server."
},
# BACKUP-STANDBY Option Help
#---------------------------------------------------------------------------------------------------------------------------
'backup-standby' =>
@@ -341,6 +352,17 @@ my $oConfigHelpData =
"directory was explicitly modified with the unix_socket_directory setting in postgressql.conf."
},
# DB-SSH-PORT Option Help
#---------------------------------------------------------------------------------------------------------------------------
'db-ssh-port' =>
{
section => 'stanza',
summary =>
"Database server SSH port when db-host is set.",
description =>
"Use this option to specify a non-default SSH port for a database server."
},
# DB-TIMEOUT Option Help
#---------------------------------------------------------------------------------------------------------------------------
'db-timeout' =>
@@ -905,6 +927,7 @@ my $oConfigHelpData =
'backup-cmd' => 'section',
'backup-config' => 'section',
'backup-host' => 'section',
'backup-ssh-port' => 'section',
'backup-user' => 'section',
'buffer-size' => 'section',
'cmd-ssh' => 'section',
@@ -954,6 +977,7 @@ my $oConfigHelpData =
'backup-cmd' => 'section',
'backup-config' => 'section',
'backup-host' => 'section',
'backup-ssh-port' => 'section',
'backup-user' => 'section',
'buffer-size' => 'section',
'cmd-ssh' => 'section',
@@ -963,6 +987,7 @@ my $oConfigHelpData =
'config' => 'default',
'db-host' => 'section',
'db-path' => 'section',
'db-ssh-port' => 'section',
'lock-path' => 'section',
'log-level-console' => 'section',
'log-level-file' => 'section',
@@ -1017,6 +1042,7 @@ my $oConfigHelpData =
'db-path' => 'section',
'db-port' => 'section',
'db-socket-path' => 'section',
'db-ssh-port' => 'section',
'db-timeout' => 'section',
'db-user' => 'section',
@@ -1127,6 +1153,7 @@ my $oConfigHelpData =
'backup-cmd' => 'section',
'backup-config' => 'section',
'backup-host' => 'section',
'backup-ssh-port' => 'section',
'backup-standby' => 'section',
'backup-user' => 'section',
'buffer-size' => 'section',
@@ -1140,6 +1167,7 @@ my $oConfigHelpData =
'db-path' => 'section',
'db-port' => 'section',
'db-socket-path' => 'section',
'db-ssh-port' => 'section',
'db-timeout' => 'section',
'db-user' => 'section',
'log-level-console' => 'section',
@@ -1193,6 +1221,7 @@ my $oConfigHelpData =
'db-cmd' => 'section',
'db-config' => 'section',
'db-host' => 'section',
'db-ssh-port' => 'section',
'lock-path' => 'section',
'log-level-console' => 'section',
'log-level-file' => 'section',
@@ -1251,6 +1280,7 @@ my $oConfigHelpData =
'backup-cmd' => 'section',
'backup-config' => 'section',
'backup-host' => 'section',
'backup-ssh-port' => 'section',
'backup-user' => 'section',
'buffer-size' => 'section',
'cmd-ssh' => 'section',
@@ -1307,6 +1337,7 @@ my $oConfigHelpData =
'backup-cmd' => 'section',
'backup-config' => 'section',
'backup-host' => 'section',
'backup-ssh-port' => 'section',
'backup-user' => 'section',
'buffer-size' => 'section',
'cmd-ssh' => 'section',
@@ -1465,6 +1496,7 @@ my $oConfigHelpData =
'backup-cmd' => 'section',
'backup-config' => 'section',
'backup-host' => 'section',
'backup-ssh-port' => 'section',
'backup-standby' => 'section',
'backup-user' => 'section',
'buffer-size' => 'section',
@@ -1478,6 +1510,7 @@ my $oConfigHelpData =
'db-path' => 'section',
'db-port' => 'section',
'db-socket-path' => 'section',
'db-ssh-port' => 'section',
'db-timeout' => 'section',
'db-user' => 'section',
@@ -1543,6 +1576,7 @@ my $oConfigHelpData =
'backup-cmd' => 'section',
'backup-config' => 'section',
'backup-host' => 'section',
'backup-ssh-port' => 'section',
'backup-standby' => 'section',
'buffer-size' => 'section',
'cmd-ssh' => 'section',
@@ -1555,6 +1589,7 @@ my $oConfigHelpData =
'db-path' => 'section',
'db-port' => 'section',
'db-socket-path' => 'section',
'db-ssh-port' => 'section',
'db-timeout' => 'section',
'db-user' => 'section',
'lock-path' => 'section',
@@ -1605,12 +1640,14 @@ my $oConfigHelpData =
'backup-cmd' => 'section',
'backup-config' => 'section',
'backup-host' => 'section',
'backup-ssh-port' => 'section',
'backup-user' => 'section',
'cmd-ssh' => 'section',
'config' => 'default',
'db-cmd' => 'section',
'db-config' => 'section',
'db-host' => 'section',
'db-ssh-port' => 'section',
'lock-path' => 'section',
'log-level-console' => 'section',
'log-level-file' => 'section',
@@ -1649,12 +1686,14 @@ my $oConfigHelpData =
'backup-cmd' => 'section',
'backup-config' => 'section',
'backup-host' => 'section',
'backup-ssh-port' => 'section',
'backup-user' => 'section',
'cmd-ssh' => 'section',
'config' => 'default',
'db-cmd' => 'section',
'db-config' => 'section',
'db-host' => 'section',
'db-ssh-port' => 'section',
# FORCE Option Help
#-------------------------------------------------------------------------------------------------------------------

View File

@@ -35,7 +35,7 @@ use constant BACKREST_BIN => abs_path(
# 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.21dev';
use constant BACKREST_VERSION => '1.21';
push @EXPORT, qw(BACKREST_VERSION);
# Format Format Number

View File

@@ -11,7 +11,7 @@ use AutoLoader;
our @ISA = qw(Exporter);
# Library version (add .999 during development)
our $VERSION = '1.21.999';
our $VERSION = '1.21';
sub libCVersion {return $VERSION};

View File

@@ -85,6 +85,7 @@ Repository Options:
--backup-config pgBackRest backup host configuration file
[default=/etc/pgbackrest.conf]
--backup-host backup host when operating remotely via SSH
--backup-ssh-port backup server SSH port when backup-host is set
--backup-user backup host user when backup-host is set
[default=backrest]
--repo-path repository path where WAL segments and backups