Commit Graph

563 Commits

Author SHA1 Message Date
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
6c0e49689b fix(restic): unset aws session token envvar 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
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
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
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
Jerome Charaoui
69df0f16f6 borg: implement ignore_missing option 2021-01-08 20:31:31 -05:00
Jerome Charaoui
e1b4a823d3 borg: emit warning if rc=1, fixes #11311 2021-01-08 14:19:13 -05:00
Jerome Charaoui
eae7f4fe98 rdiff: log execution steps 2021-01-06 22:36:20 -05:00
Jerome Charaoui
b93af54bed dup: log execution steps 2021-01-06 22:36:20 -05:00
Jerome Charaoui
8386cde02c borg: log execution steps 2021-01-06 22:36:20 -05:00
Jerome Charaoui
86c6b19119 Merge branch 'bugfix-borg-handler-create-options' into 'master'
Quoting test of $create_options in borg handler

Closes #11304

See merge request liberate/backupninja!39
2021-01-06 19:35:59 -08:00
Jerome Charaoui
85f4ea886a rsync: improve initial directory creation
The code added in the previous commit is only relevant for the mirror
format. With the long format, directories are created correctly in the
rotation routine. For the short format, the directory is initially
created, but only for a local destination, so adding a short snippet to
the rotation routine does it.
2021-01-06 20:52:32 -05:00
Fabian Raab
a2646868b3 Create path hirarchy of source path automatically in destination
Before it was only possible to backup root directories (depth one, eg.
/etc, /var, /usr, …). For example consider the following truncated toy
configuration for rsync:

    [general]
    mountpoint = /media/
    backupdir = backup
    [source]
    include = /foo/bar
    include = /etc

We assume you have prepared the existent but empty base-directory
/media/backup/ at your destination, then against the expectation, the
following error rises:

    rsync: mkdir "/media/backup/foo/bar/" failed: No such file or directory (2)

The reason is that rsync will take the files from the folder /foo/bar/
and tries to put them into the ulitmate – and therefore existent –
destination /media/backup/foo/bar. This is not what you would expect,
since the prepared directory /media/backup exists and the application
should create the rest itself.

This Merge Request adds a little script which creates the required
directories in the destination before running rsync. It assumes that
the base-directory already exists, so that not too much directories
are created automatically (could be a mess if you accidentally type the
wrong path)
2021-01-06 20:49:44 -05:00
Jerome Charaoui
7c8ba1e71e rsync: improve log msgs, add debug for rsync success 2021-01-06 20:40:05 -05:00
Jerome Charaoui
e017810941 rdiff: add extra sanity check for keep parameter 2021-01-06 11:33:58 -05:00
Jerome Charaoui
db7daa3d59 rdiff: make version check more verbose in debug 2021-01-06 11:33:24 -05:00
Jerome Charaoui
f1d876be82 rdiff: fix typo 2021-01-06 11:33:05 -05:00
Jerome Charaoui
9f5952ce34 dup: streamline encryption and signing logic 2021-01-05 11:00:54 -05:00
Jerome Charaoui
d949454366 dup: bandwidthlimit is compatible with desturl
However it's not compatible with local filesystem desturl.
2021-01-05 10:59:49 -05:00
Jerome Charaoui
f007227e4c dup: execute ssh connection test in test mode
Also bring in line with the code used in other handlers.
2021-01-05 10:56:26 -05:00