pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/databases/py-barman



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed May 28 04:57:01 UTC 2025

Modified Files:
        pkgsrc/databases/py-barman: Makefile PLIST distinfo

Log Message:
py-barman: updated to 3.14.0

3.14.0 (2025-05-15)

Notable changes

- Implementation of GPG encryption for tar backups and WAL files

  Implement GPG encryption of tar backups. Encryption starts at the end of the backup,
  encrypting the backup of PGDATA and tablespaces present in the backup directory.
  Encrypted backup files will have the `.gpg` extension added.

  Barman supports the decryption and restoration of GPG-encrypted backups using a
  passphrase obtained through the new `encryption_passphrase_command` configuration
  option. During the restore process, decrypted files are staged in the `local_staging_path`
  setting on the Barman host, ensuring a reliable and safe restore process.

  New configuration options required for encryption and decryption of backups
  and WAL files needed to be added. The new options are `encryption`,
  `encryption_key_id`, and `encryption_passphrase_command`.

  WAL files are all encrypted with GPG when `encryption = gpg`. This includes
  changing the way that xlogdb records are read and written (maintaining backwards
  compatibility), and a new logic to detect when files are encrypted and the
  encryption process itself.

  Decryption of GPG-encrypted WAL files during the restore process when using the
  get-wal and no-get-wal flags of the barman restore command. This extends the
  functionality added for decrypting backups via the
  `encryption_passphrase_command` configuration option.

  There's a new field in `show-backup` to expose if a backup was encrypted, and
  specifies the encryption method that was used, if any.

  The `barman check` command verifies if the user's encryption settings are
  correctly configured in the Barman server and functioning as expected.

Minor changes

- Allow compression level to be specified for WAL compression in Barman server

  Add a new `compression_level` parameter to the Barman configuration.
  This option accepts a valid integer value or one of the predefined options:
  `low`, `medium`, and `high`. Each option corresponds to a different
  level depending on the compression algorithm chosen.

- Add client-side compression to `barman-wal-archive`

  Client-side compression options have been added to `barman-wal-archive`,
  supporting the same algorithms that are available on a Barman server.
  When enabled, compression is applied on the client side before sending the WAL to
  the Barman server. The `--compression-level` parameter allows specifying a desired
  compression level for the chosen algorithm.

- Add --compression-level parameter to barman-cloud-wal-archive

  A parameter called `compression-level` was added to `barman-cloud-wal-archive`,
  which allows a level to be specified for the compression algorithm in use.

- Add Snappy compression algorithm to Barman server

  The Snappy compression, previously only available in `barman-cloud-wal-archive`, is
  now also available for standard Barman server. As with all other algorithms, it can
  be configured by setting `snappy` in the `compression` configuration parameter.

- Introduce the new `list-processes` sub-command for listing the server processes

  Add a new `list-processes` command that outputs all active subprocesses for
  a Barman server. The command displays each process's PID and task.

- Introduce the new `terminate-process` sub-command for terminating Barman subprocesses

  Add a new `terminate-process` command that allows users to terminate an active
  Barman subprocess for a given server by specifying its task name. Barman will
  terminate the subprocess as long as it belongs to the specified server and it is
  currently active.

- Remove the pin from boto3 version used in cloud scripts

  After thorough investigation of issues with boto3 >= 1.36, we've
  decided to remove the pin that kept the dependency at version
  1.35.

  Both AWS and MinIO object stores work correctly with the latest version, and using
  a version of boto3 that is >= 1.36 ensures the Barman cloud scripts work in a
  FIPS-compliant environment.

Bugfixes

- Ensure minimum redundancy check considers only 'non-incremental backups'

  An issue was reported where the `minimum_redundancy` rule could be violated due to
  the inclusion of incremental backups in the redundancy count. As an example: in a
  scenario where the catalog contained one full backup and two dependent incremental
  backups, and the user had `minimum_redundancy = 2`, the rule was incorrectly
  considered satisfied. As a result, deleting the full backup triggered cascading
  deletion of its incremental dependents, leaving zero backups in the catalog.

  This issue has been fixed by updating the `minimum_redundancy` logic to consider
  only non-incremental backups (i.e. only full, rsync, snapshot). This ensures that
  full backups cannot be deleted if doing so would violate the configured minimum
  redundancy level.

- Fix usage of `barman-wal-restore` with `--keep-compression` using `gzip`, `bzip2`, and `pigz` compression algorithms

  Fix an issue in `barman-wal-restore` where, when trying to restore WALs
  compressed with `gzip`, `bzip2` or `pigz` while having `--keep-compression`
  specified, leading to unexpected errors.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 pkgsrc/databases/py-barman/Makefile
