Dan Helfman
1366269586
Add a couple of missing tests ( #251 ).
2024-11-30 09:44:55 -08:00
Dan Helfman
3197178b3d
Fix flake errors.
2024-11-24 16:32:48 -08:00
Dan Helfman
84f611ae4f
Require the runtime directory to be an absolute path.
2024-11-24 16:15:19 -08:00
Dan Helfman
689643e5fa
Move bootstrap manifest file creation into a hook so it can actually clean up after itself.
2024-11-24 16:00:33 -08:00
Dan Helfman
c65aa24001
Add test coverage for ZFS hook ( #261 ).
2024-11-23 10:50:58 -08:00
Dan Helfman
5a24bf2037
Get tests passing ( #261 ).
2024-11-22 20:16:18 -08:00
Dan Helfman
851c454ef0
Remove the restriction that the "extract" and "mount" actions must match a single repository ( #722 ).
2024-11-17 21:39:59 -08:00
Dan Helfman
afdf831c59
Fix broken restore/bootstrap when using Borg 1.2 and a randomly named temporary directory ( #934 ).
2024-11-17 11:55:10 -08:00
Dan Helfman
7cca83b698
Log the path of the borgmatic runtime directory used ( #934 ).
2024-11-17 10:15:58 -08:00
Dan Helfman
b80f60a731
Create the borgmatic runtime directory if it doesn't exist ( #934 ).
2024-11-16 16:03:18 -08:00
Dan Helfman
b0cad58d6c
Add a dash to the prefix of the randomly named temporary directory to improve readability ( #937 ).
2024-11-16 11:26:24 -08:00
Dan Helfman
295bfb0c57
Update the logic that probes for the borgmatic streaming database dump, bootstrap metadata, and check state directories to support more platforms and use cases ( #934 ).
2024-11-15 18:15:32 -08:00
Dan Helfman
be08e889f0
Fix the user runtime directory location on macOS (and possibly Cygwin) ( #928 ).
2024-11-03 21:44:11 -08:00
Dan Helfman
814cdb4b87
Deprecate the "borgmatic_source_directory" option in favor of "user_runtime_directory" and "user_state_directory" ( #562 ). Move the default borgmatic streaming database dump and bootstrap metadata location on disk ( #562 ). With Borg 1.4+, store database dumps and bootstrap metadata in a "/borgmatic" directory within a backup archive ( #838 ). Add "--local-path", "--remote-path", and "--user-runtime-directory" flags to the "config bootstrap" action.
2024-11-03 13:14:05 -08:00
Dan Helfman
13878be254
Move the default check state directory ( #562 , #638 ). Deprecate the "borgmatic_source_directory" option in favor of "borgmatic_runtime_directory" and "borgmatic_state_directory" ( #562 ).
2024-10-30 22:36:43 -07:00
Dan Helfman
7a117d5cc9
Add support for Borg 2's "sftp://" repository URLs.
2024-10-26 11:58:26 -07:00
Dan Helfman
fe0fe27c36
Adjust for Borg 2's change from "rclone://" repository URLs to just "rclone:".
2024-10-26 09:41:01 -07:00
Dan Helfman
ad21eb41ae
Add support for Borg 2's "rclone://" repository URLs.
2024-10-23 11:10:40 -07:00
Dan Helfman
bd4c672382
Apply the "working_directory" option to all actions, not just "create". Also fix the glob expansion of "source_directories" values to respect the "working_directory" option ( #609 ).
2024-10-20 16:04:41 -07:00
Dan Helfman
c5633227bf
Add glob ("*") support to the "--repository" flag ( #898 ).
2024-08-20 12:49:50 -07:00
Dan Helfman
38bc4fbfe2
Fix interaction between environment variable interpolation in constants and shell escaping ( #860 ).
2024-04-30 09:36:26 -07:00
Dan Helfman
3ecd0e731e
Initial work on spot check schema and preparatory refactoring ( #656 ).
2024-03-20 11:58:59 -07:00
Dan Helfman
e9813d2539
Allow the "--repository" flag to match across multiple configuration files ( #818 ).
2024-01-21 18:25:44 -08:00
Dan Helfman
4d79f582df
Fix a traceback when providing an invalid "--override" value for a list option ( #814 ).
2024-01-18 10:39:40 -08:00
Dan Helfman
63198088c4
Store included configuration files within each backup archive in support of the "config bootstrap" action ( #736 ).
2024-01-09 13:47:20 -08:00
Dan Helfman
3c22a8ec16
Prevent various shell injection attacks ( #810 ).
2024-01-07 10:21:49 -08:00
Dan Helfman
8b49a59aff
Fix a traceback when the "repositories" option contains both strings and key/value pairs ( #794 ).
2023-12-04 11:17:13 -08:00
Dan Helfman
3b99f7c75a
Constants support includes and command-line overrides ( #745 , #782 )
2023-11-19 21:13:35 -08:00
Dan Helfman
13cf863d89
Fix tests ( #783 ).
2023-11-07 10:09:31 -08:00
Dan Helfman
ef448e2dd1
Add a "skip_actions" option to skip running particular actions ( #701 ).
2023-10-31 21:54:41 -07:00
Dan Helfman
c3efe1b90e
Only parse "--override" values as complex data types when they're for options of those types ( #779 ).
2023-10-29 19:02:28 -07:00
Dan Helfman
487d8ffd32
Fix normalization of deprecated sections to support empty sections without erroring ( #771 ).
2023-10-14 13:04:18 -07:00
Dan Helfman
175003ff9b
Additional test coverage ( #732 ).
2023-08-01 19:45:01 -07:00
Dan Helfman
b8d349d048
Additional test coverage ( #732 ).
2023-08-01 16:27:53 -07:00
Dan Helfman
48b6a1679a
Remove sections ( #721 ).
2023-07-08 23:14:30 -07:00
Dan Helfman
9cf27fa4ba
Deprecated configuration options warning logging.
2023-06-29 10:03:36 -07:00
Dan Helfman
b9a11e860d
Remove legacy configuration parsing code, no longer needed with upgrade-borgmatic-config gone ( #529 ).
2023-06-25 15:36:25 -07:00
Dan Helfman
b10aee3070
Remove upgrade-borgmatic-config command for upgrading borgmatic 1.1.0 INI-style configuration ( #529 ).
2023-06-19 23:17:59 -07:00
Dan Helfman
c294e78715
Use absolute paths when storing configuration files in an archive for later bootstrapping ( #697 ).
2023-06-15 21:45:43 -07:00
Dan Helfman
1a5b3c9e4e
Add Fedora schema loading fix to NEWS ( #703 ).
2023-06-03 22:07:24 -07:00
Felix Kaechele
c61d63b235
Use open() to test for file existance and readability
...
Signed-off-by: Felix Kaechele <felix@kaechele.ca >
2023-06-04 00:54:29 -04:00
Felix Kaechele
15cabb93ca
Drop importlib_metadata entirely
...
The fallback option using the dirname of the config module location
seems to be more robust in a number of cases.
Signed-off-by: Felix Kaechele <felix@kaechele.ca >
2023-06-03 23:42:20 -04:00
Dan Helfman
0b397a5bf9
Fix borgmatic error when not finding the configuration schema for certain "pip install --editable" development installs ( #687 ).
2023-04-30 16:24:10 -07:00
Dan Helfman
8cb5a42a9e
Drop deprecated pkg_resources in favor of importlib.metadata and packaging.
2023-04-14 21:21:25 -07:00
Dan Helfman
5dbb71709c
Upgrade test requirements and code style requirements. Auto-reformat code accordingly.
2023-04-14 19:35:24 -07:00
Dan Helfman
3512191f3e
Add check_repositories regression fix to NEWS ( #662 ).
2023-03-28 11:45:55 -07:00
Divyansh Singh
08e358e27f
add and update tests
2023-03-28 22:51:35 +05:30
Divyansh Singh
b336b9bedf
add tests for repo labels
2023-03-27 00:19:23 +05:30
Divyansh Singh
b511e679ae
remove optional label for repos from tests
2023-03-26 16:59:29 +05:30
Divyansh Singh
1bc003560a
Merge branch 'master' of https://github.com/diivi/borgmatic into feat/tag-repos
2023-03-25 01:39:26 +05:30