Commit Graph

360 Commits

Author SHA1 Message Date
631c3068a9 systemd security settings 2020-08-22 15:41:25 +02:00
3c723e8d99 Merge branch 'master' into master 2020-08-12 21:11:45 +00:00
c5776447b9 fixed description strings for before_extract and after_extract 2020-08-12 23:07:57 +02:00
5356f487a5 Move before/after_everything hooks so they're easier to find.
All checks were successful
continuous-integration/drone/push Build is passing
2020-08-12 13:46:31 -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
Jakub Duchateau
95c415f416
Change "before" to "after" in desc 2020-08-07 16:41:35 +02:00
06dc336481 Fix schema exclude patterns example path.
All checks were successful
continuous-integration/drone/push Build is passing
2020-08-06 09:59:48 -07:00
893fca2816 Add before_extract and after_extract hooks 2020-08-01 16:08:32 +02:00
b3fd1be5f6 Add "borgmatic export-tar" action to export an archive to a tar-formatted file or stream (#300).
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2020-07-22 21:53:55 -07:00
a23083f737 Clarify schema documentation about skipping pruning.
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-22 10:35:16 -07:00
0a659a397f Attempt to fix no-repro test failure of log_outputs() (#339).
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-07 22:05:53 -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
17c2d109e5 Add tests for pass-through of BORG_* environment variables.
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-21 14:41:22 -07:00
c8d5de2179 Fix broken pass-through of BORG_* environment variables to Borg (#327).
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: witten/borgmatic#327
2020-06-21 21:29:59 +00:00
f5ebca4907 Add SSL support to PostgreSQL database configuration (#331).
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: witten/borgmatic#331
2020-06-20 21:24:14 +00:00
01db676d68 Change the example for the ssl_mode parameter 2020-06-20 23:32:24 +03:00
27cbe9dfc0 Fix for potential data loss (data not getting backed up) when borgmatic omitted configured source directories in certain situations (#333).
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-19 20:16:38 -07:00
8fb830099f Re-add the ilbpq-ssl documentation URL to the schema
It's been moved from describing `ssl_mode` to the general
postgresql_database description key.
2020-06-19 13:22:39 +03:00
463a133a63 Ensure schema lines are less than 80 characters in length 2020-06-19 13:22:39 +03: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
7fb4061759 Improve configuration reference documentation readability via more aggressive word-wrapping in configuration schema descriptions.
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-17 23:15:12 -07:00
a12a1121b6 Use values from BORG_* env variables if they are not specified in config.yaml 2020-06-15 19:50:11 +02:00
aa14449857 Add "borgmatic extract --strip-components" flag to remove leading path components when extracting an archive (#324).
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-06 14:57:14 -07: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
a155eefa23 Fix for certain configuration options like ssh_command impacting Borg invocations for separate configuration files (#323). 2020-06-06 14:30:04 -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
00033bf0a8 Tweak comment indentation in generated configuration file for clarity.
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-02 11:37:13 -07:00
097a09578a Fix enabled database hooks to implicitly set one_file_system configuration option to true to prevent Borg hang. (#315).
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-26 09:20:14 -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
96df52ec50 Fix hang when streaming a database dump to Borg with implicit duplicate source directories by deduplicating them first (#316).
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-20 13:33:53 -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
2ddf38f99c Fix error handling when executing commands to handle more edge cases.
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-14 23:04:01 -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
15ea70a71b Flesh out missing test coverage for execute.py.
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-12 15:49:49 -07:00
3bcef72050 Add some missing test mocks that were masking lack of unit coverage.
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-11 11:17:24 -07:00
695c764a01 Merge log output functions into one. 2020-05-11 10:55:50 -07:00
f7c93ea2e8 Wait for process to finish before trying to check exit status.
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-09 23:09:48 -07:00
1ea047dd94 Remove "borgmatic restore --progress" flag, as it now conflicts with streaming database restores. 2020-05-09 21:53:16 -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
12cf6913ef Remove unused function parameter.
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-03 14:07:34 -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