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
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
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
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
7f3e9c5347
Fix for the "spot" check's "xxh64sum_command" option erroring on commands containing spaces ( #1095 ).
2025-05-14 14:09:19 -07:00
Dan Helfman
3ff9a33468
Fix for the "spot" check breaking when the "--progress" flag is used ( #1086 ).
2025-05-01 18:46:34 -07:00
Dan Helfman
e2b5972c09
Fix end-to-end tests ( #1072 ).
2025-04-21 23:11:38 -07:00
Dan Helfman
3847f31939
Fix path rewriting for non-root patterns in the ZFS, Btrfs, and LVM hooks ( #1072 ).
2025-04-21 10:07:46 -07:00
Dan Helfman
f27a96e22d
Display a nicer error message when the "recreate" action encounters an archive that already exists ( #1053 ).
2025-04-08 10:58:53 -07:00
Dan Helfman
a892a308bd
Display a nicer error message when running the "recreate" action on a leftover temporary archive from a prior recreate run ( #1053 ).
2025-04-08 10:13:04 -07:00
Vandal
360156e3b1
refactor codebase
2025-04-06 21:34:04 +05:30
Dan Helfman
af97b95e2b
Merge branch 'main' into config-command-line.
2025-04-01 12:09:54 -07:00
Dan Helfman
6a61259f1a
Fix a failure in the "spot" check when the archive contains a symlink ( #1050 ).
2025-04-01 11:49:47 -07:00
Dan Helfman
f166111b9b
Fix new "repositories:" sub-options ("append_only", "make_parent_directories", etc.) ( #303 ).
2025-03-31 15:26:24 -07:00
Dan Helfman
10fb02c40a
Fix bootstrap --progress flag ( #303 ).
2025-03-31 13:33:39 -07:00
Dan Helfman
cf477bdc1c
Fix broken list_details, progress, and statistics options ( #303 ).
2025-03-31 11:33:56 -07:00
Dan Helfman
c7feb16ab5
Merge branch 'main' into config-command-line.
2025-03-29 15:16:29 -07:00
Dan Helfman
668f767bfc
Adding some missing tests and fixing related flag vs. config logic ( #303 ).
2025-03-28 23:11:15 -07:00
Dan Helfman
50beb334dc
Add tests for adding array element arguments and fix the code under test ( #303 ).
2025-03-27 11:07:25 -07:00
Vandal
e7f14bca87
add tests and requested changes
2025-03-25 00:16:20 +05:30
Nish_
5525b467ef
add key import command
...
Signed-off-by: Nish_ <120EE0980@nitrkl.ac.in >
2025-03-21 00:47:45 +05:30
Dan Helfman
ec88bb2e9c
Merge branch 'main' into unified-command-hooks.
2025-03-09 13:37:17 -07:00
Dan Helfman
68b6d01071
Fix a regression in which the "exclude_patterns" option didn't expand "~" ( #1021 ).
2025-03-09 13:35:22 -07:00
Dan Helfman
6a96a78cf1
Fix existing tests ( #1019 ).
2025-03-07 22:58:25 -08:00
Dan Helfman
e69c686abf
Get all unit/integration tests passing ( #1001 ).
2025-02-21 11:32:57 -08:00
Dan Helfman
b2d61ade4e
Change the default value for the "--original-hostname" flag from "localhost" to no host specified ( #985 ).
2025-02-03 11:17:21 -08:00
Dan Helfman
61f0987051
Merge branch 'main' into log-repository-everywhere
2025-01-27 22:03:35 -08:00
Dan Helfman
b6ff242d3a
Fix for borgmatic "exclude_patterns" and "exclude_from" recursing into excluded subdirectories ( #982 ).
2025-01-27 10:07:19 -08:00
Dan Helfman
7d56641f56
Get existing unit tests passing ( #635 ).
2025-01-26 12:13:29 -08:00
Dan Helfman
cc7e01be68
Log the repository path or label on every relevant log message, not just some logs ( #635 ).
2025-01-25 14:01:25 -08:00
Dan Helfman
1232ba8045
Revert "Log the repository path or label on every relevant log message, not just some logs ( #635 )."
...
This reverts commit 90c1161a8c .
2025-01-25 13:57:56 -08:00
Dan Helfman
90c1161a8c
Log the repository path or label on every relevant log message, not just some logs ( #635 ).
2025-01-25 13:55:58 -08:00
Dan Helfman
4c35a564ef
Fix root patterns so they don't have an invalid "sh:" prefix before getting passed to Borg ( #979 ).
2025-01-25 07:59:53 -08:00
Dan Helfman
f08014e3be
Code formatting.
2025-01-23 12:11:27 -08:00
Pavel Andreev
73c196aa70
Fix according to review comments
2025-01-23 19:49:10 +00:00
Pavel Andreev
5d390d7953
Fix patterns parsing
2025-01-23 15:58:43 +00:00
Dan Helfman
804455ac9f
Fix for "exclude_from" files being completely ignored ( #971 ).
2025-01-19 10:27:13 -08:00
Dan Helfman
e66df22a6e
Fix for an error when a blank line occurs in the configured patterns or excludes ( #970 ).
2025-01-18 09:25:29 -08:00
Dan Helfman
f1cac95b9c
Fix the "restore" action to work on database dumps without a port when a default port is configured ( #969 ).
2025-01-17 13:46:18 -08:00
Dan Helfman
2467518d4e
Add even more missing test coverage ( #962 ).
2025-01-16 15:11:59 -08:00
Dan Helfman
3bda843139
Fix the "spot" check to have a nicer error when there are no source paths to compare.
2025-01-15 19:48:08 -08:00
Dan Helfman
cfeeb87bbe
Fix pattern expansion/normalization bug with working directory ( #962 ).
2025-01-15 11:26:26 -08:00
Dan Helfman
bbf1c3d55e
Add test coverage for new code.
2025-01-14 23:01:39 -08:00
Dan Helfman
0b17fb2d3f
Get all existing tests passing ( #962 ).
2025-01-14 13:48:20 -08:00
Dan Helfman
ca54da1067
Getting additional tests passing ( #962 ).
2025-01-13 20:51:27 -08:00
Dan Helfman
661041da04
Fix check tests ( #962 ).
2025-01-13 10:22:32 -08:00
Dan Helfman
2c70ad81ec
Fix the "spot" check to support relative source directory paths ( #960 ). Fix the "spot" check to no longer consider pipe files within an archive for file comparisons. Fix auto-excluding of special files (when databases are configured) to support relative source directory paths.
2025-01-01 15:00:36 -08:00
Dan Helfman
a4954cc7a3
Fix for archives storing relative source directory paths such that they contain the working directory ( #960 ).
2024-12-29 20:09:13 -08:00
Dan Helfman
be6b865a81
Add even more missing test coverage ( #418 ).
2024-12-24 23:09:44 -08:00