Matthijs Kooijman [Fri, 19 Mar 2010 15:18:27 +0000 (16:18 +0100)]
tar: Move the main code into a make_backup function.
Matthijs Kooijman [Fri, 19 Mar 2010 20:40:47 +0000 (21:40 +0100)]
tar: Actually enable this handler.
It seems this handler was added, but never got enabled.
Matthijs Kooijman [Fri, 19 Mar 2010 20:30:31 +0000 (21:30 +0100)]
Add local and chroot backends.
Matthijs Kooijman [Fri, 19 Mar 2010 20:26:24 +0000 (21:26 +0100)]
Add a framework for source host backends.
This is just the framework, there are no backends defined yet and no
handlers that use it.
Matthijs Kooijman [Fri, 19 Mar 2010 20:10:05 +0000 (21:10 +0100)]
Add array utilities append and in_array.
Matthijs Kooijman [Fri, 19 Mar 2010 19:51:22 +0000 (20:51 +0100)]
Add getconf_lines and getconf_words functions.
These functions allow reading a multivalued configuration variables,
either split into lines or further split into words.
Matthijs Kooijman [Fri, 19 Mar 2010 12:08:18 +0000 (13:08 +0100)]
Use -z and -n in printconf instead of == "" and != ""
This could prevent potential problems when (default) values contain
values special to [, such as -n or -a etc. It seems bash is smart enough
to detect this, but better be safe than sorry.
Matthijs Kooijman [Thu, 18 Mar 2010 09:35:49 +0000 (10:35 +0100)]
Use local variables in getconf & printconf.
Matthijs Kooijman [Wed, 17 Mar 2010 21:44:09 +0000 (22:44 +0100)]
Remove (useless) s/*/__star__/ replacement in getconf.
It seems this was meant to replace * with __star__ to prevent globbing,
but getconf already handles its values properly so globbing does not
occur. Currently, this replacement was broken due to the double
backslash, causing it to replace a backslash and all following
characters with __star__, instead of a literal *. This is also confirmed
by the fact that some handlers' documentation says to use __star__
instead of * directly in the configuration (and they have special
handling to turn __star__ back into * or something else as appropriate).
Eventually, we should just support using * directly and fixing up all
handling of the variable to not cause any globbing or other expansion
(also because fixing * isn't complete, there is also ? and sometimes ~
and other special characters might be expanded as well).
Matthijs Kooijman [Wed, 17 Mar 2010 21:42:44 +0000 (22:42 +0100)]
Clarify (and improve) the escaping used in getconf.
The code is effectively identical, but a bit clearer. The comment above
it should now make it clear what eval is seeing exactly.
Matthijs Kooijman [Wed, 17 Mar 2010 21:09:07 +0000 (22:09 +0100)]
Split a part of getconf into printconf.
The printconf function allows getting a variable without clobbering the
global variable with te same name. This can be used for a per-handler
override of a global variable, e.g. local_foo=`printconf "foo" "$foo"`
Matthijs Kooijman [Fri, 19 Mar 2010 20:39:59 +0000 (21:39 +0100)]
Simplify some makefiles.
By using static pattern rules, a lot of repetitive rules can be removed.
Matthijs Kooijman [Wed, 17 Mar 2010 13:56:09 +0000 (14:56 +0100)]
Make parseini properly handle line continuations.
Previously, once it had found a line continuation backslash, it would
include all subsequent lines, even those after the last line
continuation backslash.
intrigeri [Sat, 6 Mar 2010 18:25:27 +0000 (19:25 +0100)]
dup: use duplicity's --extra-clean option when necessary
This is necessary to get rid of unnecessary old cache files when cleaning up,
when using duplicity >=0.6.01 that depends on local caching.
Closes: #572721
intrigeri [Sat, 6 Mar 2010 14:27:34 +0000 (15:27 +0100)]
sys: only run mdadm if RAID devices actually exist (Closes: #572450)
Micah Anderson [Fri, 29 Jan 2010 16:22:57 +0000 (11:22 -0500)]
added missing newline to the end of example.ldap
Micah Anderson [Wed, 27 Jan 2010 22:45:21 +0000 (17:45 -0500)]
Update README and INSTALL to be more clear how to install backupninja
Micah Anderson [Wed, 27 Jan 2010 22:11:37 +0000 (17:11 -0500)]
Release 0.9.7
Micah Anderson [Tue, 26 Jan 2010 05:46:40 +0000 (18:46 +1300)]
fix alpha sort order in examples/Makefile.am to be less confusing
Micah Anderson [Mon, 18 Jan 2010 23:01:18 +0000 (12:01 +1300)]
add a few more 'formItem include' lines to the rdiff and dup handlers
to improve the ninjahelper interface as requested by alster in redmine
Micah Anderson [Sun, 17 Jan 2010 22:43:55 +0000 (11:43 +1300)]
add Chris Nolan to Authors for the maildir directory fix, and add
something to the changelog all for
98e62c95372a398922c1fc36f7517cb95e9f11c3
intrigeri [Sat, 9 Jan 2010 22:25:03 +0000 (23:25 +0100)]
rdiff: fix confusing error if rdiff-backup cannot be found on remote server.
Thanks to maniacmartin <martin@maniacmartin.com> for the patch on which this one
is based.
This closes Redmine bug #1209.
intrigeri [Sat, 9 Jan 2010 22:14:17 +0000 (23:14 +0100)]
dup: support backups to Amazon S3 buckets
Thanks to stefan <s.freudenberg@jpberlin.de> for the patch.
This fixes Redmine bug #658.
intrigeri [Sat, 9 Jan 2010 00:19:21 +0000 (01:19 +0100)]
set BACKUPNINJA_DEBUG when invoked with -d (Closes: #537266)
intrigeri [Fri, 8 Jan 2010 23:44:43 +0000 (00:44 +0100)]
rdiff,dup: fix include/exclude paths with spaces (Closes: #398435)
This also fixes Redmine bug #1021.
intrigeri [Fri, 8 Jan 2010 22:40:23 +0000 (23:40 +0100)]
ldap,mysql,pgsql: use bash pipefail option so that failed dumps are reported as such
This should fix Redmine bug #1340.
This option makes pipelines return as status the value of the last (rightmost)
command to exit with a non-zero status, or zero if all commands exit
successfully. See bash(1) for details.
E.g. this prevents the following from exiting with status 0 (!) if pg_dumpall
fails:
pg_dumpall | gzip
intrigeri [Tue, 5 Jan 2010 13:34:30 +0000 (14:34 +0100)]
reportspace: skip non-directories and places that don't exist on the local filesystem (Closes: #536049)
intrigeri [Tue, 5 Jan 2010 13:31:57 +0000 (14:31 +0100)]
Fixed indentation
intrigeri [Tue, 5 Jan 2010 12:52:43 +0000 (13:52 +0100)]
Added ChangeLog entry for previous commit.
olivier [Tue, 5 Jan 2010 07:28:52 +0000 (08:28 +0100)]
Convert from debug to info so that it can be reported in the email
intrigeri [Tue, 5 Jan 2010 12:39:32 +0000 (13:39 +0100)]
Adding optional report of infos sent by handlers in the email (closes #563734)
Cherry-picked and re-indented patch
76792c8f45afa1fdaeb81c2af77499ca0b83ce64
from Olivier Berger.
Conflicts:
src/backupninja.in
intrigeri [Tue, 5 Jan 2010 12:19:17 +0000 (13:19 +0100)]
intrigeri [Tue, 5 Jan 2010 12:18:56 +0000 (13:18 +0100)]
Added Olivier Berger to the AUTHORS file.
olivier [Tue, 5 Jan 2010 05:44:36 +0000 (06:44 +0100)]
Add duplicity output line by line instead of with a whole at one time. Should help fix #536360
intrigeri [Tue, 5 Jan 2010 12:11:57 +0000 (13:11 +0100)]
Fix indentation of previously cherry-picked patch
intrigeri [Tue, 5 Jan 2010 12:09:38 +0000 (13:09 +0100)]
Cherry-picked "fixes for mysql handler for mysqld inside a vserver"
This commit (
64edfccf7684d9c080e734b25fa9361f0190afec) was wrongly committed to
the debian branch.
Conflicts:
handlers/mysql.in
intrigeri [Thu, 31 Dec 2009 16:05:47 +0000 (17:05 +0100)]
dup.helper: do not propose to exclude /home/*/.gnupg twice anymore (Closes: #563044)
intrigeri [Fri, 25 Dec 2009 03:27:21 +0000 (04:27 +0100)]
TODO: removed issues that are resolved or tracked in Redmine
intrigeri [Fri, 25 Dec 2009 03:25:44 +0000 (04:25 +0100)]
Fixed remaining pointers to our deprecated Trac instance.
intrigeri [Fri, 25 Dec 2009 03:09:29 +0000 (04:09 +0100)]
autotools: added the stat command to the automagically replaced ones
... hoping it will help supporting *BSD some day.
intrigeri [Fri, 25 Dec 2009 01:33:13 +0000 (02:33 +0100)]
mysql, pgsql: Quote output filenames
... to support shell meta-characters in database names.
Closes Redmine bug #617.
intrigeri [Fri, 25 Dec 2009 01:28:55 +0000 (02:28 +0100)]
rsync: added vim and Emacs modelines for consistency's sake
intrigeri [Fri, 25 Dec 2009 00:30:11 +0000 (01:30 +0100)]
fix copy'n'paste doc error
intrigeri [Thu, 24 Dec 2009 15:57:31 +0000 (16:57 +0100)]
easydialog: allow form fields input to grow up to 100 chars (Closes: #562249)
Micah Anderson [Wed, 2 Dec 2009 22:09:16 +0000 (17:09 -0500)]
adjust the comparison operators in the rsync handler, fixes #1473
intrigeri [Thu, 19 Nov 2009 19:27:46 +0000 (20:27 +0100)]
ldap, mysql, pgsql: use gzip's --rsyncable option
Silvio Rhatto [Mon, 15 Jun 2009 15:14:01 +0000 (12:14 -0300)]
Enhanced rsync handler.
- Added support for:
- Remote destinations
- Long rotation format similar to maildir handler
- Batch files through --read-batch and --write-batch
- Custom file list using --files-from
- SSH persistent connection using ControlMaster
- The rsync:// protocol
- Metadata folder for each backup folder
- General refactoring
- Code cleanup
Not all options were tested and it might contain bugs.
Tests, comments and patches are welcome. :)
Micah Anderson [Wed, 23 Sep 2009 20:07:58 +0000 (16:07 -0400)]
Fix missing $ in variable name, fixes: #1239
Micah Anderson [Thu, 27 Aug 2009 20:53:43 +0000 (16:53 -0400)]
Standardize the example file format. Making the comments have the same
number of hash marks, clearly specify example settings and what the
defaults are set to.
intrigeri [Sat, 18 Jul 2009 08:48:10 +0000 (10:48 +0200)]
dup: fixed bandwidth vs desturl testing
intrigeri [Sat, 18 Jul 2009 08:45:45 +0000 (10:45 +0200)]
dup: fixed bandwidthlimit test
Thanks to Ian Beckwith <ianb@erislabs.net> for the patch.
Micah Anderson [Thu, 9 Jul 2009 23:00:41 +0000 (19:00 -0400)]
added sshoptions variable to the maildir handler for arbitrary options that you might need to pass
updated the example.maildir to include this option, as well as detail the missing desid_file, destport
Matthijs Kooijman [Fri, 22 May 2009 13:27:09 +0000 (15:27 +0200)]
Add a vim modeline with indentation settings.
The modelines added match the emacs lines already present and also set
the filetype to sh (just like the emacs lines).
Matthijs Kooijman [Fri, 22 May 2009 12:50:52 +0000 (14:50 +0200)]
Make all indentation consistent.
Previously, there were many indentation styles in use: Real tabs, 2, 3
or 4 spaces, mixing these within the same file, function or even within
a single line.
This commit changes all bash scripts in the handlers, src and lib dirs
to use consistent indentation: three spaces are now used everywhere.
Other files (e.g. Makefiles) are left untouched.
Additionally, this commit removes all trailing whitespace.
intrigeri [Thu, 22 Jan 2009 23:37:50 +0000 (23:37 +0000)]
sys: backup dmsetup info as well, for easier restoring of Luks headers
intrigeri [Thu, 22 Jan 2009 22:15:13 +0000 (22:15 +0000)]
sys: new lvm option to backup LVM metadata of every detected volume group
intrigeri [Thu, 22 Jan 2009 22:14:22 +0000 (22:14 +0000)]
sys: new luksheaders option to backup the Luks header of every Luks device
intrigeri [Mon, 12 Jan 2009 22:47:30 +0000 (22:47 +0000)]
mysql: fix 'mysqladmin ping' use, see changelog for details
intrigeri [Mon, 12 Jan 2009 22:47:08 +0000 (22:47 +0000)]
add support for 'when = manual' (Closes: #511299)
intrigeri [Mon, 12 Jan 2009 22:46:42 +0000 (22:46 +0000)]
added .gitignore file
... and populate it with autotools/build files.
This is of course intended to make life easier for people using git-svn.
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 9 Dec 2008 11:40:03 +0000 (11:40 +0000)]
mysql: new sqldumpoptions config variable (Closes: #502966)
intrigeri [Tue, 9 Dec 2008 11:08:53 +0000 (11:08 +0000)]
backupninja: do not assume English locale when using date (Closes: #465837)
intrigeri [Tue, 9 Dec 2008 10:56:15 +0000 (10:56 +0000)]
FAQ: new file, with first Q/A for duplicity vs. sudo related issues
Micah Anderson [Fri, 8 Aug 2008 04:50:55 +0000 (04:50 +0000)]
fix location of deleted_on file and add missing destid_file options in maildir handler
intrigeri [Mon, 28 Jul 2008 17:12:31 +0000 (17:12 +0000)]
fix reportspace
Micah Anderson [Fri, 25 Jul 2008 20:11:24 +0000 (20:11 +0000)]
update makecd handler to work with new toolset
Micah Anderson [Mon, 21 Jul 2008 20:49:34 +0000 (20:49 +0000)]
prepare for release
Micah Anderson [Sun, 6 Jul 2008 17:58:52 +0000 (17:58 +0000)]
clarify how the nodata option should be specified in the config file for mysql
Micah Anderson [Sun, 6 Jul 2008 17:21:57 +0000 (17:21 +0000)]
fix language to make sense
Micah Anderson [Sun, 6 Jul 2008 16:05:14 +0000 (16:05 +0000)]
. make maildir helper look in every subdirectory of the source directory for
maildirs, rather than just looking in the directories [a-zA-Z0-9], thanks
for the patch from chris@cenolan.com (Trac#43)
intrigeri [Sun, 29 Jun 2008 07:26:36 +0000 (07:26 +0000)]
dup: added option --force to cleanup and remove-older-than commands, else they actually do not do anything
intrigeri [Sun, 29 Jun 2008 07:01:29 +0000 (07:01 +0000)]
sys: explain how to fix the issue on "debconf-get-selections missing" error
intrigeri [Wed, 25 Jun 2008 09:54:45 +0000 (09:54 +0000)]
dup: set secure permissions on tmpdir when creating it
intrigeri [Wed, 25 Jun 2008 09:42:23 +0000 (09:42 +0000)]
autotools: remove requirement on md5sum, which is not used anymore
intrigeri [Wed, 25 Jun 2008 09:40:13 +0000 (09:40 +0000)]
lib/tools.in(maketemp): really remove insecure fall-back if mktemp is missing, since it is now required at build-time
intrigeri [Wed, 25 Jun 2008 09:33:35 +0000 (09:33 +0000)]
lib/Makefile.am: fix CLEANFILES, add substitution for MKTEMP, else ninjahelper crashes
intrigeri [Wed, 25 Jun 2008 09:21:11 +0000 (09:21 +0000)]
sys: make debconf-get-selections detection on VServers really more robust
intrigeri [Wed, 25 Jun 2008 09:07:30 +0000 (09:07 +0000)]
sys: fix catifexec invocations with arguments to prevent "line 191: [: too many arguments" error messages
intrigeri [Wed, 25 Jun 2008 09:02:06 +0000 (09:02 +0000)]
sys: make error message clearer when debconf-get-selections can not be found on the host
intrigeri [Wed, 25 Jun 2008 09:01:20 +0000 (09:01 +0000)]
sys: typo
intrigeri [Wed, 25 Jun 2008 09:00:04 +0000 (09:00 +0000)]
sys: fixed debconf-get-selections search in VServers, especially in case it is not available on the host
intrigeri [Wed, 25 Jun 2008 08:47:48 +0000 (08:47 +0000)]
sys: fix typo
Micah Anderson [Wed, 25 Jun 2008 03:27:06 +0000 (03:27 +0000)]
stop failing on all the trac backups if just one fails
Micah Anderson [Tue, 24 Jun 2008 20:31:58 +0000 (20:31 +0000)]
fix missing which that intrigeri saw
Micah Anderson [Tue, 24 Jun 2008 19:57:31 +0000 (19:57 +0000)]
added more robust mdadm raid device capture, by actually scanning active arrays via mdadm, rather than just catting the mdadm.conf file, which may be empty
Micah Anderson [Tue, 24 Jun 2008 19:53:36 +0000 (19:53 +0000)]
fixed catifexec function to actually work, also now takes arguments that are passed, thanks to a report from John Hallam
Micah Anderson [Tue, 24 Jun 2008 18:57:39 +0000 (18:57 +0000)]
add the ability to save the debconf package selection states in the sys handler, which aides in restoring installed packages with the right choices made
Micah Anderson [Tue, 24 Jun 2008 18:02:23 +0000 (18:02 +0000)]
made mktemp a requirement for building backupninja, added autotools variables to substitute the proper binary location and removed bad fall-back when mktemp was not there
intrigeri [Tue, 24 Jun 2008 16:05:44 +0000 (16:05 +0000)]
sys: support selection of VServers to run on with the new vsnames configuration option (Closes: Trac#45)
intrigeri [Tue, 24 Jun 2008 15:55:10 +0000 (15:55 +0000)]
pgsql, mysql, svn: use new vservers_running function from lib/vserver (factorization++)
intrigeri [Tue, 24 Jun 2008 15:49:06 +0000 (15:49 +0000)]
lib/vserver: added vservers_running function, use it in sys handler (to ease future fix for Trac#45)
intrigeri [Tue, 24 Jun 2008 15:39:03 +0000 (15:39 +0000)]
dup: actually allow to backup only VServers, by relaxing $include test
intrigeri [Tue, 24 Jun 2008 15:13:51 +0000 (15:13 +0000)]
sys: update for 2.6 kernels: use /proc/kallsyms instead of /proc/ksyms (Closes: Trac#39)
intrigeri [Tue, 24 Jun 2008 15:01:35 +0000 (15:01 +0000)]
pgsql: clarify error message when backupdir does not exist
intrigeri [Tue, 24 Jun 2008 14:36:52 +0000 (14:36 +0000)]
Fixed tr construct reporting a warning (Closes: #452669).
intrigeri [Tue, 24 Jun 2008 14:11:22 +0000 (14:11 +0000)]
dup: warn about bandwithlimit being unused when desturl is set
intrigeri [Tue, 24 Jun 2008 13:32:34 +0000 (13:32 +0000)]
dup: support every duplicity-supported transport with new configuration option desturl (Closes: #483712, #346040, Trac#2)
intrigeri [Tue, 24 Jun 2008 10:48:55 +0000 (10:48 +0000)]
Allow the entire backup run to be halted by an action (Closes: #455836)
intrigeri [Mon, 23 Jun 2008 21:09:14 +0000 (21:09 +0000)]
LDAP helper: make error message clearer when no supported backend is found
intrigeri [Mon, 23 Jun 2008 21:07:19 +0000 (21:07 +0000)]
LDAP: support HDB backend just as the BDB one