Commit Graph

126 Commits

Author SHA1 Message Date
Jerome Charaoui
0ec7752dd3 Cleanup tariling whitespace 2021-01-22 11:24:14 -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
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
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
Nicolas KAROLAK
4b1f361b4c fix retry_wait example 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
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
bceee65ed8 restic: make number of retries configurable 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
570c3aae5e restic: do not run backup and forget by default 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
ca028e1959 init restic support 2021-01-10 16:26:22 -05:00
Jerome Charaoui
c18404eb3a borg: add new setting sshoptions, fixes #11310 2021-01-09 17:21:29 -05:00
Jerome Charaoui
69df0f16f6 borg: implement ignore_missing option 2021-01-08 20:31:31 -05:00
Jerome Charaoui
beff3adc1e Remove remaining vserver bits 2021-01-03 12:07:56 -05:00
Jerome Charaoui
40a346ff13 rsync: change id_dsa to id_rsa in rsync handler, fixes #11315
Also changed in example config.
2021-01-02 15:56:54 -05:00
Jerome Charaoui
eabda5615c Remove vserver support (fixes #11289)
This is probably completely unused by now, as vservers have been
superseeded by alternative technology for many years already.
2021-01-02 15:27:32 -05:00
Jerome Charaoui
43c0f9d9bf rsync: fix rsync_options example
Copy-pasting this in a rsync handler config will cause an error as the
quotes will be used on the command line directly...
2020-12-31 14:36:04 -05:00
Gabriel Filion
7db5c9c3e8 Document the new ionice configuration in example config files 2020-12-31 02:08:50 -05:00
LeLutin
e28da8c390 borg: add configuration to displace the cache directory
borg will by default create its cache directory in ~/.cache/borg. This
means that during backup runs, borg will read and write quite
extensively from/to this directory.

In some situations, it is rather undesirable to have this amount of IO
activity in this location and it would make sense to tell borg to place
its cache elsewhere. This can help for example with placing the cache on
a hard drive where the added IO load will not have as big of an impact
on other running activity for the system.

This change also makes sure that the cache directory environment
variable is cleared out when the configuration option is unset. This
should avoid unpleasant surprises when this environment variable is set
to some unknown value in the context where backupninja is called, which
could lead to borg reading and writing to random places on the system.
2020-08-14 05:46:34 -07:00
Jerome Charaoui
1efa23869c [borg] improve comments in example.borg 2018-06-06 22:03:19 -04:00
Jerome Charaoui
9c3dffa2cd [borg] "repofile" is not a valid encryption mode 2018-06-06 22:03:12 -04:00
Jerome Charaoui
0132b2453a [borg] scrap exclude*, add create_options
This allows the handler to fully make use of the advanced command-line
options for "borg create", such as the replaced "exclude*" options and
others like "--read-special" and "--numeric-owner".
2018-01-26 11:47:47 -05:00
Jerome Charaoui
f43c85662d [borg] replace "keep*" options with simpler "keep"
The effect of "keep*" options is not straightforward to understand, so
replacing it with a simpler "keep" option, which replicates the
functionality of other backupninja handlers. This also simplifies the
helper, as the use is then only asked how many days of backups to keep.

At the same time, we add "prune_options" which allows for the use of the
"keep*" options as well as other useful prune options, like "--prefix".
2018-01-26 11:26:37 -05:00
Jerome Charaoui
fc0e0849dc [borg] add init option to allow skipping init command
In some cases it may be desirable to skip repository initialization, for
example when the repository is located at the root of a mount point.
2018-01-26 09:53:54 -05:00
Jerome Charaoui
54cc8c6b32 [borg] support for --exclude-caches and --exclude-nodump 2018-01-26 09:43:58 -05:00
Jerome Charaoui
fcdbaa3447 [borg] add bwlimit config (sets --remote-ratelimit) 2018-01-26 09:43:58 -05:00
Jerome Charaoui
c9b72249ae [borg] make help references consistent in example 2018-01-26 09:43:58 -05:00
Jerome Charaoui
87ea9c3dad [borg] update compression info in example 2018-01-26 09:43:58 -05:00
Jerome Charaoui
910676f3ea [borg] sync example default for archive 2018-01-26 09:43:58 -05:00
Jerome Charaoui
7b2917bbec [borg] Rewrite include/exclude notes to match docs 2018-01-26 09:43:58 -05:00
Jerome Charaoui
fa834367c0 [borg] Fix default value for testconnect in example config 2018-01-26 09:43:58 -05:00
Jerome Charaoui
88adbaa990 [borg] support keephourly option 2018-01-26 09:43:58 -05:00
Ben
fdd0280a00 [borg] fixed include order in example file 2018-01-26 09:43:58 -05:00
Thomas Preissler
d1058620e9 [borg] add example.borg to Makefile 2018-01-26 09:43:58 -05:00
Ben
02d595baab [borg] added encryption support (credit to @mxroo and @leoberry) 2018-01-26 09:43:58 -05:00
Ben
060de6853a [borg] added support for local backups, without ssh (host=localhost) 2018-01-26 09:43:58 -05:00
Ben
2e6d94d89a [borg] added borg handler and example straight from @maethor gists 2018-01-26 09:43:58 -05:00
intrigeri
0356db5dcc Documentation: bandwidthlimit for the dup handler needs to be given in KB/s, and not (as wrongly advertised previously) in Kbit/s.
Closes: #7603
2017-08-12 22:10:29 +00:00
intrigeri
f8e1664e01 dup handler: correctly handle Dropbox access token (Closes: #11260).
Thanks to Daniel Lo Nigro for the patch.
2017-07-25 09:55:13 +00:00
Silvio Rhatto
03292147f6 Rsync example: show 'user' parameter as a required option (#4380) 2014-04-17 19:13:07 -03:00
Dominik George
c5738b11d9 Added SIGN_PASSPHRASE support for dup handler. 2014-02-22 14:56:58 +00:00
intrigeri
0cb6fcd647 Delete trailing whitespace. 2013-09-23 10:19:26 +00:00
Micah Anderson
54ec07be55 add additional sys backup options to provide the ability to backup the MBR for every device found, and to backup the BIOS (if the flashrom program is installed, and the mainboard is supported) 2013-09-20 16:48:13 -04:00
intrigeri
b3275eb7b1 Clarify that duplicity/paramiko doesn't support spaces between -o and IdentityFile anymore. 2013-07-23 12:01:02 +02:00