cvs rdiff -u -r1.9 -r1.10 pkgsrc/databases/py-barman/PLIST
cvs rdiff -u -r1.21 -r1.22 pkgsrc/databases/py-barman/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/databases/py-barman/Makefile
diff -u pkgsrc/databases/py-barman/Makefile:1.27 pkgsrc/databases/py-barman/Makefile:1.28
--- pkgsrc/databases/py-barman/Makefile:1.27    Tue Apr 29 20:04:52 2025
+++ pkgsrc/databases/py-barman/Makefile Wed May 28 04:57:01 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.27 2025/04/29 20:04:52 adam Exp $
+# $NetBSD: Makefile,v 1.28 2025/05/28 04:57:01 adam Exp $
 
-DISTNAME=      barman-3.13.3
+DISTNAME=      barman-3.14.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    databases python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=b/barman/}

Index: pkgsrc/databases/py-barman/PLIST
diff -u pkgsrc/databases/py-barman/PLIST:1.9 pkgsrc/databases/py-barman/PLIST:1.10
--- pkgsrc/databases/py-barman/PLIST:1.9        Mon Apr 14 11:09:15 2025
+++ pkgsrc/databases/py-barman/PLIST    Wed May 28 04:57:01 2025
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.9 2025/04/14 11:09:15 adam Exp $
+@comment $NetBSD: PLIST,v 1.10 2025/05/28 04:57:01 adam Exp $
 bin/barman
 bin/barman-cloud-backup
 bin/barman-cloud-backup-delete
@@ -108,6 +108,9 @@ ${PYSITELIB}/barman/copy_controller.pyo
 ${PYSITELIB}/barman/diagnose.py
 ${PYSITELIB}/barman/diagnose.pyc
 ${PYSITELIB}/barman/diagnose.pyo
+${PYSITELIB}/barman/encryption.py
+${PYSITELIB}/barman/encryption.pyc
+${PYSITELIB}/barman/encryption.pyo
 ${PYSITELIB}/barman/exceptions.py
 ${PYSITELIB}/barman/exceptions.pyc
 ${PYSITELIB}/barman/exceptions.pyo
@@ -193,6 +196,7 @@ man/man1/barman-generate-manifest.1
 man/man1/barman-get-wal.1
 man/man1/barman-keep.1
 man/man1/barman-list-files.1
+man/man1/barman-list-processes.1
 man/man1/barman-list-servers.1
 man/man1/barman-list_backups.1
 man/man1/barman-lock-directory-cleanup.1
@@ -209,6 +213,7 @@ man/man1/barman-switch-xlog.1
 man/man1/barman-sync-backup.1
 man/man1/barman-sync-info.1
 man/man1/barman-sync-wals.1
+man/man1/barman-terminate-process.1
 man/man1/barman-verify-backup.1
 man/man1/barman-verify.1
 man/man1/barman-wal-archive.1

Index: pkgsrc/databases/py-barman/distinfo
diff -u pkgsrc/databases/py-barman/distinfo:1.21 pkgsrc/databases/py-barman/distinfo:1.22
--- pkgsrc/databases/py-barman/distinfo:1.21    Tue Apr 29 20:04:52 2025
+++ pkgsrc/databases/py-barman/distinfo Wed May 28 04:57:01 2025
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.21 2025/04/29 20:04:52 adam Exp $
+$NetBSD: distinfo,v 1.22 2025/05/28 04:57:01 adam Exp $
 
-BLAKE2s (barman-3.13.3.tar.gz) = d897a8713301f2405dad0807860ab0d6aaebe5ebbbfd33b1dd4d1b9f14708512
-SHA512 (barman-3.13.3.tar.gz) = 80ffd50f99dd7234dc5ceabc72a0eea2271b87cd0c137597895a2db3f49f075eec9bab729dec836ed458203b40bfb5d2c725bdc31d44fbdfd06a0d1dee912d08
-Size (barman-3.13.3.tar.gz) = 419018 bytes
+BLAKE2s (barman-3.14.0.tar.gz) = b4da940239fbf5ef406f34fd92f2847152e4d8e9f559043f05776e24ae2facc2
+SHA512 (barman-3.14.0.tar.gz) = 7f106e6cff33ae2208c7f262e728e268877d52a7149d6b98e5af543b177fdd0f48ae3b683b777d66ad38a4fdbb72ea33a84517cbf448fecd4d23502a12be77e5
+Size (barman-3.14.0.tar.gz) = 437078 bytes
 SHA1 (patch-barman_utils.py) = 0f93835a814bdd41c999dcebb34719312a74bd94



Home | Main Index | Thread Index | Old Index