Commit Graph

1106 Commits

Author SHA1 Message Date
Jerome Charaoui
66f488c232 restic: enable testconnect by default and add to example 2021-01-11 18:22:11 -05:00
Jerome Charaoui
356ffa210f restic: support nicelevel and ionicelevel 2021-01-11 18:21:49 -05:00
Jerome Charaoui
9b262e5b7b restic: remove rebuild-index
The command rebuild-index should only be necessary as part of an attempt
to repair a malfunctioning repository. I could not find anywhere in the
documentation recommending to run this command at regular intervals.
2021-01-11 17:54:51 -05:00
Jerome Charaoui
e8df595c9f restic: remove retry_run logic
Simplify and make program calls more consistent with other handlers. The
automatic retry mechanism shouldn't be needed for restic any more than
other backup programs. If it's implemented, it should be at the core
level.
2021-01-11 17:15:17 -05:00
Jerome Charaoui
d69fd2dc69 restic: rework sftp and rest connection tests 2021-01-11 17:14:45 -05:00
Jerome Charaoui
b1486bb3cf restic: use autotools abstraction for awk path 2021-01-10 16:26:22 -05:00
Jerome Charaoui
458c9197fc restic: name option correctly is error message 2021-01-10 16:26:22 -05:00
Jerome Charaoui
5e7081a879 restic: handler was missing from Makefile 2021-01-10 16:26:22 -05:00
Jerome Charaoui
63c3d0c591 restic: debug output consistent with other handlers 2021-01-10 16:26:22 -05:00
Jerome Charaoui
bd9cc6db42 restic: support --test mode 2021-01-10 16:26:22 -05:00
Jerome Charaoui
99be27b93c restic: remove unnecessary crunchbang 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
4b1f361b4c fix retry_wait example 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
6c0e49689b fix(restic): unset aws session token envvar 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
acaa25bbfd change(restic): authors 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
b395660fa9 fix(restic): typo 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
a8fa5f429b change(restic): add aws_session_token introduced in restic 0.9.2 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
ca5358bc3f fix(restc): avoid word splitting for options 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
2651c1ccbd change(restic): add minimal helper
Apply patch provided by @sensespidey in !17.
2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
ff61e65be4 Fix(restic) catch attempt failure
Failure was reported even when the last attempt was successful.
2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
b09529e96b Fix(restic) wait between retries
Too quick retry could lead to locking issue.
2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
acee92fef5 Fix(restic) remove verbose option
BackupNinja does not capture command output so this option is useless,
plus it make check command fails.
2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
0b9117b39f Fix(restic) getconf retry_run 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
bceee65ed8 restic: make number of retries configurable 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
b148b3c9ef restic add retry function 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
45a04e485c restic: start working on handler 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
d295851b78 restic: contrib 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
7e3537d869 restic: add into examples build 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
6f9a988cca restic: add in manpage 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
76043a056e restic: add build target 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
052f45ebb1 restic: rename file with .in extension 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
570c3aae5e restic: do not run backup and forget by default 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
7e55bb789a restic: fix some shellscript warnings 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
8082d3d04a restic: add missing swift region option 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
1661e23a11 restic: update example config file with all options 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
c0426653fc restic: add dry_run option on check command 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
3d84e15c27 restic: fix var conflict & add export_debug function 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
aa76a363ad restic: add options & cleanup some sebug/fatal messages 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
d6bbe6635c change indent from 3 to 2 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
3103b6bf32 fix missing quotes around repo & passwd variables 2021-01-10 16:26:22 -05:00
Nicolas KAROLAK
ca028e1959 init restic support 2021-01-10 16:26:22 -05:00
Jerome Charaoui
407faf1a52 tests: adjust tests for new exit codes 2021-01-10 15:24:05 -05:00
Jerome Charaoui
fa7bb73441 fatal message causes rc=2 so replace with error
This allows the usage information to be shown when a bad command-line
option is used, and rc=3 to be returned.
2021-01-10 15:24:05 -05:00
Jerome Charaoui
6aa373e112 fix exit code capture from handlers 2021-01-10 15:24:02 -05:00
Jerome Charaoui
90bcd2a1a7 set exit code to 2 if running as non-root 2021-01-10 09:47:23 -05:00
Jerome Charaoui
7c4c5e64c3 set exit code to 3 for unknown option in cli 2021-01-10 09:47:00 -05:00
Jerome Charaoui
83877d270c exit with non-zero exit code in case of problems, fixes #8279
* 0 for success
 * 1 for errors or warnings if reportwarning enabled
 * 2 for fatal errors and halts
2021-01-10 09:42:53 -05:00
Jerome Charaoui
568dbaa9fd whitespace fixes 2021-01-09 23:29:29 -05:00
Jerome Charaoui
21f75544e8 borg: use autotools abstraction for sed path 2021-01-09 23:29:20 -05:00
Jerome Charaoui
c18404eb3a borg: add new setting sshoptions, fixes #11310 2021-01-09 17:21:29 -05:00
Jerome Charaoui
fe8778618f borg: fix connection test when remote dir exists
When testing the connection via ssh forced command, if the remote path
is an empty directory (instead of nonexistent), the handler bails even
tough the connection is successful.

Co-authored-by: Emil Breiner <emil.breinr@krumedia.com>
2021-01-08 23:35:21 -05:00