Package: borgmatic
Version: 1.9.3-0.1
Severity: normal
X-Debbugs-Cc: deb...@rocketjump.eu

Hi,

I recently upgraded from bookworm to trixie. To upgrade the config, I dropped
the `location:`, `storage:`, and `hooks:` parameters and put the respective keys
to the top-level. Running my first full system backup, I noticed all my exclude
patterns are ignored. I did a sanity check, if the key is at the wrong level
borgmatic will error out.

I have a shell script that creates LVM snapshots of my system LVs, and mount
those under /mnt/tmp. It then runs
`borgmatic -v1 create --progress --stats`
and I see that some of the large files in /mnt/tmp/home/randall/Downloads/ get
backed up. This should not be the case, as I have `working_directory: /mnt/tmp/`
set, and the relevant exclude pattern is `sh:home/*/Downloads/`.

Please advise on how to further debug this. This at minimum looks like a
regression that needs to be documented in the NEWS.

Full config of /etc/borgmatic.d/complete_system.yaml below:

----------------->8----------------->8------------------->8------------
archive_name_format: '{hostname}_{now:%Y-%m-%dT%H:%M%z}'
atime: false
before_actions:
- findmnt /mnt/target > /dev/null || exit 75
borg_cache_directory: /mnt/target/borgbackup_cache_workstation
exclude_caches: true
exclude_patterns:
- sh:dev/
- sh:home/*/.android/
- sh:home/*/.ansible/
- sh:home/*/.bitcoin/blocks/
- sh:home/*/.bitcoin/chainstate/
- sh:home/*/.cache/
- sh:home/*/.ccache/
- sh:home/*/.kitchen/cache/
- sh:home/*/.mozilla/firefox/*/Cache/
- sh:home/*/.mythtv/*cache/
- sh:home/*/.perl5/perlbrew/build/
- sh:home/*/.thumbnails/
- sh:home/*/.thunderbird/*/Cache/
- sh:home/*/.vagrant.d/boxes/
- sh:home/*/.var/app/*/cache/
- sh:home/*/Android*/
- sh:home/*/Desktop/*.avi
- sh:home/*/Documents/ISO/
- sh:home/*/Downloads/
- sh:home/*/Music/
- sh:home/*/Podcasts/
- sh:home/*/Source/
- sh:home/*/VirtualBox VMs/
- sh:home/*/chroots/
- sh:home/*/core
- sh:home/*/cowdir/
- sh:home/cowdir/
- sh:home/libvirt/
- sh:home/libvirt/ISO/
- sh:home/pbuilder/
- sh:home/randall/Coding/Debian/logs/
- sh:home/randall_old/
- sh:home/saito_root/
- sh:home/schroot/
- sh:lost+found/
- sh:proc/
- sh:root/.ansible/
- sh:root/.cache/
- sh:srv/chroot/
- sh:sys/
- sh:tmp/
- sh:var/cache/
- sh:var/lib/apt/lists/
- sh:var/lib/docker/
- sh:var/lib/flatpak/
- sh:var/lib/libvirt/
- sh:var/lib/lxc/
- sh:var/lib/postgresql/
- sh:var/lib/sbuild/
- sh:var/lib/schroot/
- sh:var/tmp/
flags: false
match_archives: "*"
relocated_repo_access_is_ok: true
repositories:
-   path: /mnt/target/borgbackup_workstation
source_directories:
#- .
- home/randall/
unknown_unencrypted_repo_access_is_ok: true
working_directory: /mnt/tmp/
----------------->8----------------->8------------------->8------------

Regards,
Lee

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.12-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages borgmatic depends on:
ii  borgbackup           1.4.0-4+b1
ii  python3              3.13.1-2
ii  python3-colorama     0.4.6-4
ii  python3-jsonschema   4.19.2-6
ii  python3-packaging    24.2-1
ii  python3-requests     2.32.3+dfsg-1
ii  python3-ruamel.yaml  0.18.10+ds-1

borgmatic recommends no packages.

Versions of packages borgmatic suggests:
pn  apprise  <none>

-- no debconf information

Reply via email to