Commit Graph

15 Commits

Author SHA1 Message Date
tiredpixel
3d7494bfc2 handlers/borg: add port support
This enables the handlers to be used for hosts which use a non-standard
port, such as is offered by some commercial services. Default to port
22, so it's optional and backwards-compatible.
2020-07-16 08:38:46 +00: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
05f170760a [borg] next helper step should be selected in menu 2018-01-26 09:43:58 -05:00
Jerome Charaoui
830a00759f [borg] add 'prune' setting to allow disabling pruning 2018-01-26 09:43:58 -05:00
Jerome Charaoui
60601b2f4c [borg] consistent default in helper encryption section 2018-01-26 09:43:58 -05:00
Jerome Charaoui
a02a598bb5 [borg] change archive name to match borg default
Archive names must be unique, so if the backup runs more than once per
day with the previous default, it will throw and error because of the
duplicate archive name. This is also consistent with the addition of
the keephourly prune option.
2018-01-26 09:43:58 -05:00
Jerome Charaoui
ce01329f01 [borg] fix final step completion check 2018-01-26 09:43:58 -05:00
Jerome Charaoui
0249e22598 [borg] Add return code to error message 2018-01-26 09:43:58 -05:00
Jerome Charaoui
61e1b31b72 [borg] fix ssh-copy-id when both keytypes exist 2018-01-26 09:43:58 -05:00
Jerome Charaoui
bb3cc0fc34 [borg] remove unnecessary proxy variable 2018-01-26 09:43:58 -05:00
Jerome Charaoui
fed1d85bdc [borg] fix helper when setting up without encryption 2018-01-26 09:43:58 -05:00
Jerome Charaoui
88adbaa990 [borg] support keephourly option 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
23d8c68bf8 [borg] added copyright notices 2018-01-26 09:43:58 -05:00
Ben
c4e9125a71 [borg] added a borg helper 2018-01-26 09:43:58 -05:00