Divyansh Singh
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
Nain
5f87ea3ec5
Add "--repository" flag to the "create" action
2023-03-16 13:15:49 -04:00
Nain
a8aeace5b5
Add "--repository" flag to the "compact" action
2023-03-16 11:13:45 -04:00
Nain
480addd7ce
Add "--repository" flag to the "check" action
2023-03-16 10:41:13 -04:00
Nain
cdbe6cdf3a
Add "--repository" flag to the "prune" action
...
part of ticket #564
2023-03-15 14:43:17 -04:00
Dan Helfman
8cec7c74d8
Add "--strip-components all" on the "extract" action to remove leading path components ( #647 ).
2023-03-09 10:09:16 -08:00
Dan Helfman
b343363bb8
Change the default action order to: "create", "prune", "compact", "check" ( #304 ).
2023-03-08 14:05:06 -08:00
Dan Helfman
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
Dan Helfman
332f7c4bb6
Add support for healthchecks "log" feature ( #628 ).
...
Reviewed-on: https://projects.torsion.org/borgmatic-collective/borgmatic/pulls/645
2023-03-07 22:21:30 +00:00
Dan Helfman
5d19d86e4a
Add flake8-quotes to complain about incorrect quoting so I don't have to!
2023-03-07 14:08:35 -08:00
Soumik Dutta
45256ae33f
add test for healthchecks
...
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-06 03:38:08 +05:30
Soumik Dutta
69f6695253
Add support for healthchecks "log" feature #628
...
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-05 19:27:32 +05:30
Dan Helfman
2a36a2a312
Add "--repository" flag to the "rcreate" action. Add "--progress" flag to the "transfer" action.
2023-02-26 23:22:23 -08:00
Dan Helfman
9b83afe491
With the "create" action, only one of "--list" ("--files") and "--progress" flags can be used.
2023-02-26 17:05:56 -08:00
Dan Helfman
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
Dan Helfman
6f3b23c79d
Lowercase borgmatic in documentation.
2022-12-23 14:12:48 -08:00
Macguire Rintoul
116f1ab989
add borgmatic minimum version to compact docs
2022-12-23 13:32:01 -08:00
Dan Helfman
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
Dan Helfman
c9742e1d04
Code formatting.
2022-10-12 10:52:32 -07:00
Dan Helfman
906da838ef
Add missing break-lock action command-line help ( #357 ).
2022-10-12 10:48:10 -07:00
Dan Helfman
d7f1c10c8c
To prevent Borg hangs, unconditionally delete stale named pipes before dumping databases ( #360 ).
2022-10-12 10:26:09 -07:00
Dan Helfman
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
Dan Helfman
2774c2e4c0
Add support for Borg 2's "--match-archives" flag (replaces "--glob-archives") ( #591 ).
2022-10-03 22:50:37 -07:00
Dan Helfman
61fb275896
Fix duplicate-appearing log entries for "list" action.
2022-08-30 20:29:26 -07:00
Dan Helfman
a274c0dbf7
In generate-borgmatic-config, indicate that the example options are exhaustive.
2022-08-24 09:53:54 -07:00
Dan Helfman
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
Dan Helfman
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
Dan Helfman
f9d7faf884
Fix mount action to work without archive again ( #557 ).
2022-08-18 23:33:05 -07:00
Dan Helfman
7dee6194a2
Add new "transfer" action for Borg 2 ( #557 ).
2022-08-18 23:06:51 -07:00
Dan Helfman
43d711463c
Add additional command-line flags to rcreate action ( #557 ).
2022-08-18 14:28:12 -07:00
Dan Helfman
f47c98c4a5
Rename several configuration options to match Borg 2 ( #557 ).
2022-08-17 21:14:58 -07:00
Dan Helfman
3b6ed06686
Add --other-repo flag to rcreate action ( #557 ).
2022-08-17 17:33:09 -07:00
Dan Helfman
3ab7a3b64a
Replace use of --prefix with --glob-archives in info action ( #557 ).
2022-08-17 15:36:19 -07:00
Dan Helfman
28d847b8b1
Warn and tranform on non-ssh://-style repositories ( #557 ).
2022-08-17 10:13:11 -07:00
Dan Helfman
30abd0e3de
Update borg action for Borg 2 support ( #557 ).
2022-08-16 09:30:00 -07:00
Dan Helfman
f36e38ec20
Update mount action for Borg 2 support ( #557 ).
2022-08-15 19:32:37 -07:00
Dan Helfman
d807ce095e
Update export-tar action for Borg 2 support ( #557 ).
2022-08-15 17:34:12 -07:00
Dan Helfman
7626fe1189
Disallow borg list --json with --archive or --find ( #557 ).
2022-08-15 15:40:28 -07:00
Dan Helfman
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
Dan Helfman
94321aec7a
Update compact action for Borg 2 support ( #557 ).
2022-08-13 22:07:15 -07:00
Dan Helfman
4a55749bd2
Update prune action for Borg 2 support ( #557 ).
2022-08-13 17:26:51 -07:00
Dan Helfman
c7176bd00a
Add rinfo action for Borg 2 support ( #557 ).
2022-08-12 23:06:56 -07:00
Dan Helfman
647ecdac29
Borg 2 support in borgmatic check action ( #557 ).
2022-08-12 15:46:33 -07:00
Dan Helfman
622caa0c21
Support for Borg 2's rcreate and rinfo sub-commands ( #557 ).
2022-08-12 14:53:20 -07:00
Dan Helfman
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
Dan Helfman
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
Dan Helfman
aecb6fcd74
Code style, rename command-line flag, and move new code into its own file ( #546 )
2022-06-16 11:35:24 -07:00
Sébastien MB
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
Dan Helfman
65b2fe86c6
Fix Bash completion script to no longer alter your shell's settings.
2022-06-09 16:29:54 -07:00
Dan Helfman
d14f22e121
Add "borgmatic list --find" flag for searching for files across multiple archives ( #541 ).
2022-06-03 15:12:14 -07:00
Dan Helfman
80ec3e7d97
Deprecate "borgmatic list --successful" flag, as listing only non-checkpoint (successful) archives is now the default in newer versions of Borg.
2022-06-02 20:35:39 -07:00
Dan Helfman
2bc91ac3d2
Add "generate-borgmatic-config --overwrite" flag to replace an existing destination file ( #539 ).
2022-05-29 16:03:55 -07:00
Dan Helfman
c7f5d5fd0b
Fix broken Bash completion of filenames, as in "-c config.yaml".
2022-05-29 10:49:33 -07:00
Dan Helfman
6ef7538eb0
Fix typo in Bash completions script.
2022-05-28 19:34:13 -07:00
Dan Helfman
8fa90053cf
Add "borgmatic check --force" flag to ignore configured check frequencies ( #523 ).
2022-05-28 19:29:33 -07:00
Dan Helfman
6629f40cab
In bash completion script, warn when script is out of date using script contents instead of version. (Fewer spurious warnings that way.)
2022-05-28 15:27:11 -07:00
Dan Helfman
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
Dan Helfman
77b84f8a48
Add Bash completion script so you can tab-complete the borgmatic command-line.
2022-05-26 10:27:53 -07:00
Dan Helfman
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
Dan Helfman
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
Dan Helfman
db7499db82
Document "repositories" context to for "before_*" and "after_*" command action hooks ( #469 ).
2022-03-14 13:34:14 -07:00
Dan Helfman
6b500c2a8b
Add repositories context for command hooks.
...
Reviewed-on: https://projects.torsion.org/borgmatic-collective/borgmatic/pulls/469
2022-03-14 20:13:15 +00:00
Dan Helfman
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
Dan Helfman
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
Dan Helfman
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
Dan Helfman
b525e70e1c
Run "compact" action by default when no actions are specified ( #394 ).
2022-02-09 14:33:12 -08:00
Dan Helfman
9997aa9a92
Fix capitalization on compact help.
2022-02-08 15:58:09 -08:00
Dan Helfman
48f44d2f3d
Add tests for compact action ( #394 ).
2022-02-08 12:05:02 -08:00
Dan Helfman
9582324c88
Compact repository segments with new "borgmatic compact" action ( #394 ).
2022-02-07 23:29:44 -08:00
Chen Yufei
0014b149f8
remove configuration_filename as it's already set.
2021-11-26 11:38:58 +08:00
Chen Yufei
091c07bbe2
Add context for various hooks.
2021-11-26 11:35:10 +08:00
Dan Helfman
38ebfd2969
Rename retry_timeout to retry_wait and standardize log formatting ( #28 ).
2021-11-15 11:51:17 -08:00
cadamswaite
976a877a25
Formatting
2021-11-14 22:37:42 +00:00
cadamswaite
b4117916b8
Add timeout and tests
2021-11-14 22:15:22 +00:00
cadamswaite
89baf757cf
Sort imports
2021-07-14 23:17:35 +01:00
cadamswaite
4f36fe2b9f
Run Black on changed file
2021-07-14 22:53:01 +01:00
cadamswaite
510449ce65
Change default retries to 0
2021-07-14 22:49:03 +01:00
cadamswaite
4cc4b8d484
Add queue based retry logic
2021-07-14 22:46:02 +01:00
Dan Helfman
cf8882f2bc
Run arbitrary Borg commands with new "borgmatic borg" action ( #425 ).
2021-06-17 20:41:44 -07:00
Dan Helfman
9b819f32f8
Fix traceback when upgrading old INI-style configuration with upgrade-borgmatic-config ( #367 ).
2020-11-18 15:01:10 -08:00
Dan Helfman
8aa7830f0d
Fix broken "--override" action in Python 3.7 and below.
2020-11-15 13:39:15 -08:00
Dan Helfman
1ea04aedf0
Merge override values when specifying the "--override" flag multiple times ( #361 ).
2020-10-23 16:06:00 -07:00
Diego Blanco
2d10e758e0
Fixed minor typo in help for "info" command
2020-10-12 00:04:15 +02:00
Dan Helfman
0e978299cf
Fix traceback when a database hook value is null in a configuration file ( #355 ).
2020-10-07 15:41:45 -07:00
networkjanitor
c5776447b9
fixed description strings for before_extract and after_extract
2020-08-12 23:07:57 +02:00
networkjanitor
893fca2816
Add before_extract and after_extract hooks
2020-08-01 16:08:32 +02:00
Dan Helfman
b3fd1be5f6
Add "borgmatic export-tar" action to export an archive to a tar-formatted file or stream ( #300 ).
2020-07-22 21:53:55 -07:00
Dan Helfman
37cc229749
Fix duplicate logging to Healthchecks and send "after_*" hooks output to Healthchecks ( #328 ).
2020-06-23 11:01:03 -07:00
Dan Helfman
aa14449857
Add "borgmatic extract --strip-components" flag to remove leading path components when extracting an archive ( #324 ).
2020-06-06 14:57:14 -07:00
Dan Helfman
398665be9e
Allow before_backup and similiar hooks to exit with a soft failure without altering the monitoring status ( #292 ).
2020-06-02 14:33:41 -07:00
Dan Helfman
89cb5eb76d
Fix regression in support for PostgreSQL's "directory" dump format ( #314 ).
2020-05-18 11:31:29 -07:00
Dan Helfman
1ea047dd94
Remove "borgmatic restore --progress" flag, as it now conflicts with streaming database restores.
2020-05-09 21:53:16 -07:00
Dan Helfman
a23fdf946d
Stream database dumps and restores directly to/from Borg without using any additional filesystem space ( #258 ).
2020-05-07 11:44:04 -07:00
Dan Helfman
d6562c4b1e
Fix the "--stats" and "--files" flags so that they yield output at verbosity 0 ( #290 ).
2020-01-31 10:23:36 -08:00
Dan Helfman
55141bda67
Specify "--archive latest" to all actions that accept an archive ( #289 ).
2020-01-29 16:59:02 -08:00
Dan Helfman
8ad8a9c422
Add per-action hooks: "before_prune", "after_prune", "before_check", and "after_check" ( #255 ).
2020-01-27 11:07:07 -08:00
Dan Helfman
2405e97c38
Backup to a removable drive or intermittent server via "soft failure" feature ( #284 ).
2020-01-24 20:52:48 -08:00
Dan Helfman
fdbb2ee905
View consistency check progress via "--progress" flag for "check" action ( #287 ).
2020-01-24 11:27:16 -08:00
Dan Helfman
952168ce25
Fix unwanted console log messages with "list --json" and "info --json".
2020-01-23 13:40:54 -08:00
Dan Helfman
5273037a94
For "list" and "info" actions, show repository names even at verbosity 0.
2020-01-23 11:17:39 -08:00