Skip to content

Commit

Permalink
py-barman: Update to 2.11.
Browse files Browse the repository at this point in the history
Version 2.11 - 9 Jul 2020

-   Introduction of the barman-cli-cloud package that contains all cloud
    related utilities.

-   Add barman-cloud-wal-restore to restore a WAL file previously
    archived with barman-cloud-wal-archive from an object store

-   Add barman-cloud-restore to restore a backup previously taken with
    barman-cloud-backup from an object store

-   Add barman-cloud-backup-list to list backups taken with
    barman-cloud-backup in an object store

-   Add support for arbitrary archive size for barman-cloud-backup

-   Add support for --endpoint-url option to cloud utilities

-   Remove strict superuser requirement for PG 10+ (by Kaarel Moppel)

-   Add --log-level runtime option for barman to override default log
    level for a specific command

-   Support for PostgreSQL 13

-   Bug fixes:

    -   Suppress messages and warning with SSH connections in barman-cli
        (GH-257)
    -   Fix a race condition when retrieving uploaded parts in
        barman-cloud-backup (GH-259)
    -   Close the PostgreSQL connection after a backup (GH-258)
    -   Check for uninitialized replication slots in receive-wal --reset
        (GH-260)
    -   Ensure that begin_wal is valorised before acting on it (GH-262)
    -   Fix bug in XLOG/WAL arithmetic with custom segment size (GH-287)
    -   Fix rsync compatibility error with recent rsync
    -   Fix PostgreSQLClient version parsing
    -   Fix PostgreSQL exception handling with non ASCII messages
    -   Ensure each postgres connection has an empty search_path
    -   Avoid connecting to PostgreSQL while reading a backup.info file

If you are using already barman-cloud-wal-archive or barman-cloud-backup
installed via RPM/Apt package and you are upgrading your system, you
must install the barman-cli-cloud package. All cloud related tools are
now part of the barman-cli-cloud package, including
barman-cloud-wal-archive and barman-cloud-backup that were previosly
shipped with barman-cli. The reason is complex dependency management of
the boto3 library, which is a requirement for the cloud utilities.

Version 2.10 - 5 Dec 2019

-   Pull .partial WAL files with get-wal and barman-wal-restore,
    allowing restore_command in a recovery scenario to fetch a partial
    WAL file's content from the Barman server. This feature simplifies
    and enhances RPO=0 recovery operations.

-   Store the PostgreSQL system identifier in the server directory and
    inside the backup information file. Improve check command to verify
    the consistency of the system identifier with active connections
    (standard and replication) and data on disk.

-   A new script called barman-cloud-wal-archive has been added to the
    barman-cli package to directly ship WAL files from PostgreSQL (using
    archive_command) to cloud object storage services that are
    compatible with AWS S3. It supports encryption and compression.

-   A new script called barman-cloud-backup has been added to the
    barman-cli package to directly ship base backups from a local
    PostgreSQL server to cloud object storage services that are
    compatible with AWS S3. It supports encryption, parallel upload,
    compression.

-   Automated creation of replication slots through the server/global
    option create_slot. When set to auto, Barman creates the replication
    slot, in case streaming_archiver is enabled and slot_name is
    defined. The default value is manual for back-compatibility.

-   Add '-w/--wait' option to backup command, making Barman wait for all
    required WAL files to be archived before considering the backup
    completed. Add also the --wait-timeout option (default 0, no
    timeout).

-   Redact passwords from Barman output, in particular from
    barman diagnose (InfoSec)

-   Improve robustness of receive-wal --reset command, by verifying that
    the last partial file is aligned with the current location or, if
    present, with replication slot's.

-   Documentation improvements

-   Bug fixes:

    -   Wrong string matching operation when excluding tablespaces
        inside PGDATA (GH-245)
    -   Minor fixes in WAL delete hook scripts (GH-240)
    -   Fix PostgreSQL connection aliveness check (GH-239)

Version 2.9 - 1 Aug 2019

-   Transparently support PostgreSQL 12, by supporting the new way of
    managing recovery and standby settings through GUC options and
    signal files (recovery.signal and standby.signal)

-   Add --bwlimit command line option to set bandwidth limitation for
    backup and recover commands

-   Ignore WAL archive failure for check command in case the latest
    backup is WAITING_FOR_WALS

-   Add --target-lsn option to set recovery target Log Sequence Number
    for recover command with PostgreSQL 10 or higher

-   Add --spool-dir option to barman-wal-restore so that users can
    change the spool directory location from the default, avoiding
    conflicts in case of multiple PostgreSQL instances on the same
    server (thanks to Drazen Kacar).

-   Rename barman_xlog directory to barman_wal

-   JSON output writer to export command output as JSON objects and
    facilitate integration with external tools and systems (thanks to
    Marcin Onufry Hlybin). Experimental in this release.

Bug fixes:

-   replication-status doesn’t show streamers with no slot (GH-222)

