Dan Helfman
b0e083eff2
BREAKING: Support disabling both constant and variable interpolation by escaping with backslashes ( #1213 ).
2026-01-05 15:39:14 -08:00
Dan Helfman
047a374514
Fix existing automated tests ( #1208 ).
2025-12-25 13:56:01 -08:00
Dan Helfman
b8642439cd
Fix for the database "restore" action restoring more databases than the "--database" flag specifies ( #1208 ).
2025-12-22 15:46:28 -08:00
Dan Helfman
54d955bc95
Fix automated tests and update NEWS ( #1206 ).
2025-12-20 16:59:13 -08:00
Dan Helfman
a72f9b24b5
Merge branch jacksonchen666-btrfs-remove-pid into btrfs-remove-pid and streamline the docs a bit.
2025-12-20 16:02:42 -08:00
Dan Helfman
b4ea45ab74
Allow the Btrfs hook to create and delete snapshots even when running as a non-root user ( #1054 ).
2025-12-19 19:10:31 -08:00
Dan Helfman
6ae9b973fc
For the MariaDB and MySQL database hooks, creates a consistent snapshot by dumping all tables in a single transaction ( #1193 ).
2025-12-19 11:53:30 -08:00
Dan Helfman
a31f913f54
For the MariaDB and MySQL database hooks, add a "socket_path" option for Unix socket database connections ( #1193 ).
2025-12-14 21:13:21 -08:00
Dan Helfman
50a062611e
Fix a regression in the ZFS, LVM, and Btrfs hooks in which snapshotted paths ignored global excludes ( #1195 ).
2025-12-02 15:40:42 -08:00
Jackson
dec47298bd
somehow make a test work
2025-11-22 08:03:40 +01:00
Jackson
f95fbaa6aa
fix at least some tests (with changed snapshot path)
...
this really is just a blanket find and replace though
2025-11-21 09:22:34 +01:00
Dan Helfman
a7356f2360
Fix for the database dumps hooks not respecting the "working_directory" option ( #1127 ).
...
Reviewed-on: https://projects.torsion.org/borgmatic-collective/borgmatic/pulls/1129
2025-11-19 18:40:50 +00:00
Dan Helfman
0e9193c46b
Add an "ask_for_password" option to the KeePassXC credential hook for disabling KeePassXC's password prompt ( #1181 ).
2025-11-14 21:20:21 -08:00
bockulator
ce7f0226be
Mock get_working_directory() calls in data source hook tests
2025-11-11 15:36:51 +01:00
bockulator
51ef9c7708
Fix database dumps hooks not respecting working_directory
2025-11-11 14:22:34 +01:00
Dan Helfman
14a8055e71
In the SQLite database hook, run SQLite such that it exits upon encountering an error instead of, you know, not doing that.
2025-11-07 23:22:44 -08:00
Tom Janssen
7cca1358fb
incorporate feedback
2025-10-29 09:50:55 +01:00
Tom Janssen
d0b5244888
add environment option
2025-10-28 16:52:50 +01:00
Dan Helfman
0f7ebcb4b7
Fix for a regression in the ZFS, LVM, and Btrfs hooks in which partial excludes of snapshot paths were ignored ( #1169 ).
2025-10-26 14:12:52 -07:00
Dan Helfman
dcd567f4f0
Fix for a runtime directory error when the configured patterns contain a global exclude ( #1150 ).
2025-10-22 11:10:42 -07:00
Dan Helfman
4017897b1a
For the MariaDB and MySQL database hooks, add a "skip_names" option to ignore particular databases when dumping "all" ( #973 ).
2025-10-16 14:48:42 -07:00
Dan Helfman
75405bed89
Cache Btrfs get property commands ( #1105 ).
2025-10-01 22:50:33 -07:00
Dan Helfman
5dca281439
Simplify logic around checking for read-only Btrfs subvolumes ( #1105 ).
2025-09-30 12:19:57 -07:00
Dan Helfman
e2cdcba4e7
Get tests passing ( #1105 ).
2025-09-29 23:06:49 -07:00
Dan Helfman
98ddb3e535
Fix several existing tests ( #1105 ).
2025-09-28 15:45:21 -07:00
Dan Helfman
1192451718
Fix snapshotting in the ZFS, Btrfs, and LVM hooks to play nicely with the Borg 1.4+ "slashdot" hack within source directory paths ( #1151 ).
2025-09-25 10:24:12 -07:00
Dan Helfman
4f0162d5f2
Add loading of systemd credentials even when running borgmatic outside of a systemd service ( #1123 ).
2025-09-24 10:34:20 -07:00
Dan Helfman
a388b17271
No longer defaulting Dump(hostname=...) to "localhost" ( #1116 ).
2025-09-18 19:22:45 -07:00
Dan Helfman
da65063216
Make test code style more consistent with the rest of the codebase ( #1116 ).
2025-09-17 21:55:36 -07:00
Florian Apolloner
0e90087dc4
Finalize container support
2025-09-15 22:16:49 +02:00
Florian Apolloner
b306cac5c1
raise ValueError if json decode fails when getting the container ip
2025-09-15 20:02:31 +02:00
Florian Apolloner
0d190016d3
rename utils.py to config.py
2025-09-15 20:02:31 +02:00
Florian Apolloner
a2c9bb12e5
test fixes
2025-09-15 20:02:31 +02:00
Florian Apolloner
04cc58a5c7
fixes and more tests.
2025-09-15 20:02:31 +02:00
Florian Apolloner
133a11c647
add support for container names/id when dumping databases.
2025-09-15 20:02:31 +02:00
Florian Apolloner
c084f10fe2
Add support for a database backup label instead of host:port ( #1116 )
2025-09-15 20:02:31 +02:00
Dan Helfman
084fbd2f16
PR "feedback": Adding a key to the dumps metadata JSON for clarity and expandability ( #1136 ).
2025-09-14 15:30:07 -07:00
Dan Helfman
627898cc23
Add tests for new code.
2025-09-05 16:02:23 -07:00
Dan Helfman
46381175ef
Code formatting.
2025-09-05 14:33:40 -07:00
Dan Helfman
9bbce71673
Fix tests for database hooks.
2025-09-04 10:36:00 -07:00
Dan Helfman
563cb8441e
When making HTTP requests in monitoring hooks, set "borgmatic" as the user agent ( #1139 ).
2025-09-01 16:51:33 -07:00
Dan Helfman
36d6619099
Create LVM snapshots as read-write to avoid an error when snapshotting ext4 filesystems with orphaned files that need recovery ( #1126 ).
2025-08-11 10:01:13 -07:00
Dan Helfman
9a80fec91b
When running tests, use Ruff for faster and more comprehensive code linting and formatting.
2025-07-17 23:24:58 -07:00
Dan Helfman
3eed3191e8
Add a flake8 extension to tests to detect commented out code.
2025-06-30 21:42:38 -07:00
Dan Helfman
0d54fda27a
Use the Bandit security analysis tool when running tests.
...
SECURITY: Add timeouts to all monitoring hooks to prevent hangs on network requests.
SECURITY: For the "spot" check, use a more secure source of randomness when selecting paths to check.
2025-06-27 22:30:00 -07:00
Dan Helfman
05b34d4b56
Fix unit/integration tests and add coverage ( #1043 ).
2025-06-27 12:37:03 -07:00
Dan Helfman
5966022b67
Fix for the LVM hook erroring when the "--dry-run" flag is used ( #1093 ).
2025-05-12 11:50:55 -07:00
Florian Apolloner and apollo13
3d44e95c1a
Explicitly close filedescriptors when invoking lvm commands. Closes #1068
2025-04-30 07:42:55 +00:00
Dan Helfman
091e9fa9ee
Add a "password_transport" option to the MariaDB and MySQL database hooks for customizing how borgmatic transmits passwords to the database client ( #1033 ).
2025-04-29 14:19:15 -07:00
Dan Helfman
6ebfd60e21
Fix an incorrect warning about Borg placeholders being unsupported in a command hook ( #1075 ).
2025-04-20 15:06:21 -07:00