0fbdf8d860
feat: add logfile name to hook context for interpolation
2023-04-06 09:31:24 +05:30
7e6bee84b0
Add "--log-file-format" flag for customizing the log message format ( #658 ).
2023-04-02 23:06:36 -07:00
3e8e38011b
Labels for repositories ( #635 ).
...
Merge pull request #57 from diivi/feat/tag-repos
2023-03-27 15:46:22 -07:00
b511e679ae
remove optional label for repos from tests
2023-03-26 16:59:29 +05:30
19e95628c3
Add documentation and NEWS for custom constants feature ( #612 ).
2023-03-24 23:47:05 -07:00
d6dfb8753a
reformat
2023-03-25 01:50:47 +05:30
1bc003560a
Merge branch 'master' of https://github.com/diivi/borgmatic into feat/tag-repos
2023-03-25 01:39:26 +05:30
e83ad9e1e4
use repository["path"] instead of repository
2023-03-25 01:04:57 +05:30
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
8a63c49498
feat: tag repos
2023-03-23 01:01:26 +05:30
23e7f27ee4
fix: rephrase error when running from config
...
to avoid confusion, as the user might think the problem is with their config file
2023-03-22 02:22:43 +05:30
b343363bb8
Change the default action order to: "create", "prune", "compact", "check" ( #304 ).
2023-03-08 14:05:06 -08:00
9db31bd1e9
Run any command-line actions in the order specified instead of using a fixed ordering ( #304 ).
2023-03-08 13:19:41 -08:00
45256ae33f
add test for healthchecks
...
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-06 03:38:08 +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
0e6b2c6773
Optionally dump "all" PostgreSQL databases to separate files instead of one combined dump file ( #438 , #560 ).
2023-01-25 23:31:07 -08:00
c657764367
Fix logs that interfere with JSON output by making warnings go to stderr instead of stdout ( #602 ).
2022-12-02 12:12:10 -08:00
d7f1c10c8c
To prevent Borg hangs, unconditionally delete stale named pipes before dumping databases ( #360 ).
2022-10-12 10:26:09 -07:00
ba8fbe7a44
Add "break-lock" action for removing any repository and cache locks leftover from Borg aborting ( #357 ).
2022-10-04 13:42:18 -07:00
61fb275896
Fix duplicate-appearing log entries for "list" action.
2022-08-30 20:29:26 -07:00
317dc7fbce
Add "before_actions" and "after_actions" command hooks that run before/after all the actions for each repository, update docs to cover per-repository configurations ( #463 ).
2022-08-21 21:48:37 -07:00
462326406e
Drop only-style actions like "--create", rename "prune --files" to "prune --list", and add "--list" alias to "create" and "export-tar" ( #571 ).
2022-08-21 14:25:16 -07:00
7dee6194a2
Add new "transfer" action for Borg 2 ( #557 ).
2022-08-18 23:06:51 -07:00
43d711463c
Add additional command-line flags to rcreate action ( #557 ).
2022-08-18 14:28:12 -07:00
3b6ed06686
Add --other-repo flag to rcreate action ( #557 ).
2022-08-17 17:33:09 -07:00
28d847b8b1
Warn and tranform on non-ssh://-style repositories ( #557 ).
2022-08-17 10:13:11 -07:00
30abd0e3de
Update borg action for Borg 2 support ( #557 ).
2022-08-16 09:30:00 -07:00
f36e38ec20
Update mount action for Borg 2 support ( #557 ).
2022-08-15 19:32:37 -07:00
d807ce095e
Update export-tar action for Borg 2 support ( #557 ).
2022-08-15 17:34:12 -07:00
cc04bf57df
Update list action for Borg 2 support, add rinfo action, and update extract consistency check for Borg 2.
2022-08-15 15:04:40 -07:00
94321aec7a
Update compact action for Borg 2 support ( #557 ).
2022-08-13 22:07:15 -07:00
4a55749bd2
Update prune action for Borg 2 support ( #557 ).
2022-08-13 17:26:51 -07:00
c7176bd00a
Add rinfo action for Borg 2 support ( #557 ).
2022-08-12 23:06:56 -07:00
622caa0c21
Support for Borg 2's rcreate and rinfo sub-commands ( #557 ).
2022-08-12 14:53:20 -07:00
9aece3936a
Modify "mount" and "extract" actions to require the "--repository" flag when multiple repositories are configured ( #566 ).
2022-07-25 11:30:02 -07:00
457ed80744
Fix environment variable plumbing so options in one configuration file aren't used for others ( #555 ).
2022-06-30 13:42:17 -07:00
97b5cd089d
Allow environment variable resolution in configuration file
...
- all string fields containing an environment variable like ${FOO} will
be resolved
- supported format ${FOO}, ${FOO:-bar} and ${FOO-bar} to allow default
values if variable is not present in environment
- add --no-env argument for CLI to disable the feature which is enabled
by default
Resolves : #546
2022-06-16 18:52:54 +02:00
8fa90053cf
Add "borgmatic check --force" flag to ignore configured check frequencies ( #523 ).
2022-05-28 19:29:33 -07:00
e76bfa555f
Reduce the default consistency check frequency and support configuring the frequency independently for each check ( #523 ).
2022-05-28 14:42:19 -07:00
77b84f8a48
Add Bash completion script so you can tab-complete the borgmatic command-line.
2022-05-26 10:27:53 -07:00
ed7fe5c6d0
Instead of executing "before" command hooks before all borgmatic actions run (and "after" hooks after), execute these hooks right before/after the corresponding action ( #473 ).
2022-04-21 22:08:25 -07:00
9f44bbad65
Fix borgmatic exit code (so it's zero) when initial Borg calls fail but later retries succeed ( #517 ).
2022-04-02 22:28:41 -07:00
db7499db82
Document "repositories" context to for "before_*" and "after_*" command action hooks ( #469 ).
2022-03-14 13:34:14 -07:00
6b500c2a8b
Add repositories context for command hooks.
...
Reviewed-on: borgmatic-collective/borgmatic#469
2022-03-14 20:13:15 +00:00
976516d0e1
When loading a configuration file that is unreadable due to file permissions, warn instead of erroring ( #444 ).
2022-03-08 10:19:36 -08:00
948c86f62c
When using the "numeric_owner" option with the "extract" action, tailor the flags passed to Borg depending on the Borg version ( #394 ).
2022-02-10 10:09:18 -08:00
4b5af2770d
When the "atime" option is used, tailor the flags passed to Borg depending on version ( #394 ).
2022-02-09 16:54:35 -08:00
b525e70e1c
Run "compact" action by default when no actions are specified ( #394 ).
2022-02-09 14:33:12 -08:00
48f44d2f3d
Add tests for compact action ( #394 ).
2022-02-08 12:05:02 -08:00
9582324c88
Compact repository segments with new "borgmatic compact" action ( #394 ).
2022-02-07 23:29:44 -08:00