Commit Graph

611 Commits

Author SHA1 Message Date
Paul Hoffmann 62d7835018 Add ntfy warning 2023-03-31 11:47:54 +02:00
Dan Helfman caba5f8291 Update schema comment for check_repositories to mention labels (#635). 2023-03-31 11:46:38 +02:00
Divyansh Singh fb92e1aec4 reformat 2023-03-31 11:46:38 +02:00
Divyansh Singh 6de48fa5d8 fix: make check repositories work with dict and str repositories 2023-03-31 11:46:38 +02:00
Dan Helfman 11798edc15 Mention prior versions of borgmatic in repositories schema. 2023-03-31 11:46:38 +02:00
Dan Helfman f8a81419c4 Fix repository schema description. 2023-03-31 11:46:38 +02:00
Divyansh Singh 698468e322 rename repository arg to repository_path in all borg actions 2023-03-31 11:46:38 +02:00
Divyansh Singh 6be334d388 remove optional label for repos from tests 2023-03-31 11:46:38 +02:00
Divyansh Singh 0aa554cfa5 reformat 2023-03-31 11:46:36 +02:00
Divyansh Singh 74abc19df6 pass all tests 2023-03-31 11:45:34 +02:00
Divyansh Singh 4c8600aa5d use repository["path"] instead of repository 2023-03-31 11:45:02 +02:00
Divyansh Singh 31b552df68 reformat base 2023-03-31 11:37:04 +02:00
Divyansh Singh f2b2b3c984 feat: tag repos 2023-03-31 11:37:02 +02:00
Dan Helfman 1d79fa3910 When a database command errors, display and log the error message instead of swallowing it (#396). 2023-03-31 11:36:15 +02:00
Dan Helfman c0ab5ae422 Removing debugging command output. 2023-03-31 11:36:15 +02:00
Dan Helfman 1f7f31098d Add documentation and NEWS for custom constants feature (#612). 2023-03-31 11:36:15 +02:00
Divyansh Singh df85d3e8d1 fix: replace primitive values in config without quotes 2023-03-31 11:36:15 +02:00
Divyansh Singh b48710b544 reformat 2023-03-31 11:36:15 +02:00
Divyansh Singh d5ad78d9af add test for complex constant 2023-03-31 11:36:15 +02:00
Divyansh Singh 0ae811c25d feat: constants support 2023-03-31 11:36:15 +02:00
Divyansh Singh 9e037af926 fix: docs cli reference create spelling 2023-03-31 11:36:15 +02:00
Dan Helfman 7d1b8ed393 Add code style plugins to enforce use of Python f-strings and prevent single-letter variables. 2023-03-31 11:36:15 +02:00
Dan Helfman 81c81792f7 Add missing source directory error fix to NEWS (#655). 2023-03-31 11:36:15 +02:00
Divyansh Singh a0810671bd review 2023-03-31 11:36:15 +02:00
Divyansh Singh c1a15d4cb4 remove extra parameter from function call 2023-03-31 11:36:15 +02:00
Divyansh Singh 9bff81ed1f use exit_code_indicates_error and modify it to accept a command 2023-03-31 11:36:13 +02:00
Divyansh Singh 419678e0a3 fix: no error on database backups without source dirs 2023-03-31 11:35:34 +02:00
Divyansh Singh baec8acbf8 fix: rephrase error when running from config
to avoid confusion, as the user might think the problem is with their config file
2023-03-31 11:35:34 +02:00
Dan Helfman a241b8a38b Remove unused module and outdated test expectations (#576). 2023-03-31 11:35:34 +02:00
Divyansh Singh f4b3681013 add tests and remove magic number 2023-03-31 11:35:34 +02:00
Divyansh Singh 91a916967c reformat 2023-03-31 11:35:34 +02:00
Divyansh Singh 58798e0592 add tests 2023-03-31 11:35:34 +02:00
Divyansh Singh d0dce1c362 feat: add optional check for existence of source directories 2023-03-31 11:35:34 +02:00
Soumik Dutta e1a182418a 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-31 11:35:34 +02:00
Soumik Dutta 26c83d1f62 add option to set borg_files_cache_ttl in config
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-31 11:35:34 +02:00
Nain 5c89ad6eda Add "--repository" flag to the "create" action 2023-03-31 11:35:34 +02:00
Nain a0dbe93554 Add "--repository" flag to the "compact" action 2023-03-31 11:35:34 +02:00
Nain 5af6d784bd Add "--repository" flag to the "check" action 2023-03-31 11:35:34 +02:00
Nain c804793453 Add "--repository" flag to the "prune" action
part of ticket #564
2023-03-31 11:35:34 +02:00
Dan Helfman 9f1d183712 Add "--strip-components all" on the "extract" action to remove leading path components (#647). 2023-03-31 11:35:34 +02:00
Dan Helfman 9fa57b3190 Change the default action order to: "create", "prune", "compact", "check" (#304). 2023-03-31 11:35:33 +02:00
Dan Helfman 15ca234349 Run any command-line actions in the order specified instead of using a fixed ordering (#304). 2023-03-31 11:35:33 +02:00
Dan Helfman fc9bf03409 Add Healthchecks "log" state feature to NEWS. 2023-03-31 11:35:33 +02:00
Soumik Dutta e66afc8d8a fix tests
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-31 11:35:33 +02:00
Soumik Dutta e4fe56f526 return early if unsupported state is passed
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-31 11:35:33 +02:00
Soumik Dutta 850021b749 add test for healthchecks
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-31 11:35:29 +02:00
Soumik Dutta 49564585dd update schema.yaml description
also add monitor.State.LOG to cronitor.

Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-31 11:34:42 +02:00
Soumik Dutta 01b4d7c27e Add support for healthchecks "log" feature #628
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-31 11:34:39 +02:00
Dan Helfman dbb39d0b10 Add flake8-quotes to complain about incorrect quoting so I don't have to! 2023-03-31 11:33:18 +02:00
Divyansh Singh b0a1ba867c send repo directly to extract and export_tar 2023-03-31 11:33:18 +02:00