Dan Helfman
efd0f0d618
For the "recreate" action, actually pass the "--dry-run" flag through to Borg instead of just skipping the Borg call ( #1241 ).
2026-01-18 18:39:29 -08:00
Dan Helfman
7e4a894cc4
Prevent Borg error-level log about repo not existing when "borgmatic repo-create" probes for repo existence.
2026-01-14 22:38:09 -08:00
Dan Helfman
c301858cca
MOAR --log-json.
2026-01-14 21:59:36 -08:00
Dan Helfman
762beb46c2
Fix "restore" action and broken end-to-end tests.
2026-01-14 12:54:36 -08:00
Dan Helfman
d354cf0942
Get unit/integration tests passing.
2026-01-13 16:02:02 -08:00
Dan Helfman
7bb27e5366
Revert "Fix for incorrect use of "--log-json" when looking up latest archive ( #1204 )."
...
This reverts commit 2c530cc1b9 .
2026-01-11 09:51:50 -08:00
Dan Helfman
2c530cc1b9
Fix for incorrect use of "--log-json" when looking up latest archive ( #1204 ).
2026-01-10 21:25:20 -08:00
Dan Helfman
6c7af8c2bb
Merge branch 'main' into reduce-path-validation-memory-consumption
2026-01-09 13:02:59 -08:00
Dan Helfman
3e4115cc92
For the "extract"/"restore" actions, fix use of "--log-json" when extracting to stdout ( #485 ).
2026-01-09 13:02:04 -08:00
Dan Helfman
d589d351ed
Merge branch 'main' into reduce-path-validation-memory-consumption
2026-01-09 12:17:57 -08:00
Dan Helfman
4e6319f5d3
In the "export-tar" action, fix the use of "--log-json" when exporting to stdout ( #485 ).
2026-01-09 12:12:42 -08:00
Dan Helfman
528dc6fe87
For the "mount" action, fix use of "--log-json" when "--foreground" is set ( #485 ).
2026-01-09 12:01:21 -08:00
Dan Helfman
6f4f1fa16e
For the "key export" action, fix use of "--log-json" when exporting to stdout ( #485 ).
2026-01-09 11:57:27 -08:00
Dan Helfman
fd373cfefc
Fix for an error in the "key import" action when importing a key from stdin.
2026-01-09 11:51:14 -08:00
Dan Helfman
4d26650884
Fix incorrect use of "--log-json" in the "key change-passphrase" action ( #485 ).
2026-01-08 22:54:37 -08:00
Dan Helfman
a23d889c6d
Merge branch 'main' into reduce-path-validation-memory-consumption
2026-01-08 21:30:10 -08:00
Dan Helfman
1299aefeff
For the "repo-delete" action, don't pass "--log-json" to Borg when running Borg interacively ( #485 ).
2026-01-08 21:29:15 -08:00
Dan Helfman
536b24f6ab
Merge branch 'main' into reduce-path-validation-memory-consumption
2026-01-08 10:44:56 -08:00
Dan Helfman
bc8649e11a
For the "repo-info" action, don't pass "--log-json" to Borg when "--json" is also set ( #485 ).
2026-01-08 10:42:35 -08:00
Dan Helfman
0ffa4ec429
For the "repo-create" action, don't pass "--log-json" to Borg, as its output isn't captured and parsed ( #485 ).
2026-01-08 10:27:02 -08:00
Dan Helfman
a308ffca64
Add missing test coverage ( #1225 ).
2026-01-07 22:13:55 -08:00
Dan Helfman
6407b3bd80
Fix existing tests ( #1225 ).
2026-01-07 19:58:25 -08:00
Dan Helfman
6db2622cce
Add "unsafe_skip_path_validation_before_create" option to skip pre-backup validation ( #1221 ).
...
Reviewed-on: https://projects.torsion.org/borgmatic-collective/borgmatic/pulls/1222
2026-01-05 04:39:49 +00:00
Simon Pilkington
c0b4c596ef
Run borg with --progress during extract dry run if passed to borgmatic check.
2026-01-05 03:40:01 +01:00
Julien Cornebise
3bec359355
Merge branch 'main' into add-unsafe-create-without-precheck-option
2026-01-04 22:07:15 +00:00
Julien Cornebise
c08f1b8178
Rename unsafe_create_without_precheck to unsafe_skip_path_validation_before_create and address PR feedback ( #1222 ).
...
- Use skip_ prefix consistent with other borgmatic options
- Reduce runtime warning to single line (users read the config docs)
- Broaden "database dumps" to "data from borgmatic data source hooks"
- Simplify schema docs by referencing user_runtime_directory instead of listing defaults
2026-01-04 22:02:47 +00:00
Julien Cornebise
7e1cb691b6
Add "unsafe_create_without_precheck" option to skip pre-backup validation ( #1221 ).
...
This option allows users to skip the dry-run validation that checks for
special files and runtime directory exclusions. This can significantly
improve performance for large filesystems with millions of files, where
the validation can take hours.
The option name includes "unsafe" to communicate risk, and a warning is
logged on each backup showing the runtime directory path and advising
users to verify their exclude patterns manually.
2026-01-03 20:54:27 +01:00
Dan Helfman
233a9054c9
Merge branch 'main' into subprocess-stderr-to-error-logs
2026-01-02 18:51:16 -08:00
Dan Helfman
11253d2b1d
Get existing test passing.
2025-12-30 23:19:10 -08:00
Dan Helfman
9f6cce2a39
Get several existing tests passing and refactor logging of lines from external programs.
2025-12-30 22:25:12 -08:00
Dan Helfman
ec8168af46
Fix an error about the runtime directory getting excluded by tweaking its logic and lowering the error to a warning ( #1211 ).
2025-12-26 22:53:21 -08:00
Dan Helfman
802ca5aef3
Fix an error when running the "spot" check or "extract" action with the "progress" option or "--progress" flag ( #1210 ).
2025-12-26 09:46:39 -08:00
Dan Helfman
01c7d0a0db
Fix that errors and exits when the borgmatic runtime directory is partially excluded by configured excludes ( #1203 ).
2025-12-18 19:04:42 -08:00
Dan Helfman
c8307065fa
Add a "file_list_format" option for setting the "list" action's output format and an "archive_list_format" option for setting the "repo-list" action's format ( #1179 ).
2025-12-12 22:31:41 -08:00
Dan Helfman
0c4222037d
Fix for the "list", "info", and "delete" options in "extra_borg_options" being ignored when "--archive" is omitted with Borg 1.x ( #1168 ).
2025-10-24 22:57:23 -07:00
Dan Helfman
f680869d31
Expand the "borg_extra_options" option to support every Borg sub-command that borgmatic uses ( #427 ).
2025-10-23 21:13:16 -07:00
Dan Helfman
f15e8282ab
Fix a broken "create" action and "--archive latest" flag when multiple archives share the same name with Borg 2 ( #1146 ).
2025-09-19 14:30:33 -07:00
Dan Helfman
97cd3f20df
Fix "--consider-checkpoints" being passed to Borg 2, which doesn't have that flag ( #1146 ).
...
revert revert 0d198c7072
revert Fix "--consider-checkpoints" being passed to Borg 2, which doesn't have that flag (#1046 ).
2025-09-15 05:05:58 +00:00
Dan Helfman
fd028d42d5
revert 0d198c7072
...
revert Fix "--consider-checkpoints" being passed to Borg 2, which doesn't have that flag (#1046 ).
2025-09-15 05:05:07 +00:00
Dan Helfman
0d198c7072
Fix "--consider-checkpoints" being passed to Borg 2, which doesn't have that flag ( #1046 ).
2025-09-14 22:02:17 -07:00
Dan Helfman
c4c40af812
Account for the case where "store_config_files: false" and the runtime directory never gets added to patterns to begin with ( #1122 ).
2025-09-12 22:17:44 -07:00
Dan Helfman
5028fe9ff4
Bring doc string up to date and rename function for clarity. ( #1122 ).
2025-09-12 14:03:52 -07:00
Dan Helfman
f60007545b
Update automated tests ( #1122 ).
2025-09-12 12:54:38 -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
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
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
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
Vandal
1cde65b4eb
fix dry run not working borg 1.4.1+
2025-04-26 00:21:48 +05:30
Vandal
4e05539825
add review changes
2025-04-25 22:56:07 +05:30