Commit graph

596 commits

Author SHA1 Message Date
87bfd6e97f Fix end-to-end tests.
All checks were successful
build / test (push) Successful in 7m20s
build / docs (push) Successful in 1m52s
2026-03-30 12:37:42 -07:00
26b3a03721 Fix for the Loki monitoring hook not respecting the monitoring verbosity (#1257).
Some checks failed
build / test (push) Has been cancelled
build / docs (push) Has been cancelled
2026-03-30 11:13:55 -07:00
52234c47e6 Fix a regression in which running borgmatic with no arguments and no configuration files doesn't error as expected (#1286).
All checks were successful
build / test (push) Successful in 8m23s
build / docs (push) Successful in 1m51s
2026-03-22 20:10:46 -07:00
23e451e641 Treat Borg "file not found" warnings (exit code 107) as warnings again instead of errors. Also un-deprecate the "source_directories_must_exist" option and default it to true (#1248). 2026-03-05 13:14:03 -08:00
e693e42b9e Minor Python modernization fixes.
All checks were successful
build / test (push) Successful in 11m6s
build / docs (push) Successful in 2m8s
2026-03-02 20:47:11 -08:00
68c2a4d231 Add "files_changed" and "msgpack_version_check" to NEWS.
All checks were successful
build / test (push) Successful in 7m44s
build / docs (push) Successful in 1m33s
2026-02-27 23:26:02 -08:00
12e92acd15 Add "files_changed" and "msgpack_version_check" options (#1175).
Some checks failed
build / docs (push) Has been cancelled
build / test (push) Has been cancelled
Reviewed-on: #1272
2026-02-28 07:19:55 +00:00
1ada61a1d3 ruff formatting?
All checks were successful
build / test (pull_request) Successful in 7m44s
build / docs (pull_request) Has been skipped
2026-02-28 09:40:41 +05:30
24e1e38615 Merge branch 'main' into add-diff
All checks were successful
build / test (pull_request) Successful in 7m38s
build / docs (pull_request) Has been skipped
2026-02-27 00:29:18 +00:00
ceb487a6b9 Fixed documentation in schema
All checks were successful
build / test (pull_request) Successful in 7m40s
build / docs (pull_request) Has been skipped
2026-02-25 19:54:10 +05:30
7dbdd103d1 Adjust the "spot" check so error output includes more information about what failed (#1228).
All checks were successful
build / test (push) Successful in 8m39s
build / docs (push) Successful in 1m38s
2026-02-24 16:51:55 -08:00
6cfa31e2c2 Merge branch 'main' into add-diff
All checks were successful
build / test (pull_request) Successful in 7m50s
build / docs (pull_request) Has been skipped
2026-02-23 22:38:17 +00:00
7dcb4e3c3a added BORG_MSGPACK_VERSION_CHECK, no test
All checks were successful
build / test (pull_request) Successful in 7m42s
build / docs (pull_request) Has been skipped
2026-02-23 06:03:06 +05:30
ea2a253134 added --files-changed flag 2026-02-22 13:17:09 +05:30
7ca42a8f4f Follow symlinks when backing up borgmatic configuration files to support the "bootstrap" action (#1270).
All checks were successful
build / test (push) Successful in 8m24s
build / docs (push) Successful in 1m39s
2026-02-20 19:55:52 -08:00
d532fc0f88 Add a "config show" action to display computed borgmatic configuration as YAML or JSON (#1218).
All checks were successful
build / test (push) Successful in 8m15s
build / docs (push) Successful in 1m36s
2026-02-14 21:30:53 -08:00
38cc5d4ee4 Half clueless attempt at fixing test_schema.py.
Some checks failed
build / test (pull_request) Has been cancelled
build / docs (pull_request) Has been cancelled
2026-01-30 11:52:47 +11:00
b67dcf829e Fix a regression in which the ntfy monitoring hook failed to send a ping when the "priority" option was set (#1246).
All checks were successful
build / test (push) Successful in 7m50s
build / docs (push) Successful in 1m32s
2026-01-24 16:35:55 -08:00
2419ae314e Add "unsafe_skip_path_validation_before_create" option to documentation (#1221).
Some checks failed
build / docs (push) Has been cancelled
build / test (push) Has been cancelled
2026-01-16 12:41:12 -08:00
bdd2258701 BREAKING: Treat most Borg warnings as errors by default and deprecate the "source_directories_must_exist" option (#1092).
Some checks failed
build / test (push) Failing after 12m9s
build / docs (push) Has been skipped
2026-01-10 19:35:07 -08:00
774436817a BREAKING/SECURITY: For the Healthchecks, Apprise, Pagerduty, and Loki monitoring hooks, disable log sending when not explicitly enabled (#1132).
Some checks failed
build / test (push) Failing after 34m46s
build / docs (push) Has been cancelled
2026-01-09 22:25:50 -08:00
b0e083eff2 BREAKING: Support disabling both constant and variable interpolation by escaping with backslashes (#1213).
All checks were successful
build / test (push) Successful in 9m4s
build / docs (push) Successful in 1m55s
2026-01-05 15:39:14 -08:00
71291409fe SECURITY: Prevent shell injection attacks via constant interpolation in command hooks.
All checks were successful
build / test (push) Successful in 9m13s
build / docs (push) Successful in 2m1s
2026-01-04 21:56:53 -08:00
Julien Cornebise
c08f1b8178 Rename unsafe_create_without_precheck to unsafe_skip_path_validation_before_create and address PR feedback (#1222).
All checks were successful
build / test (pull_request) Successful in 9m10s
build / docs (pull_request) Has been skipped
- 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).
All checks were successful
build / test (pull_request) Successful in 8m54s
build / docs (pull_request) Has been skipped
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
01c7d0a0db Fix that errors and exits when the borgmatic runtime directory is partially excluded by configured excludes (#1203).
All checks were successful
build / test (push) Successful in 19m7s
build / docs (push) Successful in 3m6s
2025-12-18 19:04:42 -08:00
a31f913f54 For the MariaDB and MySQL database hooks, add a "socket_path" option for Unix socket database connections (#1193).
All checks were successful
build / test (push) Successful in 15m39s
build / docs (push) Successful in 2m21s
2025-12-14 21:13:21 -08:00
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).
All checks were successful
build / test (push) Successful in 17m12s
build / docs (push) Successful in 2m47s
2025-12-12 22:31:41 -08:00
772c4c1b83 In the documentation for the MariaDB/MySQL database hooks, clarify how to set custom command-line flags for database commands (#1193).
All checks were successful
build / test (push) Successful in 16m21s
build / docs (push) Successful in 2m36s
2025-12-03 13:52:30 -08:00
66e567f78c Hard-code default configuration paths in command-line flag help (#1184).
Some checks failed
build / docs (push) Has been cancelled
build / test (push) Has been cancelled
Reviewed-on: #1184
2025-11-19 06:25:56 +00:00
573405bb88 Hard-code default config paths in help strings
All checks were successful
build / test (pull_request) Successful in 14m8s
build / docs (pull_request) Has been skipped
This fixes a bug with fish completions. Before this commit,
`borgmatic --fish-completion` would generate a fish completion script
with an expanded XDG_CONFIG_HOME (if this variable is set).

This is problematic for package maintainers if the variable is set
during the creation of a package.

Moreover, it is problematic if the user has set this variable because
the fish completion scripts checks its own consistency with `borg
--fish-completion` during startup to detect version mismatches. If the
user has a packaged fish completion file with "~/.config/$HOME" in it,
this won't match the output of `borg --fish-completion` because the
latter contains the expansion of $XDG_CONFIG_HOME. As a result, the
script will incorrectly conclude that it is outdated.
2025-11-17 15:42:30 +01:00
0e9193c46b Add an "ask_for_password" option to the KeePassXC credential hook for disabling KeePassXC's password prompt (#1181).
Some checks failed
build / docs (push) Has been cancelled
build / test (push) Has been cancelled
2025-11-14 21:20:21 -08:00
859c338d06 Improve documentation search results for individual configuration options. 2025-11-04 22:34:15 -08:00
181030c5d1 Add an "environment" option to the Sentry monitoring hook (#1172).
Some checks failed
build / test (push) Failing after 7m20s
build / docs (push) Has been skipped
2025-10-30 15:39:49 -07:00
2600598359 Add environment option to Sentry monitoring hook (#1172).
Some checks failed
build / docs (push) Has been cancelled
build / test (push) Has been cancelled
Reviewed-on: #1172
Reviewed-by: Dan Helfman <witten@torsion.org>
2025-10-30 22:37:53 +00:00
Tom Janssen
370bc7e7f0
fix schema length
Some checks failed
build / test (pull_request) Failing after 3m13s
build / docs (pull_request) Has been skipped
2025-10-29 09:55:03 +01:00
Tom Janssen
7cca1358fb
incorporate feedback
Some checks failed
build / test (pull_request) Failing after 3m2s
build / docs (pull_request) Has been skipped
2025-10-29 09:50:55 +01:00
d4433eeec1 Fix typo
Some checks failed
build / test (pull_request) Has been cancelled
build / docs (pull_request) Has been cancelled
2025-10-28 16:43:40 +00:00
Tom Janssen
d0b5244888 add environment option
Some checks failed
build / test (pull_request) Failing after 2m51s
build / docs (pull_request) Has been skipped
2025-10-28 16:52:50 +01:00
5ef257ebb6 Attempt to clarify recursion root patterns in the schema comments.
All checks were successful
build / test (push) Successful in 8m22s
build / docs (push) Successful in 2m5s
2025-10-27 14:34:20 -07:00
51d2ce7963 Add a "rename" option to "extra_borg_options" to support passing arbitrary flags to "borg rename".
All checks were successful
build / test (push) Successful in 12m17s
build / docs (push) Successful in 2m15s
2025-10-24 23:02:46 -07:00
Simon Pilkington
68864395b5 Support multiple configured systemd service directories (RuntimeDirectory, StateDirectory)
All checks were successful
build / test (pull_request) Successful in 8m27s
build / docs (pull_request) Has been skipped
2025-10-24 08:20:59 +02:00
f680869d31 Expand the "borg_extra_options" option to support every Borg sub-command that borgmatic uses (#427).
All checks were successful
build / test (push) Successful in 15m12s
build / docs (push) Successful in 2m14s
2025-10-23 21:13:16 -07:00
134bf1ebdd Add a "borg_key_file" option for setting the Borg repository key file path (#1166).
All checks were successful
build / test (push) Successful in 8m9s
build / docs (push) Successful in 2m2s
2025-10-23 10:36:00 -07:00
4017897b1a For the MariaDB and MySQL database hooks, add a "skip_names" option to ignore particular databases when dumping "all" (#973).
All checks were successful
build / test (push) Successful in 14m49s
build / docs (push) Successful in 1m59s
2025-10-16 14:48:42 -07:00
d808d7424f Document the fact that missing "source_directories" are warnings, not errors (#1076).
All checks were successful
build / test (push) Successful in 8m17s
build / docs (push) Successful in 1m56s
2025-10-15 16:15:36 -07:00
a327496c99 Document that the "exclude_nodump" option is Borg 1.x only (#1111).
All checks were successful
build / test (push) Successful in 8m1s
build / docs (push) Successful in 1m57s
2025-10-15 16:00:55 -07:00
9cd607af9d Clarify schema documentation about borg_security_directory and borg_keys_directory defaults (#1162).
All checks were successful
build / test (push) Successful in 8m6s
build / docs (push) Successful in 2m9s
2025-10-15 10:42:18 -07:00
efc4316a45 Split out example configuration into different pages of reference documentation (#942). 2025-10-12 21:28:52 -07:00
2a69598e02 Partial work on factoring out references docs from how-to guides (#942). 2025-10-10 22:21:15 -07:00