Commit Graph

52 Commits

Author SHA1 Message Date
e40e726687 Change Healthchecks logs truncation size from 10k bytes to 100k bytes, corresponding to that same change on Healthchecks.io.
All checks were successful
continuous-integration/drone/push Build is passing
2022-04-06 22:00:18 -07:00
2ee75546f5 Add MongoDB database hook documentation.
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-04 16:26:38 -08:00
7c6ce9399c fix integration tests and mongodb auth
Some checks failed
continuous-integration/drone/pr Build is failing
2021-12-29 22:18:50 +01:00
6b7653484b Add mongodb dump hook
Some checks failed
continuous-integration/drone/pr Build is failing
2021-12-26 01:00:58 +01:00
a1673d1fa1 Fix unicode error when restoring particular MySQL databases (#476).
All checks were successful
continuous-integration/drone/push Build is passing
2021-12-08 16:40:25 -08:00
c3e76585fc
move mysqldump options to the beginning of the command due to MySQL bug 30994.
All checks were successful
continuous-integration/drone/pr Build is passing
2021-11-26 17:16:03 +01:00
3729ba5ca3
add list_options setting, fixes #306
All checks were successful
continuous-integration/drone/pr Build is passing
2021-11-20 15:43:58 +01:00
0e978299cf Fix traceback when a database hook value is null in a configuration file (#355).
All checks were successful
continuous-integration/drone/push Build is passing
2020-10-07 15:41:45 -07:00
3aaa89fb08 Formatting.
Some checks failed
continuous-integration/drone/push Build is failing
2020-06-25 20:25:29 -07:00
35d542a676 Fix for traceback when running Cronitor, Cronhub, and PagerDuty monitor hooks (#336).
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-06-25 20:23:25 -07:00
37cc229749 Fix duplicate logging to Healthchecks and send "after_*" hooks output to Healthchecks (#328).
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing
2020-06-23 11:01:03 -07:00
a16fed8887 Rename PostgreSQL SSL config variables
e.g. s/sslmode/ssl_mode/g to conform with borgmatic naming conventions.
2020-06-19 13:20:14 +03:00
33113890f5 Reduce duplication with a common function 2020-06-19 12:32:36 +03:00
abd47fc14e Add SSL support to PostgreSQL hooks 2020-06-19 02:19:17 +03:00
ed7b1cd3d7 Add some no-cover pragmas on functions that don't need tests.
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-06 14:33:06 -07:00
398665be9e Allow before_backup and similiar hooks to exit with a soft failure without altering the monitoring status (#292).
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-02 14:33:41 -07:00
d7277893fb Fix hang when a stale database dump named pipe from an aborted borgmatic run remains on disk (#316).
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-02 12:40:32 -07:00
65472c8de2 Fix error message when there are no MySQL databases to dump for "all" databases (#319).
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-26 08:59:04 -07:00
89cb5eb76d Fix regression in support for PostgreSQL's "directory" dump format (#314).
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-18 11:31:29 -07:00
d88f321cef Fix legitimate database dump command errors (exit code 1) not being treated as errors by borgmatic (#310).
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-14 22:38:38 -07:00
4b523f9e2c Make database restore output only show at verbosity 2.
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-08 19:38:33 -07:00
6a61070d85 Use shell redirection rather than the --file flag to sidestep synchronization issues when pg_dump/pg_dumpall tries to write to a named pipe.
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-08 19:11:26 -07:00
1ba996ad93 Additional test coverage.
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2020-05-07 12:14:27 -07:00
a23fdf946d Stream database dumps and restores directly to/from Borg without using any additional filesystem space (#258).
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2020-05-07 11:44:04 -07:00
dce1928dc4
Fix PostgreSQL restore error on "all" database dump. 2020-04-24 15:50:33 -07:00
Nathan Beals
3c8dc4929f Added test_restore_all_database_dump unit test.
Updated the other unit tests, as I had to re-arrange argument order
Added an 'all' test for the postgres end-to-end test.

Ran black formatter on it all.
2020-04-24 18:32:53 -04:00
e511014a28 Fix MySQL restore error on "all" database dump by excluding system tables (#301).
All checks were successful
continuous-integration/drone/push Build is passing
2020-04-22 12:17:22 -07:00
Nathan Beals
f6407bafcb Remove the --create flag, was causing an error 2020-04-10 11:24:13 -04:00
Nathan Beals
d5e9f67cec Finished. Now uses 'psql' to run the plain-text scripts that pg_dumpall creates 2020-04-10 10:55:53 -04:00
Nathan Beals
b14f371c05 First attempt at fixing this pg_dumpall/restoring issue 2020-04-10 09:20:00 -04:00
bc02c123e6 Monitor backups with PagerDuty hook integration (#245).
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2020-01-27 15:32:09 -08:00
2405e97c38 Backup to a removable drive or intermittent server via "soft failure" feature (#284).
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-24 20:52:48 -08:00
f66fd1caaa Customize Healthchecks log level via borgmatic "--monitoring-verbosity" flag (#277).
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-22 15:10:47 -08:00
8a91c79fb0 Support directory format dump cleanup.
Previously, only deleting a dump in a single-file format was supported.
This led to errors when performing a PostgreSQL directory format backup.
2020-01-19 15:15:47 +01:00
8660af745e Optionally change the internal database dump path via "borgmatic_source_directory" option in location configuration section (#259).
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-10 16:04:34 -08:00
c4aa34bf5c Fix for missing Healthchecks monitoring payload or HTTP 500 due to incorrect unicode encoding (#260).
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-30 14:51:32 -08:00
d978a2d190 Fix for database dump removal incorrectly skipping some database dumps. 2019-11-25 15:27:59 -08:00
d99e6d1994 Remove obnoxious log message when Healthchecks hook sends failure for check action. 2019-11-17 18:55:40 -08:00
50f62d73b7 When using the Healthchecks monitoring hook, include borgmatic logs in the payloads for completion and failure pings (#241).
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2019-11-17 16:54:27 -08:00
6cdc92bd0c Fix for "borgmatic restore" showing success and incorrectly extracting archive files, even when no databases are configured to restore (#246).
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2019-11-13 10:41:57 -08:00
781fac3266 Refactor ping monitors (Healthchecks, Cronitor, Cronhub) to share a common invocation and function signature.
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-12 15:31:07 -08:00
ebeb5efe05 More accurately detecting restore of unconfigured database (#228).
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-12 11:10:47 -08:00
a3e939f34b Factor out filtering of database configuration to function with tests (#228).
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-12 10:39:36 -08:00
ded042d8cc First crack at MySQL/MariaDB database restore (#228).
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-11 21:59:30 -08:00
9d29ecf304 Remove MySQL/MariaDB database dumps after backing them up (#228).
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-08 11:53:27 -08:00
427b57e2a9 Database dump hooks for MySQL/MariaDB (#228).
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-08 11:17:52 -08:00
17fda7281a Monitor backups with Cronhub hook integration. Fix Healthchecks/Cronitor hooks to respect dry run.
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2019-11-07 10:08:44 -08:00
8fd46b8c70 Monitor backups with Cronitor hook integration.
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2019-11-01 11:33:15 -07:00
939f4d4e3d Add additional tests for database restores.
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-31 14:11:19 -07:00
3006db0cae Restore backed up PostgreSQL databases via "borgmatic restore" sub-command (#229).
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-31 12:57:36 -07:00