Commit Graph

68 Commits

Author SHA1 Message Date
3ecd0e731e Initial work on spot check schema and preparatory refactoring (#656). 2024-03-20 11:58:59 -07:00
e9813d2539 Allow the "--repository" flag to match across multiple configuration files (#818). 2024-01-21 18:25:44 -08:00
4d79f582df Fix a traceback when providing an invalid "--override" value for a list option (#814).
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-18 10:39:40 -08:00
63198088c4 Store included configuration files within each backup archive in support of the "config bootstrap" action (#736).
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-09 13:47:20 -08:00
3c22a8ec16 Prevent various shell injection attacks (#810).
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-07 10:21:49 -08:00
8b49a59aff Fix a traceback when the "repositories" option contains both strings and key/value pairs (#794). 2023-12-04 11:17:13 -08:00
3b99f7c75a Constants support includes and command-line overrides (#745, #782) 2023-11-19 21:13:35 -08:00
13cf863d89 Fix tests (#783).
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-07 10:09:31 -08:00
ef448e2dd1 Add a "skip_actions" option to skip running particular actions (#701).
All checks were successful
continuous-integration/drone/push Build is passing
2023-10-31 21:54:41 -07:00
c3efe1b90e Only parse "--override" values as complex data types when they're for options of those types (#779).
All checks were successful
continuous-integration/drone/push Build is passing
2023-10-29 19:02:28 -07:00
487d8ffd32 Fix normalization of deprecated sections to support empty sections without erroring (#771).
All checks were successful
continuous-integration/drone/push Build is passing
2023-10-14 13:04:18 -07:00
175003ff9b Additional test coverage (#732).
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-01 19:45:01 -07:00
b8d349d048 Additional test coverage (#732).
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-01 16:27:53 -07:00
48b6a1679a Remove sections (#721).
Some checks failed
continuous-integration/drone/push Build is failing
2023-07-08 23:14:30 -07:00
9cf27fa4ba Deprecated configuration options warning logging.
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-29 10:03:36 -07:00
b9a11e860d Remove legacy configuration parsing code, no longer needed with upgrade-borgmatic-config gone (#529). 2023-06-25 15:36:25 -07:00
b10aee3070 Remove upgrade-borgmatic-config command for upgrading borgmatic 1.1.0 INI-style configuration (#529).
Some checks failed
continuous-integration/drone/push Build is failing
2023-06-19 23:17:59 -07:00
c294e78715 Use absolute paths when storing configuration files in an archive for later bootstrapping (#697).
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-15 21:45:43 -07:00
1a5b3c9e4e Add Fedora schema loading fix to NEWS (#703).
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-03 22:07:24 -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
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
0b397a5bf9 Fix borgmatic error when not finding the configuration schema for certain "pip install --editable" development installs (#687).
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-30 16:24:10 -07:00
8cb5a42a9e Drop deprecated pkg_resources in favor of importlib.metadata and packaging.
Some checks failed
continuous-integration/drone/push Build is failing
2023-04-14 21:21:25 -07:00
5dbb71709c Upgrade test requirements and code style requirements. Auto-reformat code accordingly.
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-14 19:35:24 -07:00
3512191f3e Add check_repositories regression fix to NEWS (#662).
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-28 11:45:55 -07:00
08e358e27f add and update tests 2023-03-28 22:51:35 +05:30
b336b9bedf add tests for repo labels 2023-03-27 00:19:23 +05:30
b511e679ae remove optional label for repos from tests 2023-03-26 16:59:29 +05:30
1bc003560a Merge branch 'master' of https://github.com/diivi/borgmatic into feat/tag-repos 2023-03-25 01:39:26 +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.
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-23 23:11:14 -07:00
39ad8f64c4 add tests and remove magic number 2023-03-21 17:06:03 +05:30
89500df429 Fix traceback when a configuration section is present but lacking any options (#604).
All checks were successful
continuous-integration/drone/push Build is passing
2022-10-23 13:56:03 -07:00
89d201c8ff Fleshing out NEWS for the Borg 2 changes.
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-17 21:54:00 -07:00
f47c98c4a5 Rename several configuration options to match Borg 2 (#557).
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-17 21:14:58 -07:00
28d847b8b1 Warn and tranform on non-ssh://-style repositories (#557).
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-17 10:13:11 -07:00
9aece3936a Modify "mount" and "extract" actions to require the "--repository" flag when multiple repositories are configured (#566).
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-25 11:30:02 -07:00
d372a86fe6 Code formatting.
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build encountered an error
2022-06-23 10:41:04 -07:00
b63c854509 Fix escaped environment variable in configuration
- when an env variable is escaped in the configuration file, we expect
  not to resolve it and remove the escape char `\`
2022-06-17 09:50:56 +02:00
aecb6fcd74 Code style, rename command-line flag, and move new code into its own file (#546)
Some checks failed
continuous-integration/drone/push Build is failing
2022-06-16 11:35:24 -07:00
97b5cd089d Allow environment variable resolution in configuration file
- all string fields containing an environment variable like ${FOO} will
  be resolved
- supported format ${FOO}, ${FOO:-bar} and ${FOO-bar} to allow default
  values if variable is not present in environment
- add --no-env argument for CLI to disable the feature which is enabled
  by default

Resolves: #546
2022-06-16 18:52:54 +02:00
e76bfa555f Reduce the default consistency check frequency and support configuring the frequency independently for each check (#523). 2022-05-28 14:42:19 -07:00
02781662f8 Change monitoring hooks to specify the ping URL / integration key as a named option.
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-23 20:02:10 -07:00
32a1043468 Remove the error when "archive_name_format" is specified but a retention prefix isn't (#402).
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-23 16:11:24 -07:00
bec73245e9 Fix traceback when a YAML validation error occurs (#480, #482).
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-19 20:39:03 -08:00
7a086d8430 Fix import ordering.
Some checks reported errors
continuous-integration/drone/push Build was killed
2021-11-29 14:00:14 -08:00
0e8e9ced64 When command-line configuration override produces a parse error, error cleanly (#471).
Some checks failed
continuous-integration/drone/push Build is failing
2021-11-29 12:49:21 -08:00
27d37b606b Better error messages! Switch the library used for validating configuration files (from pykwalify to jsonschema).
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-22 13:27:59 -07:00
72bd96c656 Fix traceback when a configuration directory is non-readable due to directory permissions (#350).
All checks were successful
continuous-integration/drone/push Build is passing
2020-08-12 11:32:00 -07:00
94b9ef56be Change "exclude_if_present" option to support multiple filenames, rather than just a single filename (#280).
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-23 13:41:37 -08:00