Commit Graph

115 Commits

Author SHA1 Message Date
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
5f3dc1cfb0 Stream SQLite databases directly to Borg instead of dumping to an intermediate file (#807).
All checks were successful
continuous-integration/drone/push Build is passing
2023-12-31 11:07:59 -08:00
f011431463 Apprise hook documentation (#715).
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-10-04 19:23:53 -07:00
7a9625cd44 fix PR comments 2023-10-04 13:19:40 +02:00
4763c323d0 add unit tests for apprise hook 2023-10-01 16:59:59 +00:00
32019ea8f3 Add documentation for Grafana Loki hook (#743).
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-25 10:52:00 -07:00
b3d2560563 Added support for grafana loki (#743).
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #747
2023-08-25 16:28:19 +00:00
b96d1898f7 Prep work for eventual container-dumping hooks: Generalize internal database hook "API" (#685).
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-24 13:50:10 -07:00
099a712e53 Added more documentation to the test
Split tests to integration tests
2023-08-24 13:17:42 +02:00
9e2674ea5a Added unit tests
Removed useless dry run check
2023-08-23 17:17:23 +02:00
cd51e9c1ea Fix for database "restore" action not actually restore anything (#738).
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-14 12:43:21 -07:00
193dd93de2 Fork a MariaDB database hook from the MySQL database hook (#727).
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-04 13:22:44 -07:00
c11dcdef0a Fix some "borgmatic" capitalization issues.
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-26 23:38:08 -07:00
da78929415 To prevent argument parsing errors on ambiguous commands, drop support for multiple consecutive flag values.
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-13 19:25:14 -07:00
ecd9e62147 Fix last end-to-end database test (#721).
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-11 00:37:36 -07:00
ab351548d2 Fix (some) end-to-end tests (#721).
Some checks failed
continuous-integration/drone/push Build is failing
2023-07-09 17:40:02 -07:00
48b6a1679a Remove sections (#721).
Some checks failed
continuous-integration/drone/push Build is failing
2023-07-08 23:14:30 -07:00
69611681e2 Add database restore overrides to NEWS, add a test, and move some tests (#326).
Some checks failed
continuous-integration/drone/push Build is failing
2023-06-22 12:40:57 -07:00
87c6e5b349 make sure restore params in config aren't used when cli args are supplied 2023-06-21 00:03:07 +05:30
1a21eb03cd add tests for all databases 2023-06-20 00:52:01 +05:30
e2d82e9bba actually test port restores 2023-06-19 01:10:01 +05:30
384182172a add unit tests for cases when cli/config restore args are used 2023-06-18 06:29:11 +05:30
6c87608548 add tests for password logic 2023-06-17 00:47:15 +05:30
89602d1614 pass all existing tests (and formatting) 2023-06-16 15:14:00 +05:30
5962fd473e Another try. Backing out psql error changes (#678).
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-21 10:34:50 -07:00
ee5c25f3bd Add additional tests for PostgreSQL hook fixes (#678).
Some checks failed
continuous-integration/drone/push Build is failing
2023-04-20 21:44:42 -07:00
da0f5a34f2 Fix multiple bugs in PostgreSQL hook (#678).
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #677
2023-04-21 04:05:22 +00: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
f273e82d74 add tests 2023-04-15 02:57:51 +05:30
dfccc1b94a Exit on error when restoring all PostgreSQL databases
"--set ON_ERROR_STOP=on" is equivalent to "--exit-on-error" in
pg_restore.
2023-04-14 17:38:18 +02:00
19a00371f5 Run "psql" with "--no-psqlrc"
Some settings in user's .psqlrc, e.g. "linestyle unicode", may break the
CSV output. "--no-psqlrc" tells psql to not read startup file.

This is not necessary for the analyze_command and restore_command (with
all_databases), but it's generally recommended when running psql from a
script.
2023-04-14 17:37:37 +02:00
d0d3a39833 When a database command errors, display and log the error message instead of swallowing it (#396).
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-27 10:36:39 -07:00
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
d88bcc8be9 Add Healthchecks "log" state feature to NEWS.
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-07 15:45:23 -08:00
332f7c4bb6 Add support for healthchecks "log" feature (#628).
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #645
2023-03-07 22:21:30 +00:00
5d19d86e4a Add flake8-quotes to complain about incorrect quoting so I don't have to!
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-07 14:08:35 -08:00
044ae7869a fix tests
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-08 03:30:12 +05:30
98e429594e added tests to make sure unsupported log states are detected
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-06 20:31:00 +05:30
45256ae33f add test for healthchecks
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-06 03:38:08 +05:30
c71eb60cd2 mock os.remove instead of actually removing a file 2023-03-04 13:08:30 +05:30
675e54ba9f use os.remove and improve tests 2023-03-04 12:43:07 +05:30
903507bd03 code review 2023-03-04 01:27:07 +05:30
3aa88085ed formatting fix 2023-03-03 00:01:52 +05:30
af1cc27988 feat: add dump-restore support for sqlite databases 2023-03-02 23:55:16 +05:30
da321e180d Fix the "create" action with the "--dry-run" flag querying for databases when a PostgreSQL/MySQL "all" database is configured.
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-26 22:15:12 -08:00
95575c3450 Add auth test for the ntfy hook 2023-02-25 20:04:39 +01:00
418ebc8843 Add MySQL database hook "add_drop_database" configuration option to control whether dumped MySQL databases get dropped right before restore (#642).
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2023-02-20 15:32:47 -08:00
f5a448c7c2 Fix for potential data loss (data not getting backed up) when dumping large "directory" format PostgreSQL/MongoDB databases (#643).
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-20 15:18:51 -08:00
c1eb210253 Fix code style flake issue.
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-26 15:09:35 -08:00
30cca62d09 Add configuration options for database command customization (#630).
Some checks failed
continuous-integration/drone/push Build is failing
2023-01-26 14:59:17 -08:00