Commit Graph

1134 Commits

Author SHA1 Message Date
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
Jérôme Charaoui
6c90a54609
Update changelog 2023-02-12 00:33:43 -05:00
Jérôme Charaoui
1ff99a27f1
add reportprom item to config file manpage 2023-02-12 00:24:17 -05:00
Jerome Charaoui
97adb23b97 Merge branch 'prometheus' into 'master'
Add basic prometheus metrics for backup status.

See merge request liberate/backupninja!55
2023-02-10 18:53:15 +00:00
Jerome Charaoui
06eda435ba Merge branch 'petrklima-master-patch-69197' into 'master'
Packager email: Petr.Klima@madeta-group.cz no longer exists

See merge request liberate/backupninja!52
2023-02-10 18:47:15 +00: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
Jerome Charaoui
6aae9e806d Merge branch 'fix_cache_directory_in_exemple' into 'master'
fix borg example: set cache_directory to source section

See merge request liberate/backupninja!63
2023-02-10 18:08:25 +00:00
Jerome Charaoui
d8857f996e Merge branch 'fix_regression_in_duplicity_remove-older-than' into 'master'
Actually run duplicity remove-older-than. Fix #11345

Closes #11345

See merge request liberate/backupninja!64
2023-02-10 18:07: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
Émile
0c3ff14699 fix borg example: set cache_directory to source section 2023-01-05 09:17:46 +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
Jerome Charaoui
dd86260f85 Merge branch 'hotfix/syshandler-overwrite-luksheaderbackup' into 'master'
sys handler: remove old LUKS header backup file to allow updating

Closes #11333

See merge request liberate/backupninja!58
2022-03-05 18:48:17 +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
Micah Anderson
8f81c85274
Allow for disabling reports by email.
This diff simply adds one line:

`if [ ! -z "$reportemail" ]; then` and then it indents the if block and adds a
final `fi`.

This check used to be there, without it, its not possible to disable report
mails, which might be something desirable if you are getting alerts through the
prometheus method.
2021-06-24 10:59:11 -04:00
Micah Anderson
fa2528a083
Add basic prometheus metrics for backup status.
This requires that `prometheus-node-exporter` is installed.

If `reportprom` is set, then during the reporting phase, metrics will be written
to `${prom_textfile_dir}/backupninja.prom`, which will then be available for
scraping by prometheus.

The metrics simply report the hostname and the number of actions run, the number
of warnings, errors, fails, and halts that were produced in the backup run.

These are written to the prometheus-node-exporter directory in an atomic way.
2021-06-24 10:55:31 -04:00
Petr Klíma
6efc01972e Packager email: Petr.Klima@madeta-group.cz no longer exists . Changing to existing Petr.Klima@madeta.cz 2021-02-21 04:21:07 -08:00
Jerome Charaoui
5cc80402dd sys: don't cancel partition backup if hwinfo absent 2021-01-26 00:24:40 -05:00
Jerome Charaoui
103082eaad Releasing backupninja 1.2.1 2021-01-25 10:50:45 -05:00
Jerome Charaoui
c85cc32ab9 fix typos in manpage 2021-01-25 10:50:45 -05:00
Jerome Charaoui
3a0b694d6e update release process notes
* drop the detached gpg signature as this doesn't seem required anymore by
anything; the signed git tag is sufficient to auth the released source

* exclude vagrant data from git clean, otherwise this destroys the test
environment which is useful during the release process; this does not
cause any vagrant artifacts to become part of the release source

* drop attaching release artifacts to milestones, as GitLab Releases
have made this practice deprecated

* add diffoscope command for easier tarball comparison
2021-01-25 10:11:07 -05:00
Jerome Charaoui
39e5f2ef23 tests: generate buildscript in vagrant test box 2021-01-25 09:45:51 -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
bb609a43f7 tests: trigger partition table refresh 2021-01-25 08:51:59 -05:00
Jerome Charaoui
aa2a83c53f add missing parameters to backupninja.conf manpage 2021-01-24 14:43:46 -05:00
Jerome Charaoui
6461645745 add missing backticks in latest changelog entries 2021-01-24 14:25:39 -05:00
Jerome Charaoui
61d53834fa unset BACKUPNINJA_DEBUG before exit 2021-01-24 14:24:22 -05:00
Jerome Charaoui
25c3a9f421 improve error handling around reporthost feature 2021-01-24 14:24:19 -05:00
Jerome Charaoui
f6870a613e tests: add tests for reporthost functionality 2021-01-24 14:17:27 -05:00
Jerome Charaoui
4cfc5e3370 fix typos in manpage 2021-01-24 12:00:26 -05:00
Jerome Charaoui
f97e41e815 fix missing admingroup entry in manpage 2021-01-24 11:59:54 -05:00
Jerome Charaoui
e1748c9800 tests: add test for admingroup config parameter 2021-01-24 11:51:16 -05:00
Jerome Charaoui
ede337dbcd add reportwrap config parameter
set to wrap at 1000 columns by default to avoid MTA rejection allowed by
SMTP RFC2821
2021-01-23 22:50:15 -05:00
Jerome Charaoui
76b457cc4d raise error if mail isn't found in $PATH and reportemail = yes 2021-01-23 22:00:42 -05:00
Jerome Charaoui
6937842e68 backup halt should trigger email report if enabled 2021-01-23 18:21:40 -05:00
Jerome Charaoui
f8755d6320 tests: fix exit status check 2021-01-23 14:40:29 -05:00
Jerome Charaoui
93cd5a3142 assume clean build environment, see DEBBUG-915222
This is part of a fix for reproducible builds where usrmerge may or may
not be in effect on the build system. We need to be able to pass the
BASH envvar to autotools so its able to correctly determine the correct
path for bash. The lines removed here were added to fix DEBBUG-346303
but should not be required on a clean build environment, where BASH
remains unset unless the current shell is actually BASH, and when it is,
should return the correct path to the bash executable and not /bin/sh.
2021-01-23 12:25:07 -05:00
Jerome Charaoui
1cdf2abc19 silence exit code message unless --debug is used 2021-01-23 12:06:48 -05:00
Jerome Charaoui
0ec7752dd3 Cleanup tariling whitespace 2021-01-22 11:24:14 -05:00
Jerome Charaoui
bbf488879a Releasing backupninja 1.2.0 2021-01-22 10:17:01 -05:00
Jerome Charaoui
9e7f6fb10e restic: remove shebang from restic helper script 2021-01-22 10:16:54 -05:00
Jerome Charaoui
370fa88efa add missing debian bug identifiers in changelog 2021-01-21 17:24:07 -05:00
Jerome Charaoui
dea150c681 recognize dash character in version number 2021-01-21 16:29:34 -05:00
Jerome Charaoui
7069ed5ef7 fixes in RELEASE.md 2021-01-21 16:27:14 -05:00
Jerome Charaoui
9e8c50c4c7 fix changelog filename is various source files 2021-01-21 16:19:35 -05:00