Commit Graph

129 Commits

Author SHA1 Message Date
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
9e2674ea5a Added unit tests
Removed useless dry run check
2023-08-23 17:17:23 +02:00
7e419ec995 Fixed spelling errors
Added documentation
Added log messages for dry run
2023-08-22 23:03:14 +02:00
a3edf757ee Added changes of formatting tools 2023-08-22 13:40:05 +02:00
e576403b64 Added support for grafana loki 2023-08-22 03:13:39 +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
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
e53dd3da87 fix witten reported mysql error 2023-06-17 22:58:59 +05:30
89602d1614 pass all existing tests (and formatting) 2023-06-16 15:14:00 +05:30
8389851f2f fix bug where port becomes truthy when none is converted to str 2023-06-15 23:34:50 +05:30
62b6f13299 add restore-path support for sqlite 2023-06-15 23:02:09 +05:30
b7423c488e refactor password assignment logic 2023-06-15 22:54:06 +05:30
a9386b7a87 add mongodb support, and sqlite restore path (config option only) 2023-06-15 02:18:24 +05:30
205e5b1524 mysql support 2023-06-15 01:47:46 +05:30
67f4d43aec witten review 2023-06-15 01:37:18 +05:30
230cf6adc4 support command line args for hostname port username password 2023-06-14 00:11:19 +05:30
8e8e64d920 add no-owner and refactor 2023-06-13 23:42:50 +05:30
f558cb3156 feat: allow restoring to different port/host/username 2023-06-12 21:54:39 +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
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
17f122bfe5 Use psql instead of pg_restore when format is "plain"
pg_restore: error: input file appears to be a text format dump. Please use psql.
2023-04-14 17:38:19 +02:00
f0f43174c6 Swap if-else in restore_database_dump in postgresql hook for cleanliness 2023-04-14 17:38:19 +02:00
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
195024e505 Fix psql_command and pg_restore_command to accept command with arguments
These commands are executed without `shell=True`, so the subprocess
module treats e.g. "docker exec my_pg_container psql" as a single command
(resulting in Errno 2 "No such file or directory") instead of a command
with arguments.
2023-04-14 17:37:38 +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
874fba7672 Fix PostgreSQL hook not using "psql_command" for list when dumping "all" 2023-04-14 15:13:49 +02:00
2fea429d78 collection restore for mongodb 2023-04-12 09:34:19 +05:30
264cebd2b1 complete psql multi schema backup 2023-04-11 23:19:49 +05:30
9bc2322f9a feat: restore specific schemas 2023-04-06 02:10:36 +05:30
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
044ae7869a fix tests
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-08 03:30:12 +05:30
4fcfddbe08 return early if unsupported state is passed
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-06 19:58:57 +05:30
45256ae33f add test for healthchecks
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-06 03:38:08 +05:30
1573d68fe2 update schema.yaml description
also add monitor.State.LOG to cronitor.

Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-05 21:57:13 +05:30
69f6695253 Add support for healthchecks "log" feature #628
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-05 19:27:32 +05:30
e1f02d9fa5 Add SQLite feature to NEWS and also integrations.
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-04 09:59:16 -08:00
cf0275a3ed remove test path 2023-03-04 23:00:57 +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