-   When checking that a connection is alive (“SELECT 1” query),
    preserve the status of the PostgreSQL connection (GH-149). This
    fixes those cases of connections that were terminated due to
    idle-in-transaction timeout, causing concurrent backups to fail.

Version 2.8 - 17 May 2019

-   Add support for reuse_backup in geo-redundancy for incremental
    backup copy in passive nodes

-   Improve performance of rsync based copy by using strptime instead of
    the more generic dateutil.parser (#210)

-   Add ‘--test’ option to barman-wal-archive and barman-wal-restore to
    verify the connection with the Barman server

-   Complain if backup_options is not explicitly set, as the future
    default value will change from exclusive_backup to concurrent_backup
    when PostgreSQL 9.5 will be declared EOL by the PGDG

-   Display additional settings in the show-server and diagnose
    commands: archive_timeout, data_checksums, hot_standby,
    max_wal_senders, max_replication_slots and wal_compression.

-   Merge the barman-cli project in Barman

-   Bug fixes:

    -   Fix encoding error in get-wal on Python 3 (Jeff Janes, #221)
    -   Fix exclude_and_protect_filter (Jeff Janes, #217)
    -   Remove spurious message when resetting WAL (Jeff Janes, #215)
    -   Fix sync-wals error if primary has WALs older than the first
        backup
    -   Support for double quotes in synchronous_standby_names setting

-   Minor changes:

    -   Improve messaging of check --nagios for inactive servers
    -   Log remote SSH command with recover command
    -   Hide logical decoding connections in replication-status command

This release officially supports Python 3 and deprecates Python 2 (which
might be discontinued in future releases).

PostgreSQL 9.3 and older is deprecated from this release of Barman.
Support for backup from standby is now limited to PostgreSQL 9.4 or
higher and to WAL shipping from the standby (please refer to the
documentation for details).

Version 2.7 - 21 Mar 2019

-   Fix error handling during the parallel backup. Previously an
    unrecoverable error during the copy could have corrupted the barman
    internal state, requiring a manual kill of barman process with
    SIGTERM and a manual cleanup of the running backup in PostgreSQL.
    (GH#199)

-   Fix support of UTF-8 characters in input and output (GH#194 and
    GH#196)

-   Ignore history/backup/partial files for first sync of geo-redundancy
    (GH#198)

-   Fix network failure with geo-redundancy causing cron to break
    (GH#202)

-   Fix backup validation in PostgreSQL older than 9.2

-   Various documentation fixes

Version 2.6 - 4 Feb 2019

-   Add support for Geographical redundancy, introducing 3 new commands:
    sync-info, sync-backup and sync-wals. Geo-redundancy allows a Barman
    server to use another Barman server as data source instead of a
    PostgreSQL server.

-   Add put-wal command that allows Barman to safely receive WAL files
    via PostgreSQL's archive_command using the barman-wal-archive script
    included in barman-cli

-   Add ANSI colour support to check command

-   Minor fixes:

    -   Fix switch-wal on standby with an empty WAL directory
    -   Honour archiver locking in wait_for_wal method
    -   Fix WAL compression detection algorithm
    -   Fix current_action in concurrent stop backup errors
    -   Do not treat lock file busy as an error when validating a backup
  • Loading branch information
jperkin committed Aug 26, 2020
1 parent 401389c commit 49c52b8
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 8 deletions.
5 changes: 3 additions & 2 deletions databases/py-barman/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.14 2020/05/27 19:37:38 wiz Exp $
# $NetBSD: Makefile,v 1.15 2020/08/26 10:20:19 jperkin Exp $

DISTNAME= barman-2.5
DISTNAME= barman-2.11
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_PYPI:=b/barman/}
Expand All @@ -12,6 +12,7 @@ LICENSE= gnu-gpl-v3

DEPENDS+= ${PYPKGPREFIX}-argcomplete-[0-9]*:../../devel/py-argcomplete
DEPENDS+= ${PYPKGPREFIX}-argh>=0.21.2:../../devel/py-argh
DEPENDS+= ${PYPKGPREFIX}-boto3-[0-9]*:../../net/py-boto3
DEPENDS+= ${PYPKGPREFIX}-dateutil-[0-9]*:../../time/py-dateutil
DEPENDS+= ${PYPKGPREFIX}-psycopg2>=2.4.2:../../databases/py-psycopg2
DEPENDS+= rsync-[0-9]*:../../net/rsync
Expand Down
47 changes: 46 additions & 1 deletion databases/py-barman/PLIST
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
@comment $NetBSD: PLIST,v 1.4 2018/08/14 14:47:55 adam Exp $
@comment $NetBSD: PLIST,v 1.5 2020/08/26 10:20:19 jperkin Exp $
bin/barman
bin/barman-cloud-backup
bin/barman-cloud-backup-list
bin/barman-cloud-restore
bin/barman-cloud-wal-archive
bin/barman-cloud-wal-restore
bin/barman-wal-archive
bin/barman-wal-restore
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
${PYSITELIB}/${EGG_INFODIR}/requires.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/barman/__init__.py
Expand All @@ -17,6 +25,33 @@ ${PYSITELIB}/barman/backup_executor.pyo
${PYSITELIB}/barman/cli.py
${PYSITELIB}/barman/cli.pyc
${PYSITELIB}/barman/cli.pyo
${PYSITELIB}/barman/clients/__init__.py
${PYSITELIB}/barman/clients/__init__.pyc
${PYSITELIB}/barman/clients/__init__.pyo
${PYSITELIB}/barman/clients/cloud_backup.py
${PYSITELIB}/barman/clients/cloud_backup.pyc
${PYSITELIB}/barman/clients/cloud_backup.pyo
${PYSITELIB}/barman/clients/cloud_backup_list.py
${PYSITELIB}/barman/clients/cloud_backup_list.pyc
${PYSITELIB}/barman/clients/cloud_backup_list.pyo
${PYSITELIB}/barman/clients/cloud_restore.py
${PYSITELIB}/barman/clients/cloud_restore.pyc
${PYSITELIB}/barman/clients/cloud_restore.pyo
${PYSITELIB}/barman/clients/cloud_walarchive.py
${PYSITELIB}/barman/clients/cloud_walarchive.pyc
${PYSITELIB}/barman/clients/cloud_walarchive.pyo
${PYSITELIB}/barman/clients/cloud_walrestore.py
${PYSITELIB}/barman/clients/cloud_walrestore.pyc
${PYSITELIB}/barman/clients/cloud_walrestore.pyo
${PYSITELIB}/barman/clients/walarchive.py
${PYSITELIB}/barman/clients/walarchive.pyc
${PYSITELIB}/barman/clients/walarchive.pyo
${PYSITELIB}/barman/clients/walrestore.py
${PYSITELIB}/barman/clients/walrestore.pyc
${PYSITELIB}/barman/clients/walrestore.pyo
${PYSITELIB}/barman/cloud.py
${PYSITELIB}/barman/cloud.pyc
${PYSITELIB}/barman/cloud.pyo
${PYSITELIB}/barman/command_wrappers.py
${PYSITELIB}/barman/command_wrappers.pyc
${PYSITELIB}/barman/command_wrappers.pyo
Expand Down Expand Up @@ -53,6 +88,9 @@ ${PYSITELIB}/barman/output.pyo
${PYSITELIB}/barman/postgres.py
${PYSITELIB}/barman/postgres.pyc
${PYSITELIB}/barman/postgres.pyo
${PYSITELIB}/barman/postgres_plumbing.py
${PYSITELIB}/barman/postgres_plumbing.pyc
${PYSITELIB}/barman/postgres_plumbing.pyo
${PYSITELIB}/barman/process.py
${PYSITELIB}/barman/process.pyc
${PYSITELIB}/barman/process.pyo
Expand Down Expand Up @@ -80,6 +118,13 @@ ${PYSITELIB}/barman/wal_archiver.pyo
${PYSITELIB}/barman/xlog.py
${PYSITELIB}/barman/xlog.pyc
${PYSITELIB}/barman/xlog.pyo
man/man1/barman-cloud-backup-list.1
man/man1/barman-cloud-backup.1
man/man1/barman-cloud-restore.1
man/man1/barman-cloud-wal-archive.1
man/man1/barman-cloud-wal-restore.1
man/man1/barman-wal-archive.1
man/man1/barman-wal-restore.1
man/man1/barman.1
man/man5/barman.5
share/examples/barman/barman.conf
10 changes: 5 additions & 5 deletions databases/py-barman/distinfo
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$NetBSD: distinfo,v 1.10 2019/01/04 22:20:41 adam Exp $
$NetBSD: distinfo,v 1.11 2020/08/26 10:20:19 jperkin Exp $

SHA1 (barman-2.5.tar.gz) = 6712a2a5c7eef5c7561e05856ff60b15522ed1b1
RMD160 (barman-2.5.tar.gz) = 33e5bb20e49b971ca331e839da634a0ff835be71
SHA512 (barman-2.5.tar.gz) = 0f081475ca72910b6eff308ef995241c2bc5c206c035097b3cceb7419849d290d96cc80ea625119164b2655dfc3518759a425f3127d5506156042da60e782cf7
Size (barman-2.5.tar.gz) = 1002958 bytes
SHA1 (barman-2.11.tar.gz) = e2b3d7e54404d858903d67caf4250afe7fae9830
RMD160 (barman-2.11.tar.gz) = 19d2c539d9e6543e1c56c3cabac5d55481372657
SHA512 (barman-2.11.tar.gz) = 19862e7a50e45ec48c2e6e12aa18cdc262e5114d243d24f5b9229347a6fd9e3fe79a10a2c4a9ac14fe4c283c59c992b3b8a5409371a5b780b8c5ab20eec1ee96
Size (barman-2.11.tar.gz) = 1260434 bytes
SHA1 (patch-barman_utils.py) = 0f93835a814bdd41c999dcebb34719312a74bd94

0 comments on commit 49c52b8

Please sign in to comment.