Dan Helfman
f60007545b
Update automated tests ( #1122 ).
2025-09-12 12:54:38 -07:00
Dan Helfman
947dc77a50
Always error and exit when the borgmatic runtime directory overlaps with the configured excludes ( #1122 ).
2025-09-12 11:21:11 -07:00
Dan Helfman
21ab371e9f
Clarify documentation about ZFS, Btrfs, and LVM snapshotting when a separate filesystem is mounted in the source directory.
2025-09-09 16:05:34 -07:00
Dan Helfman
82e962eae2
Include bootstrapped configuration files in spot check ( #1143 ).
...
Reviewed-on: https://projects.torsion.org/borgmatic-collective/borgmatic/pulls/1143
2025-09-09 16:19:20 +00:00
Dan Helfman
85b198feb2
Get automated tests passing ( #1143 ).
2025-09-08 23:16:27 -07:00
Dan Helfman
e3f4b79e76
Fix the "spot" check to include borgmatic configuration files that were backed up to support the "bootstrap" action ( #1133 ).
2025-09-08 12:16:59 -07:00
Dan Helfman
f1a008ee18
Rephrase NEWS entry for clarity ( #1139 ).
2025-09-02 09:47:53 -07:00
Dan Helfman
563cb8441e
When making HTTP requests in monitoring hooks, set "borgmatic" as the user agent ( #1139 ).
2025-09-01 16:51:33 -07:00
Dan Helfman
36d6619099
Create LVM snapshots as read-write to avoid an error when snapshotting ext4 filesystems with orphaned files that need recovery ( #1126 ).
2025-08-11 10:01:13 -07:00
Dan Helfman
5f468c4261
Use borg compact --dry-run in Borg 1.2.9+.
2025-08-04 21:41:19 -07:00
Dan Helfman
88ecb96b98
Document systemd configuration changes for the ZFS filesystem hook ( #1114 ).
2025-07-18 21:32:49 -07:00
Dan Helfman
099d30f044
Only run Python 3.9 and 3.13 in end-to-end tests since 3.11 has issues in Alpine.
2025-07-18 17:25:31 -07:00
Dan Helfman
5439e616f8
Hopefully fix end-to-end tests broken due to uv changes.
2025-07-18 17:09:48 -07:00
Dan Helfman
2d8b455e44
Switched from pipx to uv for installing development tools, and added tox-uv for speeding up test environment creation.
2025-07-18 15:16:45 -07:00
Dan Helfman
9a80fec91b
When running tests, use Ruff for faster and more comprehensive code linting and formatting.
2025-07-17 23:24:58 -07:00
Dan Helfman
ea72f1c367
Fix a bug in which Borg hangs during database backup when different filesystems are in use ( #1118 ).
2025-07-15 13:05:03 -07:00
Dan Helfman
34f677dba1
Add a flake8 plugin that enforces a blank line after if/for/while/with/try blocks.
2025-06-30 22:04:05 -07:00
Dan Helfman
3eed3191e8
Add a flake8 extension to tests to detect commented out code.
2025-06-30 21:42:38 -07:00
Dan Helfman
1a33e5fa1e
Bump version for release.
2.0.7
2025-06-30 18:04:06 -07:00
Dan Helfman
c2d2ce18a2
Clarify documentation about interacion between "--repository" flag and command hooks ( #1112 ).
2025-06-30 18:02:02 -07:00
Dan Helfman
1b62be0949
Fix a bug in which quoted "extra_borg_options" values containing spaces are passed to Borg incorrectly. Add a "--comment" flag to the "create" action for creating an archive with a comment ( #1108 ).
2025-06-30 16:16:53 -07:00
Dan Helfman
392fbcd19f
Add missing Bandit configuration file.
2025-06-27 23:00:35 -07:00
Dan Helfman
0d54fda27a
Use the Bandit security analysis tool when running tests.
...
SECURITY: Add timeouts to all monitoring hooks to prevent hangs on network requests.
SECURITY: For the "spot" check, use a more secure source of randomness when selecting paths to check.
2025-06-27 22:30:00 -07:00
Dan Helfman
1e6fba6e99
Ignore Btrfs subvolumes whose read-only status can't be determined ( #1048 ).
2025-06-27 19:41:14 -07:00
Dan Helfman
a1b14d58af
Support Btrfs subvolume paths in "source_directories" even when the subvolume is mounted elsewhere ( #1043 ).
...
Reviewed-on: https://projects.torsion.org/borgmatic-collective/borgmatic/pulls/1113
2025-06-28 02:23:19 +00:00
Dan Helfman
6058efbaac
Clarify NEWS entry ( #1043 ).
2025-06-27 19:21:10 -07:00
Dan Helfman
05b34d4b56
Fix unit/integration tests and add coverage ( #1043 ).
2025-06-27 12:37:03 -07:00
Dan Helfman
5f6173ab24
Clarify Btrfs subvolume path vs. mount point documentation ( #1043 ).
2025-06-25 22:43:14 -07:00
Dan Helfman
6f92ae2462
Add documentation for "raw" Btrfs subvolume paths ( #1043 ).
2025-06-25 22:34:14 -07:00
Dan Helfman
df383be8a2
Merge branch 'main' into btrfs-raw-subvolumes
2025-06-25 15:37:56 -07:00
Dan Helfman
11da378304
Update GitHub pull request template, because it also shows up on Gitea apparently.
2025-06-25 15:37:20 -07:00
Dan Helfman
65ce7309f1
Initial WIP-level work on supporting snapshots of "raw" Btrfs subvolumes.
2025-06-25 15:29:03 -07:00
Dan Helfman
0cae581014
Add fix for failing database hook creating archive to NEWS ( #1032 ).
2025-06-25 09:27:38 -07:00
Tobias Schlatter and Dan Helfman
123f8958f6
Create a checkpoint archive first with streaming processes ( #1032 ).
...
This ensures that if a streaming process fails, we do not create a
real (i.e. non-checkpoint archive), (fixes #1032 ).
Without this, there is a race condition where borg already creates an
archive before borgmatic can kill it.
Tested locally (with `pipx install --editable .`):
```sh
borgmatic --config config.yaml create
borgmatic --config config.yaml create --json
```
## Hold up!
Thanks for your contribution. Unfortunately, we don't use GitHub pull requests to manage code contributions to this repository (and GitHub doesn't have any way to disable pull requests entirely). Instead, please see:
https://torsion.org/borgmatic/#contributing
... which provides full instructions on how to submit pull requests. You can even use your GitHub account to login.
Reviewed-on: https://projects.torsion.org/borgmatic-collective/borgmatic/pulls/1102
Reviewed-by: Dan Helfman <witten@torsion.org >
Co-authored-by: Tobias Schlatter <schlatter.tobias@gmail.com >
Co-committed-by: Tobias Schlatter <schlatter.tobias@gmail.com >
2025-06-25 16:24:07 +00:00
Dan Helfman
5ac086fa73
Revert "Temporarily remove recent contributors due to broken Gitea API: https://github.com/go-gitea/gitea/issues/34682 "
...
This reverts commit 3902dd873d .
2025-06-19 17:05:06 -07:00
Dan Helfman
3902dd873d
Temporarily remove recent contributors due to broken Gitea API: https://github.com/go-gitea/gitea/issues/34682
2025-06-10 12:34:41 -07:00
Dan Helfman
652a63223a
Rename constant ( #1083 ).
2025-06-10 11:29:12 -07:00
Dan Helfman
01dc7e7841
Upgrade requests in test requirements to "fix" theoretical security vulnerability.
2025-06-10 11:21:34 -07:00
Dan Helfman
249183250b
Merge branch 'main' of ssh://projects.torsion.org:3022/borgmatic-collective/borgmatic
2025-06-10 11:18:59 -07:00
Dan Helfman
080c8dfd93
Add NEWS entry ( #1083 ).
2025-06-10 11:18:49 -07:00
Dan Helfman
9ec287cd2e
Add Borg 2.0.0b15 features ( #1083 ).
...
Reviewed-on: https://projects.torsion.org/borgmatic-collective/borgmatic/pulls/1088
Reviewed-by: Dan Helfman <witten@torsion.org >
2025-06-10 18:15:02 +00:00
Nish_
df64794115
test yes/YES for env vars
...
Signed-off-by: Nish_ <120EE0980@nitrkl.ac.in >
2025-06-08 15:07:03 +05:30
Nish_ and 120EE0980
fede523dae
enhance passphrase handling
...
Signed-off-by: Nish_ <120EE0980@nitrkl.ac.in >
2025-06-08 09:31:13 +00:00
Nish_ and 120EE0980
35bfb393c7
remove make-parent-dirs option
...
Signed-off-by: Nish_ <120EE0980@nitrkl.ac.in >
2025-06-08 09:31:13 +00:00
Dan Helfman
782f534636
Clarify documentation on command hooks order of execution ( #1099 ).
2025-06-02 12:01:33 -07:00
Dan Helfman
8e8d9e6267
Fix a bug in which "borg --version" failing isn't considered a "fail" state in a command hook ( #1100 ).
2025-05-27 11:52:36 -07:00
Dan Helfman
b208c5352a
Bump version for release.
2.0.6
2025-05-14 21:16:33 -07:00
Dan Helfman
79cf3495ee
Fix for the "spot" check erroring when a checksum command errors ( #1089 ).
2025-05-14 21:13:48 -07:00
Dan Helfman
15607d2ccd
During the "spot" check, truncate log messages containing many file paths.
2025-05-14 20:24:28 -07:00
Dan Helfman
ae1fbf7940
Fix incorrect option names in config normalize warning message ( #1096 ).
...
Reviewed-on: https://projects.torsion.org/borgmatic-collective/borgmatic/pulls/1096
2025-05-15 02:32:23 +00:00