Commit Graph

298 Commits

Author SHA1 Message Date
intrigeri
acd5a7e2e4 Fix ChangeLog entry. 2010-05-06 19:28:02 +02:00
intrigeri
33365d0953 dup: use --archive-dir /var/backups/duplicity unless the user has specified it (Closes: 580213) 2010-05-06 19:27:18 +02:00
intrigeri
25f50151e7 Updated ChangeLog and AUTHORS. 2010-05-06 18:56:56 +02:00
intrigeri
582b7521cb dup: ignore anything but digits and "." when comparing versions (Closes: #578987)
I'd love to use "dpkg --compare-versions" but we don't want backupninja to be
Debian-specific. Any similar tool?

Signed-off-by: intrigeri <intrigeri@boum.org>
2010-04-24 20:00:13 +02:00
intrigeri
1cd91839c3 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
2010-03-06 19:25:27 +01:00
intrigeri
7dce2f1138 sys: only run mdadm if RAID devices actually exist (Closes: #572450) 2010-03-06 15:27:34 +01:00
Micah Anderson
6e8c722ca2 Release 0.9.7 2010-01-27 17:11:37 -05:00
Micah Anderson
8886413321 add a few more 'formItem include' lines to the rdiff and dup handlers
to improve the ninjahelper interface as requested by alster in redmine
2010-01-19 12:01:18 +13:00
Micah Anderson
2108cf4646 add Chris Nolan to Authors for the maildir directory fix, and add
something to the changelog all for 98e62c9537
2010-01-18 11:43:55 +13:00
intrigeri
46eccf2fd0 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.
2010-01-09 23:25:03 +01:00
intrigeri
64c4d190a3 dup: support backups to Amazon S3 buckets
Thanks to stefan <s.freudenberg@jpberlin.de> for the patch.
This fixes Redmine bug #658.
2010-01-09 23:14:17 +01:00
intrigeri
0fbd8744f5 set BACKUPNINJA_DEBUG when invoked with -d (Closes: #537266) 2010-01-09 01:19:21 +01:00
intrigeri
4e0519e390 rdiff,dup: fix include/exclude paths with spaces (Closes: #398435)
This also fixes Redmine bug #1021.
2010-01-09 00:44:43 +01:00
intrigeri
47313bca65 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
2010-01-08 23:40:23 +01:00
intrigeri
49bfd02bd3 reportspace: skip non-directories and places that don't exist on the local filesystem (Closes: #536049) 2010-01-05 14:34:30 +01:00
intrigeri
b6fd3b231e Added ChangeLog entry for previous commit. 2010-01-05 13:52:43 +01:00
intrigeri
8fb9415609 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
2010-01-05 13:39:32 +01:00
intrigeri
00e759430a Added ChangeLog entry for 61eb6a7484. 2010-01-05 13:19:17 +01:00
intrigeri
d4c5f73ad7 dup.helper: do not propose to exclude /home/*/.gnupg twice anymore (Closes: #563044) 2009-12-31 17:05:47 +01:00
intrigeri
4996d8deb7 autotools: added the stat command to the automagically replaced ones
... hoping it will help supporting *BSD some day.
2009-12-25 04:09:29 +01:00
intrigeri
f4ab3148f1 mysql, pgsql: Quote output filenames
... to support shell meta-characters in database names.
Closes Redmine bug #617.
2009-12-25 02:33:13 +01:00
intrigeri
6606cce445 easydialog: allow form fields input to grow up to 100 chars (Closes: #562249) 2009-12-24 16:57:31 +01:00
intrigeri
f967264717 ldap, mysql, pgsql: use gzip's --rsyncable option 2009-11-19 20:27:46 +01:00
intrigeri
f45803230a dup: fixed bandwidthlimit test
Thanks to Ian Beckwith <ianb@erislabs.net> for the patch.
2009-07-18 10:47:55 +02:00
Micah Anderson
8000beda16 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
2009-07-09 19:00:41 -04:00
intrigeri
386c427594 sys: backup dmsetup info as well, for easier restoring of Luks headers 2009-01-22 23:37:50 +00:00
intrigeri
772af74c80 sys: new lvm option to backup LVM metadata of every detected volume group 2009-01-22 22:15:13 +00:00
intrigeri
36854a51d4 sys: new luksheaders option to backup the Luks header of every Luks device 2009-01-22 22:14:22 +00:00
intrigeri
94861df686 mysql: fix 'mysqladmin ping' use, see changelog for details 2009-01-12 22:47:30 +00:00
intrigeri
a1c625fcc3 add support for 'when = manual' (Closes: #511299) 2009-01-12 22:47:08 +00:00
intrigeri
2cfcdd636d mysql: new sqldumpoptions config variable (Closes: #502966) 2008-12-09 11:40:03 +00:00
intrigeri
4506202ea7 backupninja: do not assume English locale when using date (Closes: #465837) 2008-12-09 11:08:53 +00:00
Micah Anderson
a76cc2f576 fix location of deleted_on file and add missing destid_file options in maildir handler 2008-08-08 04:50:55 +00:00
intrigeri
c4f2b1d45e fix reportspace 2008-07-28 17:12:31 +00:00
Micah Anderson
351369b874 update makecd handler to work with new toolset 2008-07-25 20:11:24 +00:00
Micah Anderson
d404d8b754 prepare for release 2008-07-21 20:49:34 +00:00
Micah Anderson
98e62c9537 . 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)
2008-07-06 16:05:14 +00:00
intrigeri
788e82b56a dup: set secure permissions on tmpdir when creating it 2008-06-25 09:54:45 +00:00
Micah Anderson
ed9d104613 stop failing on all the trac backups if just one fails 2008-06-25 03:27:06 +00:00
Micah Anderson
910abf33c7 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 2008-06-24 19:57:31 +00:00
Micah Anderson
4d81bb451c fixed catifexec function to actually work, also now takes arguments that are passed, thanks to a report from John Hallam 2008-06-24 19:53:36 +00:00
Micah Anderson
33ff4f7506 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 2008-06-24 18:57:39 +00:00
Micah Anderson
ca12e5617b 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 2008-06-24 18:02:23 +00:00
intrigeri
fd6796ad99 sys: support selection of VServers to run on with the new vsnames configuration option (Closes: Trac#45) 2008-06-24 16:05:44 +00:00
intrigeri
88b787718d pgsql, mysql, svn: use new vservers_running function from lib/vserver (factorization++) 2008-06-24 15:55:10 +00:00
intrigeri
6c628e78f4 lib/vserver: added vservers_running function, use it in sys handler (to ease future fix for Trac#45) 2008-06-24 15:49:06 +00:00
intrigeri
ad8db347dc dup: actually allow to backup only VServers, by relaxing $include test 2008-06-24 15:39:03 +00:00
intrigeri
56617bfc5b sys: update for 2.6 kernels: use /proc/kallsyms instead of /proc/ksyms (Closes: Trac#39) 2008-06-24 15:13:51 +00:00
intrigeri
4dc5c3443f Fixed tr construct reporting a warning (Closes: #452669). 2008-06-24 14:36:52 +00:00
intrigeri
f0caa9cc1b dup: support every duplicity-supported transport with new configuration option desturl (Closes: #483712, #346040, Trac#2) 2008-06-24 13:32:34 +00:00
intrigeri
c0ca5e3dda Allow the entire backup run to be halted by an action (Closes: #455836) 2008-06-24 10:48:55 +00:00
intrigeri
5297a4855d LDAP helper: make error message clearer when no supported backend is found 2008-06-23 21:09:14 +00:00
intrigeri
f9a0906320 LDAP: support HDB backend just as the BDB one 2008-06-23 21:07:19 +00:00
Micah Anderson
7772134eb3 add changelog entry for maildir destid_file addition 2008-06-19 15:06:31 +00:00
Micah Anderson
22d6b3605c add changelog entry for maildir fix 2008-03-13 19:43:22 +00:00
Micah Anderson
cfca25c390 fix cstream definition 2008-03-13 15:48:59 +00:00
intrigeri
ef9e8e0dc2 support new duplicity versions:
- general cleanup of dup handler
 - support remove-older-than command
 - also run "duplicity cleanup" before anything else, for safety reasons
 - migrated full/incremental backup switch to new syntax
ChangeLog: removed trailing space
2008-01-14 20:32:19 +00:00
Micah Anderson
18f6031a72 rdiff: incorporate sshoptions into options via remote-schema if not there 2007-12-12 02:54:09 +00:00
Micah Anderson
c0140aea97 fixed ignore_version default value 2007-12-05 20:41:54 +00:00
Micah Anderson
4af0550584 add wget handler, add released tag to the changelog and setup changelog for next release 2007-12-02 17:34:26 +00:00
Micah Anderson
c264d442ca redhat spec file updates 2007-11-28 15:09:06 +00:00
intrigeri
8ed22e66fe dup: new tmpdir config option, useful when duplicity fills up /tmp 2007-11-26 07:42:24 +00:00
Micah Anderson
440a0ef9b3 added bug number 2007-11-25 17:54:54 +00:00
Micah Anderson
268494b0c8 allow for exclude only configurations to rdiff-backup handler: Closes Trac#21 2007-11-24 23:44:07 +00:00
Micah Anderson
ca62d94c56 fixup ldap SSL/TLS options, make TLS default in helper, Closes: Trac#13 2007-11-24 23:23:08 +00:00
Micah Anderson
84a6d7fa7a fix Trac#25 2007-11-24 23:13:24 +00:00
Micah Anderson
08c45fbb99 Fixes for Trac#24 2007-11-24 23:07:16 +00:00
Micah Anderson
0c73bf6996 fixed ldap handler not recognizing database suffix 2007-11-24 23:03:21 +00:00
Micah Anderson
a44229971b fixed Trac#29 causing slapcat + gzip not to work 2007-11-24 23:00:33 +00:00
Micah Anderson
c2f0b78ad6 fixed ldap helper setting compress option wrong, standardize on options 2007-11-24 22:44:39 +00:00
Micah Anderson
f11befa73a add a maildir examples file 2007-11-24 22:17:04 +00:00
Micah Anderson
88541957d8 added local support to rdiff helper 2007-11-24 21:53:15 +00:00
Micah Anderson
3f2a826652 fixed Trac #1, actually add example.rsync 2007-11-24 21:32:30 +00:00
Micah Anderson
19dbc0aaee add patch from matthew palmer to enhance mysql database selection (Closes: #452039) 2007-11-20 01:28:49 +00:00
Micah Anderson
ea79f006da add example.rsync and updated rsync handler from rhatto 2007-11-06 21:20:36 +00:00
Micah Anderson
3a74d7d526 remove rsnap and rename rub handler to rsync, after consultation with rhatto 2007-11-02 19:32:51 +00:00
Micah Anderson
3cf6de4374 added nodata option to mysql handler, thanks to Daniel Bonniot (Closes: 408829) 2007-11-02 00:52:55 +00:00
Micah Anderson
02a7436b7c added ignore_version option to rdiff handler to enable you override the version check 2007-11-02 00:12:04 +00:00
Micah Anderson
796e77ab90 add some debian bug numbers to Changelog for reference 2007-11-01 23:54:08 +00:00
intrigeri
f7f20cd4af Support duplicity >= 0.4.3 invocation syntax 2007-10-15 20:55:59 +00:00
intrigeri
846213cfa4 Fixed reportspace option (Trac#10) 2007-10-12 17:42:46 +00:00
intrigeri
a906ba01c7 fixed Trac#11 2007-10-12 17:14:34 +00:00
Micah Anderson
e3454782c5 add patch to ignore rdiff minor version levels 2007-07-28 11:36:40 +00:00
intrigeri
b6c7437f4b rub: Fixed integer comparison (Closes: Trac#3) 2007-06-19 10:00:30 +00:00
intrigeri
ffac2e56a5 rdiff: handle "keep = yes" to disable old backups removal (Closes: #424633) 2007-06-19 09:55:13 +00:00
Micah Anderson
6cdc21cff7 fix LC_ALL=C sfdisk thing that I missed 2007-03-04 20:15:39 +00:00
Micah Anderson
913b3850c8 fix partitionsfile example to properly use __star__ and note
why this is needed, in case someone wants to change this (Closes: #409192)
2007-03-04 10:48:24 +00:00
Micah Anderson
c0126ff1ef added ninjareport
added ale to AUTHORS for ldap fixes
adjusted sys handler to allow for turning off of sfdisk (#404071)
2007-03-04 10:29:26 +00:00
Micah Anderson
05c26446ed updated autotools abstraction to properly pick up different awk, sed,
and md5sum locations
2007-02-23 18:04:04 +00:00
Micah Anderson
5ab8f588cb minor cleanup 2007-01-21 19:32:51 +00:00
Micah Anderson
65f7b42f54 Updated makefiles to include rsnap/rub files that were
accidentally omitted
2007-01-21 19:30:10 +00:00
Micah Anderson
001ffb8d23 add to changelog 2006-12-15 23:14:25 +00:00
Micah Anderson
1727edae52 fixed case where combination of compress=no and specifying individual
vservers and mysqld wasn't running or mysqldump didn't exist would cause
a zero byte backup file
2006-12-13 05:36:41 +00:00
Micah Anderson
8932a62c3a changed spaces to tabs in Makefile.am (make will ignore
the section if its spaces)
2006-11-28 23:27:19 +00:00
Micah Anderson
95ea71bfd1 Added rub handler fixes from rhatto 2006-11-01 21:50:26 +00:00
Micah Anderson
0f46b775b9 my changelog was in conflict, resolving this 2006-11-01 21:40:46 +00:00
intrigeri
42b7be6130 sys: closes 396632 for real 2006-11-01 21:30:02 +00:00
intrigeri
b2cda6aae3 sys: start to fix silly output display and data loss 2006-11-01 21:14:35 +00:00
intrigeri
6b015afc1e pgsql: support PGSQLUSER for real (Closes: #396578) 2006-11-01 18:26:41 +00:00
intrigeri
b35260e595 Changelog completing with proper Closes: Debian bug 2006-10-28 19:34:56 +00:00
intrigeri
56c992661c sys: fix bug when vrootdir is on its own partition 2006-10-28 19:19:55 +00:00
intrigeri
5eef842c2b fixed configuration files permission check 2006-10-08 00:42:47 +00:00
Micah Anderson
2276e5df3f fixed automake problem if /etc/backup.d already exists 2006-10-07 23:04:27 +00:00
intrigeri
e2f2e629cc sys: fixed typo breaking things with VServers 2006-10-07 22:53:46 +00:00
Micah Anderson
787e4aadd2 Change /etc/backup.d permissions to need 0770 for admingroup 2006-10-07 03:59:32 +00:00
intrigeri
2e9bb3f05e sys: fix the '*' in dpkg --get-selections 2006-10-07 03:27:24 +00:00
intrigeri
26e33dcc47 ninjahelper.in: remove runtime overzealous perms checks on the helpers 2006-10-07 02:44:05 +00:00
Micah Anderson
87143986c0 Here is my trac commit 2006-10-07 02:01:47 +00:00
intrigeri
054f9fb2ad dup: document how to write sftp-compatible (and thus new-duplicity-compatible)
sshoptions setting (Closes: #388543)
2006-10-07 01:23:21 +00:00
intrigeri
d395ae94a5 dup, rdiff: implemented and documented simpler and clearer symlinks/globbing
behaviour, as proposed on
http://lists.riseup.net/www/arc/backupninja/2006-07/msg00008.html
2006-10-07 00:40:58 +00:00
Micah Anderson
947309699d added ldaphost and tls variable as requested by stefani 2006-10-06 20:00:52 +00:00
Micah Anderson
4ce9c573c8 Added disk space report option (adam kosmin suggestion)
removed sys vserver not running noise report (anarcat suggestion)
2006-10-06 18:42:32 +00:00
Micah Anderson
7debcd465b added purged packages to dpkg --get-selections 2006-10-04 23:38:30 +00:00
Micah Anderson
6d6d041bce Added changes from rhatto 2006-10-02 00:21:24 +00:00
Micah Anderson
56e2f27e79 Fixed stat to use --format instead of --printf to be compatible with coreutils 2006-08-13 15:53:11 +00:00
Micah Anderson
28338e91c3 Added RPM patches submitted by Robert Napier 2006-08-11 13:46:57 +00:00
Micah Anderson
6764e88373 Added details to example.rsnap 2006-08-10 20:45:52 +00:00
Micah Anderson
e6bf696c5a Changed partition check to use sfdisk as its more common 2006-08-08 21:40:08 +00:00
Micah Anderson
8e154d59ef Added patch to improve RPM building 2006-08-06 18:01:28 +00:00
Micah Anderson
32e13d4c65 Added fix to mysql handler for option change to --extra-files, also
comitting change to pgsql handler that I forgot to change, allows
the postgresql user to be set in backupninja.conf, instead of hardcoded
2006-08-03 17:38:00 +00:00
Elijah Saxon
bab810d242 added rsnap 2006-07-10 20:08:35 +00:00
Micah Anderson
e3f280a3ca Added explicit mktemp template names so that mktemp is more compatible with other versions
than Debian's. Also added Anarcat to the AUTHORS file
2006-06-10 16:14:38 +00:00
Micah Anderson
11601b4ccd Add fix from anarcat for ${configdirectory} in ninjahelper, also add -L to find to follow symlinks in case this
directory is actually not a directory, but instead a symlink to somewhere else
2006-06-10 16:09:59 +00:00
Micah Anderson
f07f4b873b the find that looks in /etc/backup.d didn't follow symlinks and would instead fail
silently causing me much confusion, so I added -L to find and an if statement to
spit something out so its obvious
2006-06-10 13:40:22 +00:00
Micah Anderson
fe7ee521a6 add in-line compression to ldap handler 2006-06-10 00:33:51 +00:00
Micah Anderson
b5130c4941 Added in-line compression to pgsql and mysql handlers, appears to work fine in tests 2006-06-10 00:25:16 +00:00
Micah Anderson
489e294c50 Added a slightly modified version of the anti-fascist patch (allows for
a configurable admingroup to be set, instead of forcing it to be root),
closes debian bug#370396
2006-06-09 17:27:21 +00:00
intrigeri
79cc6a73b3 dup: now forbid to (try to) backup / 2006-06-04 00:36:33 +00:00
intrigeri
8042abbba0 Forgot to update Changelog for previous rev: rdiff now works if testconnect=no and if $test is not defined 2006-06-04 00:34:23 +00:00
intrigeri
b538ddaa1e dup: checked that bandwidthlimit still works with duplicity 0.4.2, reflected
this into the docs/examples/Changelog
2006-06-03 22:37:40 +00:00
intrigeri
1c8466a3b8 forgot to write to Changelog 2006-06-03 21:12:00 +00:00
intrigeri
8776e3a3e3 ninjahelper: Recursively ignore subdirs in /etc/backup.d (Finally Closes: #361102) 2006-05-30 03:41:39 +00:00
intrigeri
098952b69d dup (helper + handler + example config) : don't pretend anymore that duplicity
can work without any passphrase ; thanks Micah for the bug report
2006-05-30 03:40:34 +00:00
intrigeri
a8c5734f54 pgsql: postgres user UID is now the one from inside the vserver if necessary 2006-04-24 16:16:12 +00:00
intrigeri
806d97652f pgsql: Fixed shell expansion, thanks Thomas Kotzian (Closes: #363297) 2006-04-24 16:16:01 +00:00
Elijah Saxon
08e8ea9537 2006-04-19 23:21:55 +00:00
Micah Anderson
db0d7b6059 Updated the sys handler to include all the checks that Petr Klima
sent in the rhsys handler, made it work for both redhat and debian
2006-04-13 16:51:25 +00:00
Micah Anderson
d3875324de Added tar handler 2006-04-12 21:17:06 +00:00
Micah Anderson
ea111f2a5c Changed cron.d permissions to 644 2006-04-12 21:06:34 +00:00
intrigeri
5158f2569f Recursively ignore subdirs in /etc/backup.d (Closes: #361102) 2006-04-08 10:44:55 +00:00
Micah Anderson
e12521be73 Removed over zelous vsnames check 2006-04-05 04:40:40 +00:00
Micah Anderson
8f7a366d32 Fixed su quoting usage, as outlined here:
http://lists.debian.org/debian-devel-announce/2006/03/msg00003.html
2006-03-20 23:08:07 +00:00
Micah Anderson
0e353b42db lost+found was not being removed from the list of found_vservers
because the + was being interpreted by grep -E, I've escaped it
so it will properly be removed
2006-03-15 18:05:43 +00:00
Micah Anderson
0137962360 Fixed the include=/exclude= improper dereference problem in the dup handler 2006-03-11 07:22:44 +00:00
Micah Anderson
dc8e99c6c4 If you include= or exclude= a directory that is actually a symlink
somewhere along the chain you will only backup the symlink, and
not the data, this is fixed here in rdiff with this change
2006-03-11 07:21:04 +00:00
Micah Anderson
c8ebca79ad mysql tried to remove a tmpfile that didn't exist, fixed check for this 2006-03-07 18:40:08 +00:00
Micah Anderson
a8d99f1b1e Fixed improper use of $vuserhome as reported as Debian bug #351083 2006-02-03 19:48:50 +00:00
intrigeri
1f21ab1f9d mysql, pgsql and svn handlers: fixed inversed vsname emptyness test 2006-02-02 20:28:28 +00:00
intrigeri
cd19017bd6 Changelog: added next-release section, added my previous fix' log entry 2006-02-02 20:13:14 +00:00
Micah Anderson
eac987023c configure script should not be in svn, but instead generated on release
configure.in modified to be more selective about finding bash
configure.in modified for 0.9.3 release
autogen.sh modified to create config.guess and config.sub for release
changelog updated about autoconf changes
Removed /bin/bash TODO line
2006-01-20 00:10:58 +00:00