From 5f468c42616d7edd5f0a7a15abb382aece79335f Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Mon, 4 Aug 2025 21:41:19 -0700 Subject: [PATCH] Use borg compact --dry-run in Borg 1.2.9+. --- NEWS | 2 +- borgmatic/borg/feature.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index f119c4c3..fa620f83 100644 --- a/NEWS +++ b/NEWS @@ -4,7 +4,7 @@ use. * When running tests, use Ruff for faster and more comprehensive code linting and formatting, replacing Flake8, Black, isort, etc. - * Switched from pipx to uv for installing development tools, and added tox-uv for speeding up test + * Switch from pipx to uv for installing development tools, and added tox-uv for speeding up test environment creation. See the developer documentation for more information: https://torsion.org/borgmatic/docs/how-to/develop-on-borgmatic/ diff --git a/borgmatic/borg/feature.py b/borgmatic/borg/feature.py index 32d9d1b2..380786cf 100644 --- a/borgmatic/borg/feature.py +++ b/borgmatic/borg/feature.py @@ -36,7 +36,7 @@ FEATURE_TO_MINIMUM_BORG_VERSION = { Feature.EXCLUDED_FILES_MINUS: parse('2.0.0b5'), # --list --filter uses "-" for excludes Feature.ARCHIVE_SERIES: parse('2.0.0b11'), # identically named archives form a series Feature.NO_PRUNE_STATS: parse('2.0.0b10'), # prune --stats is not available - Feature.DRY_RUN_COMPACT: parse('1.4.1'), # borg compact --dry-run support + Feature.DRY_RUN_COMPACT: parse('1.2.9'), # borg compact --dry-run support }