Commit Graph

465 Commits

Author SHA1 Message Date
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
245454b7dd [borg] fix default handler value for encryption 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
bd4c3be7ae [borg] make indentation consistent with rest of file 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
70873857b7 [borg] fixed connection testing (thanks @orel) 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
95e43d5554 [borg] update handlers/Makefile.am 2018-01-26 09:43:58 -05:00
Ben
c4e9125a71 [borg] added a borg helper 2018-01-26 09:43:58 -05:00
Ben
02b6d883aa [borg] fixed pruning in test mode, don't actually run anything 2018-01-26 09:43:58 -05:00
Ben
ca8d479270 [borg] remove handlers/borg 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
e0b4375400 Quote command output strings passed to logging functions.
Thanks to @Gackiewicz for the report!

Closes #11278
2018-01-10 10:44:33 +00:00
intrigeri
b15e5f6b80 Merge branch 'master' into 'master'
#11273: Exclude partitions from device list

Closes #11273

See merge request riseuplabs/backupninja!7
2018-01-10 02:13:33 -08:00
Matthijs Wensveen
af2b8d0b62 Symmetric encryption in dup handler is broken (#11274) 2017-10-12 11:20:31 +02:00
Romain Dessort
dff9ac99c5 Close #11273. Exclude partitions from device list
Use lsblk instead of sfdisk to get a list of block devices on the host.
2017-09-28 13:58:53 -04: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
a3ee78c057 Merge branch 'mysql' into 'master'
#11148: skip dumping information|performance_schema in mysql handler

See merge request !5
2017-08-12 18:17:36 +00:00
ibauer
711ea76dd1 #11148: skip dumping information|performance_schema in mysql handler
- Escaped single quotes as described in https://stackoverflow.com/questions/1250079/how-to-escape-single-quotes-within-single-quoted-strings
2017-08-03 15:30:51 +02:00
ibauer
436e57ec29 #11148: skip dumping information|performance_schema in mysql handler
- Replaced nested single quotes with escaped double quotes
2017-07-28 10:54:32 +02: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
ibauer
7d7d853123 #11148: skip dumping information|performance_schema in mysql handler
- Removed escaping as it is not needed and wrong
2017-07-21 16:47:20 +02:00
ibauer
44a7ee8912 #11148: skip dumping information|performance_schema in mysql handler 2017-07-21 16:12:39 +02:00
Micah Anderson
41c3544ed5 dsync: the dsync handler incorrectly would test for >3 failures before
emitting the failure message, it should do so at =>3
2015-03-30 12:23:50 -04:00
Silvio Rhatto
3094b04da5 Rsync: check test mode should set proper dest path (#8196) 2014-11-07 15:16:30 -02:00
Silvio Rhatto
89860aa3f6 Rsync: check test mode also in prepare_storage (#8196) 2014-11-07 14:36:25 -02:00
Silvio Rhatto
c649339ba4 Rsync: support for backupninja's test option (#8196) 2014-11-05 11:18:11 -02:00
intrigeri
9b37f756f5 Exclude tmpfs filesystems from df output in the sys handler (Closes: Debian#745818). 2014-05-03 14:08:04 +00:00
intrigeri
8db80421aa Fix indentation in sys handler.
Thanks to Jools Wills <jools@oxfordinspire.co.uk> for the patch.
2014-05-03 13:45:51 +00:00
intrigeri
14eed7f751 Remove spurious quotes that broke the sys helper (Closes: Redmine#6803).
Thanks to Jools Wills <jools@oxfordinspire.co.uk> for the patch.
2014-05-03 13:38:45 +00:00
intrigeri
179eb70b8c Merge remote-tracking branch 'sarava/bug/3003'
Conflicts:
	handlers/rsync.in
2014-05-03 13:24:08 +00:00
intrigeri
9e1d98a253 Merge remote-tracking branch 'sarava/bug/3929' 2014-05-03 13:20:21 +00:00
Christian Prause
8ed2f8de3f Added suse to the list of supported OS 2014-05-03 13:12:10 +00:00
intrigeri
ed864a64e3 Run duplicity in a C locales environment (Closes: #736280).
This workarounds a bug in duplicity. Quoting the reporter (thanks, Jonathan
Dupart <jonathan@dupart.org>, for the detailed report and initial patch):

The duplicity backend is broken when the gpg ecryption is set up and the
system default locale is not english (or C).

The bug reports on duplicity are here :
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565398
https://bugs.launchpad.net/duplicity/+bug/510625
2014-03-01 11:56:11 +00:00
Dominik George
c5738b11d9 Added SIGN_PASSPHRASE support for dup handler. 2014-02-22 14:56:58 +00:00
intrigeri
1017ec315f dup: Fix buggy version comparison. (Redmine#6746) 2014-02-22 14:23:22 +00:00
intrigeri
1a762885e2 Make logic consistent with what we're using elsewhere.
Without this change, e.g. 0.5.20 would not get --extra-clean, while it should.
Granted, the new test is buggy too, e.g. 0.7.1 will get --extra-clean,
while it should not. Will report that to Redmine.
2014-02-22 13:41:43 +00:00
Alexander Mette
e27654df5c Fix #6357 - Don't remove useful signature files
duplicity >=0.6.20 now correctly removes useless signature files and
therefore the cache directory doesn't grow infinitely any more. Using
--extra-clean removes all signatures except from the last chain and so
renders older chains unusable, don't use it by default any more.
See: https://bugs.launchpad.net/duplicity/+bug/519948
2014-02-22 13:39:27 +00:00
intrigeri
e96a894bb8 mysql: fix non-qualified table name extraction (Closes: Redmine#4373). 2014-02-22 13:34:57 +00:00
intrigeri
ce4db5dd4f rdiff.helper: don't give misleading information regarding required fields (Closes: Redmine#4410). 2014-02-22 13:11:49 +00:00
intrigeri
29e2c75ede mysql: make "nodata" option compatible with compress=no. 2013-12-26 15:42:22 +00:00
Silvio Rhatto
b8b8b46fba Solve quoting issue with "su" (debian #683731) (upstream #4019)
A fix for debian #677410 on commit 29dcdbae introduces a new issue on wheezy
machines where some rsync_options gets out of the rsync command quotes when
invoked by su.

As reported, running backupninja through `bash -x` shows that the `--delete`
option from the rsync command is not included in the single quote for the `su
-c` command:

    nice -n 0 su -c '/usr/bin/rsync -av' --delete '--recursive
    --delete-excluded    //home/ /tmp/test//home//'

This patch attempt to solve that issue by using the intermediary variable
$command.
2013-10-26 13:18:19 -02:00
intrigeri
0cb6fcd647 Delete trailing whitespace. 2013-09-23 10:19:26 +00:00