Jérôme Charaoui
641aa8d669
fix debug message in sys handler
2023-02-12 13:00:22 -05:00
Jérôme Charaoui
f41ff295cc
borg: don't hardcode ssh port default (DEBBUG-993951)
...
Adding the port parameter to the borg handler with a default value of 22
is causing issues for users who had been using the standard ssh config
file to set the remote port, since the -p cli argument overrides the
configuration. This removes the default port number and only uses it in
the connection string if defined.
2023-02-12 00:33:57 -05:00
Jerome Charaoui
7d6339fe89
Merge branch 'master' into 'master'
...
Fix https://0xacab.org/liberate/backupninja/-/issues/11328
Closes #11328
See merge request liberate/backupninja!61
2023-02-10 18:15:05 +00:00
Jonathan Araña Cruz
033b303e9f
Actually run duplicity remove-older-than. Fix regression in f007227e4c
2023-02-07 13:56:52 +01:00
phlummox
258d04aee0
Fix https://0xacab.org/liberate/backupninja/-/issues/11328
2022-03-11 06:30:23 +00:00
Jerome Charaoui
b4a6d2d230
Merge branch 'hotfix/duphelper-readd-dodupsrc' into 'master'
...
dup.helper: re-add a version of the do_dup_src function
Closes #11332
See merge request liberate/backupninja!57
2022-03-05 18:58:41 +00:00
Jerome Charaoui
e727feb5e1
Merge branch 'issue11335' into 'master'
...
remove default duplicity option `--extra-clean`
See merge request liberate/backupninja!59
2022-03-05 18:57:40 +00:00
yova
895644b84f
remove default duplicity option --extra-clean
...
solves https://0xacab.org/liberate/backupninja/-/issues/11335
2021-09-21 08:19:34 +00:00
andrew bezella
21abd730ab
match prior rm usage w/test and rm instead of rm -f
2021-08-09 12:19:09 -07:00
andrew bezella
3f1dabf3a8
remove old LUKS header backup file prior to regenerating with luksHeaderBackup
2021-08-09 12:12:53 -07:00
andrew bezella
ae3f07b776
dup.helper: re-add a version of the do_dup_src function
2021-08-09 12:07:18 -07:00
Jerome Charaoui
5cc80402dd
sys: don't cancel partition backup if hwinfo absent
2021-01-26 00:24:40 -05:00
Jerome Charaoui
870811ebd6
sys: remove hwinfo partition backup
...
It doesn't provide info about partitions present on the disk, plus it
duplicates the full hwinfo output when hardware = yes (default)
2021-01-25 08:59:08 -05:00
Jerome Charaoui
5daea40686
sys: improve device/partition discovery
2021-01-25 08:52:47 -05:00
Jerome Charaoui
0ec7752dd3
Cleanup tariling whitespace
2021-01-22 11:24:14 -05:00
Jerome Charaoui
9e7f6fb10e
restic: remove shebang from restic helper script
2021-01-22 10:16:54 -05:00
Jerome Charaoui
f233b1ed90
fix sshoptions missing from dup helper config
2021-01-14 19:50:30 -05:00
Jerome Charaoui
5a6ea5e3a2
Merge branch 'restic' into 'master'
...
Add new restic handler
See merge request liberate/backupninja!48
2021-01-12 16:34:14 -08:00
Jerome Charaoui
b94b3639ff
restic: use eval to execute restic
...
Without it, the single-quoted paths on the command-line are interperted
literally, leading restic find all include paths invalid...
2021-01-12 19:25:39 -05:00
Jerome Charaoui
f71d6882c6
restic: quote string and path values in command options
...
Make this consistent with the borg handler. Allows users to use paths
that include spaces in them and prevents shell globbing when the restic
command is called. According to the restic docs, if glob paths are
needed, they should be read from a file (--files-from).
2021-01-12 14:40:14 -05:00
Jerome Charaoui
a8df514531
restic: remove defaults for include/exclude
...
Making this consistent with the borg handler. Users should think about
what they need to be backup. The example file is there to provide a
baseline.
2021-01-12 14:37:53 -05:00
Jerome Charaoui
362fe316a4
restic: skip init when test mode enabled
2021-01-12 14:36:35 -05:00
Jerome Charaoui
297f3f8562
sys: fix sysctl -a info in sysreport
2021-01-12 12:14:25 -05:00
Jerome Charaoui
732715e1f0
sys: add EFI info to system report, needs efibootmgr
2021-01-12 12:12:36 -05:00
Jerome Charaoui
fdb27538b5
sys: add systemd support, fixes #11294 and #11325
2021-01-12 11:52:10 -05:00
Jerome Charaoui
d479f8e8d3
sys: attempt debconf-set-selections only on Debian, fixes #11271
2021-01-12 11:49:53 -05:00
Jerome Charaoui
0991afe57b
rsync: remove unused config parameter "ssh", fixes #4379
2021-01-11 22:32:05 -05:00
Jerome Charaoui
b013dc759b
restic: init repository if needed, by default
...
Add backup/init config directive (defaults to yes) to control whether
the repository should be initialized if it doesn't exist. Since we need
to attempt to connect to the repository to verify if init is needed,
remove the testconnect parameter so that the handler just tests the
connection every time it runs.
2021-01-11 20:46:12 -05:00
Jerome Charaoui
36638fa6ed
restic: simplify connection tests
...
Replace convoluted code to test SFTP and REST backends with a simple
restic snapshots command. Much simpler and supports all backends...
2021-01-11 20:03:46 -05:00
Jerome Charaoui
20faa6943b
restic: whitespace
2021-01-11 18:31:08 -05:00
Jerome Charaoui
b012119b49
restic: make restic check run at the end
...
As per the restic docs, check should usually be run after prune, which
makes sense as we want to verify the consistency of the repository after
making changes.
2021-01-11 18:27:54 -05:00
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
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