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
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
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
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
Vandal
d17aa3e7cc
review changes
2025-04-25 22:28:43 +05:30
Vandal
1ac51e34bc
pass dry run flag
2025-04-25 11:40:25 +05:30
Vandal
27a2bbc231
add --dry-run feature check
2025-04-23 08:11:43 +05:30
Vandal
dbf1d0946a
make review changes
2025-04-23 07:38:52 +05:30
Vandal
2078527539
add BORG_USE_CHUNKS_ARCHIVE
2025-04-20 09:58:09 +05:30
Vandal
620bf52e01
add prune test
2025-04-20 09:31:51 +05:30
Dan Helfman
0d94a6587a
Move pattern and flag functions from create.py into their own module ( #1056 ).
...
Reviewed-on: https://projects.torsion.org/borgmatic-collective/borgmatic/pulls/1056
Reviewed-by: Dan Helfman <witten@torsion.org >
2025-04-07 03:51:36 +00:00
Vandal
360156e3b1
refactor codebase
2025-04-06 21:34:04 +05:30
Dan Helfman
c0adc4f9df
Add test coverage for new code ( #793 ).
2025-04-04 17:19:14 -07:00
Dan Helfman
49839e884a
Add configuration options for logging and verbosity ( #793 ).
2025-04-04 10:11:00 -07:00
Dan Helfman
e96db2e100
Fix "progress" option with the "transfer" action ( #303 ).
2025-04-01 19:43:56 -07:00
Dan Helfman
5490a83d77
Merge branch 'main' into config-command-line.
2025-03-31 17:13:20 -07:00
Dan Helfman
8c907bb5a3
Fix broken "recreate" action with Borg 1.4 ( #610 ).
2025-03-31 17:11:37 -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
cf477bdc1c
Fix broken list_details, progress, and statistics options ( #303 ).
2025-03-31 11:33:56 -07:00
Dan Helfman
8101e5c56f
Add "list_details" config option support to new "recreate" action ( #303 ).
2025-03-29 15:24:37 -07:00
Dan Helfman
c7feb16ab5
Merge branch 'main' into config-command-line.
2025-03-29 15:16:29 -07:00
Vandal
2716d9d0b0
add to schema
2025-03-29 23:25:50 +05:30