0
0
Fork 0
mirror of https://projects.torsion.org/witten/borgmatic.git synced 2025-04-25 04:51:30 +00:00
Commit graph

46 commits

Author SHA1 Message Date
Dan Helfman
6b2f2b2ac4 Reorganize data source and monitoring hooks to make developing new hooks easier. 2024-11-27 08:50:34 -08:00
Dan Helfman
689643e5fa Move bootstrap manifest file creation into a hook so it can actually clean up after itself. 2024-11-24 16:00:33 -08:00
Dan Helfman
1e7f6d9f41 ZFS hook support for borgmatic's --dry-run (). 2024-11-21 11:55:45 -08:00
Dan Helfman
f9e920dce9 Prevent ZFS snapshots from ending up in the Borg archive twice (). 2024-11-21 10:23:27 -08:00
Dan Helfman
ab43ef00ce ZFS snapshots WIP (). 2024-11-20 22:21:27 -08:00
Dan Helfman
8f5ea95348 Fix use of borgmatic runtime directory in the restore action (). 2024-11-16 12:19:20 -08:00
Dan Helfman
295bfb0c57 Update the logic that probes for the borgmatic streaming database dump, bootstrap metadata, and check state directories to support more platforms and use cases (). 2024-11-15 18:15:32 -08:00
Dan Helfman
814cdb4b87 Deprecate the "borgmatic_source_directory" option in favor of "user_runtime_directory" and "user_state_directory" (). Move the default borgmatic streaming database dump and bootstrap metadata location on disk (). With Borg 1.4+, store database dumps and bootstrap metadata in a "/borgmatic" directory within a backup archive (). Add "--local-path", "--remote-path", and "--user-runtime-directory" flags to the "config bootstrap" action. 2024-11-03 13:14:05 -08:00
Dan Helfman
4c2eb2bfe3 Spot check basically complete other than docs (). 2024-04-15 11:02:05 -07:00
shivansh02
b6cb7da98e custom dump commands for mariadb 2024-03-04 00:24:22 +05:30
shivansh02
9e3d19a406 custom commands escaped 2024-03-03 23:31:02 +05:30
shivansh02
2b755d8ade custom show command for mysql and schema description 2024-03-03 23:15:07 +05:30
shivansh02
925f99cfef custom dump command for mysql 2024-03-03 03:47:02 +05:30
Dan Helfman
32019ea8f3 Add documentation for Grafana Loki hook (). 2023-08-25 10:52:00 -07:00
Dan Helfman
b96d1898f7 Prep work for eventual container-dumping hooks: Generalize internal database hook "API" (). 2023-08-24 13:50:10 -07:00
Dan Helfman
cd51e9c1ea Fix for database "restore" action not actually restore anything (). 2023-08-14 12:43:21 -07:00
Dan Helfman
ecd9e62147 Fix last end-to-end database test (). 2023-07-11 00:37:36 -07:00
Dan Helfman
48b6a1679a Remove sections (). 2023-07-08 23:14:30 -07:00
Divyansh Singh
e53dd3da87 fix witten reported mysql error 2023-06-17 22:58:59 +05:30
Divyansh Singh
89602d1614 pass all existing tests (and formatting) 2023-06-16 15:14:00 +05:30
Divyansh Singh
8389851f2f fix bug where port becomes truthy when none is converted to str 2023-06-15 23:34:50 +05:30
Divyansh Singh
205e5b1524 mysql support 2023-06-15 01:47:46 +05:30
Dan Helfman
5dbb71709c Upgrade test requirements and code style requirements. Auto-reformat code accordingly. 2023-04-14 19:35:24 -07:00
Dan Helfman
d0d3a39833 When a database command errors, display and log the error message instead of swallowing it (). 2023-03-27 10:36:39 -07:00
Dan Helfman
f42890430c Add code style plugins to enforce use of Python f-strings and prevent single-letter variables. 2023-03-23 23:11:14 -07:00
Dan Helfman
da321e180d Fix the "create" action with the "--dry-run" flag querying for databases when a PostgreSQL/MySQL "all" database is configured. 2023-02-26 22:15:12 -08:00
Dan Helfman
418ebc8843 Add MySQL database hook "add_drop_database" configuration option to control whether dumped MySQL databases get dropped right before restore (). 2023-02-20 15:32:47 -08:00
Dan Helfman
30cca62d09 Add configuration options for database command customization (). 2023-01-26 14:59:17 -08:00
Dan Helfman
0e6b2c6773 Optionally dump "all" PostgreSQL databases to separate files instead of one combined dump file (, ). 2023-01-25 23:31:07 -08:00
Dan Helfman
f67c544be6 Optionally dump "all" PostgreSQL databases to separate files instead of one combined dump file (, ). 2022-12-15 22:59:42 -08:00
Dan Helfman
9c42e7e817 Fix regression in which "check" action errored on certain systems (, ). 2022-10-14 16:19:26 -07:00
Dan Helfman
e85d551eac Fix all database hooks to error when the requested database to restore isn't present in the Borg archive (). 2022-07-06 23:21:24 -07:00
Dan Helfman
a1673d1fa1 Fix unicode error when restoring particular MySQL databases (). 2021-12-08 16:40:25 -08:00
nebulon42
c3e76585fc
move mysqldump options to the beginning of the command due to MySQL bug 30994. 2021-11-26 17:16:03 +01:00
nebulon42
3729ba5ca3
add list_options setting, fixes 2021-11-20 15:43:58 +01:00
Dan Helfman
d7277893fb Fix hang when a stale database dump named pipe from an aborted borgmatic run remains on disk (). 2020-06-02 12:40:32 -07:00
Dan Helfman
65472c8de2 Fix error message when there are no MySQL databases to dump for "all" databases (). 2020-05-26 08:59:04 -07:00
Dan Helfman
d88f321cef Fix legitimate database dump command errors (exit code 1) not being treated as errors by borgmatic (). 2020-05-14 22:38:38 -07:00
Dan Helfman
4b523f9e2c Make database restore output only show at verbosity 2. 2020-05-08 19:38:33 -07:00
Dan Helfman
1ba996ad93 Additional test coverage. 2020-05-07 12:14:27 -07:00
Dan Helfman
a23fdf946d Stream database dumps and restores directly to/from Borg without using any additional filesystem space (). 2020-05-07 11:44:04 -07:00
Dan Helfman
e511014a28 Fix MySQL restore error on "all" database dump by excluding system tables (). 2020-04-22 12:17:22 -07:00
Dan Helfman
8660af745e Optionally change the internal database dump path via "borgmatic_source_directory" option in location configuration section (). 2019-12-10 16:04:34 -08:00
Dan Helfman
ded042d8cc First crack at MySQL/MariaDB database restore (). 2019-11-11 21:59:30 -08:00
Dan Helfman
9d29ecf304 Remove MySQL/MariaDB database dumps after backing them up (). 2019-11-08 11:53:27 -08:00
Dan Helfman
427b57e2a9 Database dump hooks for MySQL/MariaDB (). 2019-11-08 11:17:52 -08:00