c294e78715
Use absolute paths when storing configuration files in an archive for later bootstrapping ( #697 ).
2023-06-15 21:45:43 -07:00
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
ba0899660d
Verify that schema path exists before returning it
...
Signed-off-by: Felix Kaechele <felix@kaechele.ca>
2023-06-03 23:42:20 -04:00
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
ce6daff12f
Fix importlib.metadata.files workaround
...
Some distributions, such as Fedora, do not install the RECORDS file as
part of a package's dist-info. As a result importlib.metadata.files will
return None.
Use the workaround for these cases as well.
Signed-off-by: Felix Kaechele <felix@kaechele.ca>
2023-06-03 23:42:20 -04:00
caf654366c
Document work-around for colons in YAML strings ( #708 ).
2023-06-03 10:19:34 -07:00
403ae0f698
Clarify configuration comment about source_directories also accepting files ( #693 ).
2023-05-09 10:14:03 -07:00
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
065be1d9d4
More inclusive language.
2023-04-20 14:28:04 -07:00
9f5769f87b
Make docs/schema a little more container agnostic / less Docker specific.
2023-04-16 15:41:17 -07:00
8cb5a42a9e
Drop deprecated pkg_resources in favor of importlib.metadata and packaging.
2023-04-14 21:21:25 -07:00
5dbb71709c
Upgrade test requirements and code style requirements. Auto-reformat code accordingly.
2023-04-14 19:35:24 -07:00
4a94c2c9bf
Selectively omit list values when including configuration files ( #672 ).
2023-04-13 14:39:36 -07:00
1ea4433aa9
Selectively shallow merge certain mappings or sequences when including configuration files ( #672 ).
2023-04-11 21:49:10 -07:00
9712d00680
Add "match_archives" option ( #588 ).
2023-04-01 23:57:55 -07:00
2934d0902c
Code spell checking on every test run!
2023-04-01 11:03:59 -07:00
32ab17fa46
merge
2023-04-01 22:12:41 +05:30
6054ced931
fix: run typos
2023-04-01 22:10:32 +05:30
3f78ac4085
Automatically use the "archive_name_format" option to filter which archives get used for borgmatic actions that operate on multiple archives ( #479 ).
2023-03-31 15:21:08 -07:00
b27e625a77
Update schema comment for check_repositories to mention labels ( #635 ).
2023-03-28 15:44:38 -07:00
ce22d2d302
reformat
2023-03-28 22:29:21 +05:30
2d08a63e60
fix: make check repositories work with dict and str repositories
2023-03-28 22:14:50 +05:30
7a8e0e89dd
Mention prior versions of borgmatic in repositories schema.
2023-03-27 21:54:01 -07:00
0e3da7be63
Fix repository schema description.
2023-03-27 16:15:24 -07:00
3e8e38011b
Labels for repositories ( #635 ).
...
Merge pull request #57 from diivi/feat/tag-repos
2023-03-27 15:46:22 -07:00
b511e679ae
remove optional label for repos from tests
2023-03-26 16:59:29 +05:30
19e95628c3
Add documentation and NEWS for custom constants feature ( #612 ).
2023-03-24 23:47:05 -07:00
4d01e53414
Fix: replace primitive values in config without quotes ( #612 ).
...
Merge pull request #62 from diivi/fix/config-json-replacement
2023-03-24 23:45:36 -07:00
a082cb87cb
fix: replace primitive values in config without quotes
2023-03-25 12:12:56 +05:30
1c51a8e229
Allow defining custom variables in config file ( #612 ).
...
Merge pull request #60 from diivi/feat/constants-support
2023-03-24 22:50:57 -07:00
78e8bb6c8c
reformat
2023-03-25 02:08:52 +05:30
af95134cd2
add test for complex constant
2023-03-25 02:03:36 +05:30
1bc003560a
Merge branch 'master' of https://github.com/diivi/borgmatic into feat/tag-repos
2023-03-25 01:39:26 +05:30
aeaf69f49e
pass all tests
2023-03-25 01:34:03 +05:30
e83ad9e1e4
use repository["path"] instead of repository
2023-03-25 01:04:57 +05:30
f42890430c
Add code style plugins to enforce use of Python f-strings and prevent single-letter variables.
2023-03-23 23:11:14 -07:00
6f300b0079
feat: constants support
2023-03-24 02:39:37 +05:30
7a2f287918
reformat base
2023-03-23 01:08:30 +05:30
8a63c49498
feat: tag repos
2023-03-23 01:01:26 +05:30
39ad8f64c4
add tests and remove magic number
2023-03-21 17:06:03 +05:30
e86d223bbf
Merge branch 'master' of https://github.com/diivi/borgmatic into feat/file-urls-support
2023-03-21 16:55:05 +05:30
58c95d8015
feat: file:// URLs support
2023-03-20 02:43:23 +05:30
b115fb2fbe
Merge branch 'master' of github.com:borgmatic-collective/borgmatic
2023-03-18 14:01:52 -07:00
31d04d9ee3
Optionally error if a source directory does not exist.
...
feat: add optional check for existence of source directories
2023-03-18 13:59:20 -07:00
d17b2c74db
feat: add optional check for existence of source directories
2023-03-18 04:35:55 +05:30
fb9677230b
add test to ensure integers are converted to string
...
before setting them up to be environment variable values
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-18 02:57:56 +05:30
0db137efdf
add option to set borg_files_cache_ttl in config
...
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-18 01:48:24 +05:30
b343363bb8
Change the default action order to: "create", "prune", "compact", "check" ( #304 ).
2023-03-08 14:05:06 -08:00
d88bcc8be9
Add Healthchecks "log" state feature to NEWS.
2023-03-07 15:45:23 -08:00
332f7c4bb6
Add support for healthchecks "log" feature ( #628 ).
...
Reviewed-on: borgmatic-collective/borgmatic#645
2023-03-07 22:21:30 +00:00