Commit Graph

597 Commits

Author SHA1 Message Date
Silvio Rhatto
05f596080d Issue just warnings on non-fatal rsync errors (#3966) 2012-06-20 00:38:23 -03:00
intrigeri
29dcdbae91 Run rsync command-line through a shell, so that single-quotes around excludes are interpreted (Closes: #677410)
When --exclude 'something' is passed directly to rsync without going through
a shell, rsync tries to match a file whose name contains single quotes, which is
definitely not what we want it to do: exclude arguments protected with single
quotes are meant to be passed to a shell.
2012-06-15 20:30:25 +02:00
intrigeri
1b48bc4444 rsync: stop passing $excludes as a single argument. 2012-06-15 20:27:01 +02:00
intrigeri
f7488968c0 rsync: generate excludes command-line snippet the same way as the duplicity handler does.
The latter has a robust history wrt. dealing with excludes / glob / quoting
etc., let's use that instead of the shiny new sed-based way.
2012-06-15 20:21:09 +02:00
Micah Anderson
cd3abeab35 add experimental dsync handler, heavily based on maildir handler 2012-06-11 10:22:08 -04:00
Micah Anderson
1eabbe5de7 dont run lspci and modinfo when hwinfo==no 2012-06-11 10:07:53 -04:00
Micah Anderson
f8e69f738e Merge branch 'master' of labs.riseup.net:backupninja 2012-06-11 10:02:34 -04:00
intrigeri
b05065625c mysql: use --skip-events when backing up the performance_schema database (Closes: #673572) 2012-05-20 13:11:12 +02:00
intrigeri
7e6a79c3d2 Install handlers as pkgdata_DATA, instead of their .in files. 2012-05-15 17:52:49 +02:00
intrigeri
d464a9742d Have "make dist" package handlers/*.in instead of make results. 2012-05-15 17:07:15 +02:00
Silvio Rhatto
5b319008da Updating pipefail branch so it can merge with master (#3892) 2012-05-15 10:00:45 -03:00
intrigeri
7c66b699f5 Always use explicit sed's -e.
Hopefully this fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656968#31
and future incarnations of this class of bugs.
2012-05-14 16:30:02 +02:00
Silvio Rhatto
118d7587b6 Changing pipefail just when it's really needed 2012-05-12 21:48:43 -03:00
intrigeri
c522391404 Merge remote-tracking branch 'sarava/bug/3721' 2012-05-13 02:33:37 +02:00
intrigeri
38a0fc572a Merge remote-tracking branch 'sarava/bug/3838' 2012-05-13 02:31:06 +02:00
intrigeri
64b4d1c9f6 Merge remote-tracking branch 'sarava/bug/3840' 2012-05-13 02:29:48 +02:00
intrigeri
8e3981f444 Merge remote-tracking branch 'sarava/bug/3882' 2012-05-13 02:11:27 +02:00
Silvio Rhatto
b7a92b20f8 Fixing typos (#3868) 2012-05-10 21:26:38 -03:00
Silvio Rhatto
fbf25018be Set/restore pipefail to not mess with other scripts (#3892) 2012-05-10 21:03:37 -03:00
Silvio Rhatto
c43bac5911 Ensure that a non-zero rsync exit status is caught by our handler (#3892) 2012-05-10 18:47:11 -03:00
Silvio Rhatto
f2f7e8cdb3 Merge branches 'master' and 'bug/3840' into bug/3840 2012-05-10 18:16:32 -03:00
Silvio Rhatto
5af9b96371 Removing duplicated locking support (#3838) 2012-05-10 17:25:34 -03:00
Silvio Rhatto
ba3e37595d Changing a 'fatal' to a 'warning' on rsync handler.
Using 'warning' and 'return' instead of a fatal at rotate_long if
backuproot doesn't exist. Using a warning ensures that the backup
action can process the other includes and not just exit.
2012-05-10 17:00:58 -03:00
Silvio Rhatto
bf5ada0f03 Changing remaining 'exit' to 'fatal' at rsync handler (#3721) 2012-05-10 16:53:52 -03:00
Silvio Rhatto
230c96d9d4 Update increment folder date (#3929) 2012-05-09 19:27:46 -03:00
Silvio Rhatto
39bb9e605f Trying additional quoting on excludes (upstream #3882) 2012-04-13 09:58:18 -03:00
Silvio Rhatto
5ea13f4c24 Using @SED@ for #3882 2012-04-13 00:31:03 -03:00
Silvio Rhatto
aa8d0f8648 Quoting $exclude and $excludes and avoiding a for loop on $exclude to not expand wildcards in beforehand (upstream #3882) 2012-04-12 21:29:57 -03:00
Silvio Rhatto
e22107cf09 Validate created date on long_rotation to avoid too many arguments at comparison (upstream #3868) 2012-04-12 20:52:05 -03:00
Silvio Rhatto
29286c7c3e Quoting $starttime (upstream #3868) 2012-04-12 20:52:02 -03:00
Micah Anderson
79916c4c20 remove rsyncflags and excludes from maildir handler, they are not used anywhere 2012-03-27 11:58:18 -04:00
Micah Anderson
c9aa8b1d6f remove maildir handler 'loadlimit' - it is not used anywhere 2012-03-27 10:49:26 -04:00
Silvio Rhatto
15b92db991 Rsync handler: use the backup start time and not the time the backup was finished (Debian #654192) 2012-02-28 01:00:45 -03:00
Silvio Rhatto
1fda206fa2 Rsync handler: using more debug/warning instead of regular echo (upstream #3840) 2012-02-27 18:47:21 -03:00
Silvio Rhatto
33f330c0a3 Force rsync handler run bash at the remote destination (upstream #3003) 2012-02-27 17:17:56 -03:00
Silvio Rhatto
102c619341 Fixing $rsync_options output when rsync is local (Issue #3001) 2012-02-26 13:51:24 +01:00
intrigeri
3a94e3bc59 Report duplicity failure output at error loglevel so that it is emailed. 2012-02-25 15:05:32 +01:00
intrigeri
3ac357dd95 Report failure of rdiff-backup jobs as such. 2012-02-25 14:56:56 +01:00
intrigeri
50c2f6e02a Remove leftover FIXME that was fixed. 2012-02-25 14:41:50 +01:00
intrigeri
a74db16e51 Fix typos. 2012-02-25 14:01:49 +01:00
intrigeri
db168e41fd pgsql: don't produce empty uncompressed backups (Redmine#3820). 2012-02-25 13:30:09 +01:00
intrigeri
5bfa30bb22 Support bandwidthlimit again with new duplicity, using trickle.
duplicity 0.6.17 uses paramiko backend.
Thus, it does not support limiting bandwidth anymore.
Let's use trickle to support bandwidth shaping anyway.
2012-01-29 16:44:12 +01:00
intrigeri
f896ef3f65 dup: add precmd to every duplicity call. 2012-01-29 15:09:37 +01:00
intrigeri
357a17b155 Use --ssh-options with dup >= 0.6.17.
... and warn about unsupported options.
2012-01-29 15:09:37 +01:00
intrigeri
b99ccd6303 mysql: Don't attempt to dump performance_schema database (Redmine#3741).
Locking its tables require privileges the 'debian-sys-maint'@'localhost' user is
generally not granted.
2012-01-24 01:25:08 +01:00
Silvio Rhatto
dcabf4fe4e Fixing escaping and debug message for remote metadata cleanup (#3727) 2012-01-04 22:48:45 +01:00
Silvio Rhatto
db45b98132 Cleanup orphaned metadata (#3727) 2012-01-04 22:48:41 +01:00
Silvio Rhatto
d680847c37 Abort on rsync error (#3692) 2012-01-01 17:28:14 +01:00
Silvio Rhatto
6933a8724d Fixing metadata rotation 2012-01-01 10:46:15 +01:00
Silvio Rhatto
aaa53a78b2 Allow disabling rotation or setting 2 days as minimum for backup increments in rsync short format (Issue #2107) 2012-01-01 10:45:48 +01:00
Silvio Rhatto
10d67587ef Removing 'exit 1'; using 'fatal' instead (Redmine#3721) 2012-01-01 10:41:16 +01:00
Silvio Rhatto
926152dfa1 Mangle rsync_options just after all other options were evaluated (#3702) 2011-12-31 22:05:50 +01:00
Silvio Rhatto
b89b684c2c Provide a default number of days for the rsync handler 2011-12-31 22:02:29 +01:00
Silvio Rhatto
46000c0308 Make numericids defaults to null (fixes #3691) 2011-12-31 21:49:29 +01:00
intrigeri
f351306d82 dup: add support for RackSpace's CloudFiles.
Thanks to Yuval Kogman <nothingmuch@woobling.org> for the patch.
2011-10-22 21:46:50 +02:00
intrigeri
25ad989fb7 Make the .dup generated by ninjahelper more consistent with example.dup.
I.e. document tmpdir.
2011-09-24 19:10:35 +02:00
intrigeri
65ff22247e Remove useless and inconsistent executable bit on sys handler. 2011-09-20 22:36:04 +02:00
intrigeri
08ec567290 Don't install LDAP handler, helper and example configuration file.
The handler has been heavily broken for a while.
It clearly lacks a maintainer.
2011-09-20 22:29:42 +02:00
intrigeri
5d94e2ad0d dup: fix incorrect duplicity version check for keepincroffulls.
Thanks to Olivier Berger <oberger@ouvaton.org> for the patch.
(Closes Redmine bug #3443)
(Closes: #641120)
2011-09-11 00:18:23 +02:00
intrigeri
3e576ff693 Fix infinite loop in rdiff helper when version inconsistency is detected. 2011-08-30 13:00:49 +02:00
Silvio Rhatto
3ae23af640 Fixing $rsync_options output (Issue #3001) 2011-08-17 19:28:35 +02:00
Silvio Rhatto
9e7c186f02 Fixing $rsync_options output when rsync is local (Issue #3001) 2011-08-17 19:27:59 +02:00
intrigeri
7b57f84a92 Cleanup: stop supporting duplicity < 0.6.01 (Redmine#2538). 2011-08-17 12:31:30 +02:00
intrigeri
e691eb7a10 Allow 'when = XXX' in sh jobs.
when=XXX did work already. This patch allow to write this with spaces around the
equal sign - as in every other backup.d/ file.
2011-08-17 12:15:37 +02:00
intrigeri
49a5c56321 sys: fix gathering of information about loaded modules.
cut is in /usr/bin actually.
2011-05-15 19:19:48 +02:00
intrigeri
d32cc2318c sys: fix hwinfo (Closes: #625501) 2011-05-05 09:17:37 +02:00
intrigeri
7d873cf4ce Merge remote branch 'bruno/master' 2011-04-26 11:07:18 +02:00
intrigeri
5910e1ce81 tar helper: default to store backups into /var/backups/. 2011-04-26 11:05:49 +02:00
intrigeri
cdcc2bc5c9 Do arithmetic using bash rather than bc (Closes: #603173) 2011-04-26 11:00:02 +02:00
intrigeri
8f70c54e0a Initialize dup_keepincroffulls as any other global variable. 2011-04-26 10:31:39 +02:00
Olivier Berger
b5b400aca6 Fix option name, and revert defaults to previous settings 2011-04-25 22:40:45 +02:00
Olivier Berger
55fe213f9b Fix merge problem 2011-04-25 22:40:44 +02:00
Olivier Berger
ca14175210 Now that there's some removal of increments for old fulls, we can keep fulls for a longer time, for instance 1Y which becomes default 2011-04-25 22:40:44 +02:00
Olivier Berger
573e803a07 Proposed feature to address https://labs.riseup.net/code/issues/2492 2011-04-25 22:40:44 +02:00
Olivier Berger
a1c2229e1a Proposed feature to address https://labs.riseup.net/code/issues/2492 2011-04-25 22:40:44 +02:00
intrigeri
6aca9c822b All handlers: stop using "local VAR" outside functions. (Closes: #530647) 2011-04-25 18:55:58 +02:00
Bruno Bigras
1bf46e1128 Add the tar handler to Makefile.am 2011-04-20 23:06:28 -04:00
intrigeri
2392094a24 Make units clearer (Closes Redmine bug #2737). 2011-02-16 08:22:10 +01:00
intrigeri
a036144de8 Documentation: recommend using 4096 bits RSA keys everywhere. 2011-01-27 19:02:28 +01:00
intrigeri
8190b0dbc7 rdiff.helper: generate 4096 bits RSA keys. 2011-01-27 19:00:15 +01:00
intrigeri
8098286aa1 dup helper: fix separate signing key usecase.
Thanks to Ian Beckwith for the patch.
2010-12-13 11:24:21 +01:00
intrigeri
13f247afeb Fix reliance on bash for pipefail. (Closes: #602374)
Thanks to Sergio Talens-Oliag <sto@debian.org> for the bug report and patch.
2010-11-07 13:07:26 +01:00
Jacob Anawalt
0b60b58153 Removed extra '.' in plain/sql dumps
Removed an extra '.' in file names introduced by the pg_dump options
patch, resulting in names like db..sql or db..sql.gz instead of just
db.sql or db.sql.gz.
2010-10-19 22:52:03 +02:00
Micah Anderson
9271e58a24 older versions (lenny) of lvm2 have a bug in vgcfgbackup that makes it so when you specify multiple volume groups to backup, it gives an error, saying you must set the %s template for the name. We are doing that, it just cannot handle it properly.
This change routes around this issue, which has been fixed in later lvm2 releases, by passing only one argument to vgcfgbackup by taking all the volume groups that are found and running them through a for loop
2010-10-12 11:48:50 -04:00
intrigeri
a80d6f4a0c Make it clear duplicity >=0.4.9 is required when using a custom tmpdir. 2010-10-12 11:47:15 +02:00
intrigeri
dc7f723e5c Remove support for duplicity < 0.4.4. Even etch-backports has a newer one. 2010-10-12 11:44:35 +02:00
intrigeri
55d9452da5 dup: use --tempdir option rather than TMPDIR environment variable.
Closes Roundup bug #598.

This breaks support of Debian etch.
2010-10-12 11:15:47 +02:00
Jacob Anawalt
7355535ee1 Enable pg_dump format option.
The format option of pg_dump enables tar and custom archive file formats in
addition to the default plain-text file containing SQL commands.

When either the tar or custom format are selected the behaviour of database=all is changed to no longer dump a single file via pg_dumpall. Instead pg_dumpall
is called once to export the "global" data (roles & tablespaces) and then
pg_dump is called once for each non-template table in the database.

To support the GZIP and GZIP_OPTS variables in backupninja and to give the
default --rsyncable gzip compression flag a chance at working on a PostgreSQL
backup, the custom output is forced to not use compression. Instead compression
is done via a pipe to gzip. Hopefully this benefits rsync and rdiff-backup
style backups for reduced backup and storage costs that outweigh the
restoration ones.
2010-10-12 10:49:34 +02:00
Silvio Rhatto
2bf727c140 Don't remove created metadata after rotation at rsync 2010-09-25 16:29:43 -03:00
Silvio Rhatto
eff27ce1cd Fixing long rotation at rsync handler 2010-09-20 22:10:13 -03:00
intrigeri
c0c02efafd rdiff: support reading include/exclude patterns from files. 2010-09-12 23:26:08 +02:00
Silvio Rhatto
e90b9b78bb Removing rsync handler changelog 2010-09-02 20:39:42 -03:00
Silvio Rhatto
6bc07684e9 Removing unneeded hostname and user from ssh_cmd_base 2010-09-02 20:39:07 -03:00
Silvio Rhatto
c3f4247c06 Changing 'info' to 'fatal' at rsync handler set_lockfile function 2010-09-01 19:02:29 -03:00
Silvio Rhatto
7cbf1b2013 Rsync handler CHANGELOG update 2010-08-25 20:53:23 -03:00
Silvio Rhatto
f4ed3ae9a2 Making sure that the pid on lockfile reffers to an rsync backup process 2010-08-21 19:30:02 -03:00
Silvio Rhatto
7f075c1e3e Fixing lockfile checks for rsync handler 2010-08-21 18:37:48 -03:00
Silvio Rhatto
9fe6ebf377 RSYNC_RSH fix 2010-08-17 12:18:16 -03:00
Silvio Rhatto
7ef6a0b844 Fixing ssh_cmd and RSYNC_RSH at rsync handler 2010-08-17 10:59:13 -03:00
intrigeri
4015578106 Fix code logic to make dbusername/dbpassword actually usable (Closes Redmine bug #2264) 2010-06-24 16:53:58 +02:00
intrigeri
9179c59b50 mysql: don't lock tables in the information_schema database (Closes: #587011) 2010-06-24 16:18:44 +02:00
intrigeri
aeca6912a8 Added GZIP_OPTS option, defaulting to --rsyncable.
... so that this option can be disabled on systems that don't support it.
This also allows to use another compression program, such as pbzip2 on SMP
machines (closes Roundup bug #2405).
2010-06-14 19:06:59 +02:00
intrigeri
46ace65573 Added /var/cache/backupninja/duplicity to default excludes.
... for rdiff.helper, dup.helper, example.dup and example.rdiff.
2010-05-10 22:18:49 +02:00
intrigeri
d6ec2b4e62 Store duplicity cache to /var/cache/backupninja/duplicity.
... instead of previous /var/backups/duplicity.
2010-05-10 22:15:41 +02:00
intrigeri
99434c8b07 Added ftp_password option.
This is the only way to securely transmit the FTP password from backupninja
to duplicity.
2010-05-06 20:05:20 +02:00
intrigeri
219a6eb958 Better example.dup documentation. Thanks, Alster! 2010-05-06 19:47:54 +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
e0981ba3f0 Rephrase, reformat and sync example dup configuration. 2010-05-06 18:53:51 +02:00
Olivier Berger
abf7a4bb65 Implement Debian #535996 to use --full-if-older-than 2010-05-02 17:45:02 +02:00
olivier
4f4ee9b0d9 Add full-if-older-than with half the keep duration 2010-05-02 12:05:15 +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
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
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
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
olivier
480ace739c Convert from debug to info so that it can be reported in the email 2010-01-05 13:47:12 +01:00
olivier
61eb6a7484 Add duplicity output line by line instead of with a whole at one time. Should help fix #536360 2010-01-05 13:16:09 +01:00
intrigeri
a53e8a531a Fix indentation of previously cherry-picked patch 2010-01-05 13:11:57 +01:00
intrigeri
d65fa0c058 Cherry-picked "fixes for mysql handler for mysqld inside a vserver"
This commit (64edfccf76) was wrongly committed to
the debian branch.

Conflicts:

	handlers/mysql.in
2010-01-05 13:09:38 +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
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
5da707b309 rsync: added vim and Emacs modelines for consistency's sake 2009-12-25 02:28:55 +01:00
Micah Anderson
34d0d30593 adjust the comparison operators in the rsync handler, fixes #1473 2009-12-02 17:09:16 -05:00
intrigeri
f967264717 ldap, mysql, pgsql: use gzip's --rsyncable option 2009-11-19 20:27:46 +01:00
Silvio Rhatto
75d17d06f2 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. :)
2009-11-06 11:16:16 -05:00
Micah Anderson
f549dc44f6 Fix missing $ in variable name, fixes: #1239 2009-09-23 16:07:58 -04:00
intrigeri
1b991d6c15 dup: fixed bandwidth vs desturl testing 2009-07-18 10:48:10 +02: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
Matthijs Kooijman
78884142e7 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).
2009-05-23 10:42:20 +02:00
Matthijs Kooijman
4ecaae9405 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.
2009-05-23 10:34:16 +02: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
2cfcdd636d mysql: new sqldumpoptions config variable (Closes: #502966) 2008-12-09 11:40:03 +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
Micah Anderson
351369b874 update makecd handler to work with new toolset 2008-07-25 20:11:24 +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
0a6abfc3ce dup: added option --force to cleanup and remove-older-than commands, else they actually do not do anything 2008-06-29 07:26:36 +00:00
intrigeri
947b6f03ff sys: explain how to fix the issue on "debconf-get-selections missing" error 2008-06-29 07:01:29 +00:00
intrigeri
788e82b56a dup: set secure permissions on tmpdir when creating it 2008-06-25 09:54:45 +00:00
intrigeri
ddce1197cb sys: make debconf-get-selections detection on VServers really more robust 2008-06-25 09:21:11 +00:00
intrigeri
edeb50c733 sys: fix catifexec invocations with arguments to prevent "line 191: [: too many arguments" error messages 2008-06-25 09:07:30 +00:00
intrigeri
755c0160d4 sys: make error message clearer when debconf-get-selections can not be found on the host 2008-06-25 09:02:06 +00:00
intrigeri
3f29d82b6c sys: typo 2008-06-25 09:01:20 +00:00
intrigeri
f1cb4e9a64 sys: fixed debconf-get-selections search in VServers, especially in case it is not available on the host 2008-06-25 09:00:04 +00:00
intrigeri
1d930270d0 sys: fix typo 2008-06-25 08:47:48 +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
b499255f8a fix missing which that intrigeri saw 2008-06-24 20:31:58 +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
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
1330b16c99 pgsql: clarify error message when backupdir does not exist 2008-06-24 15:01:35 +00:00
intrigeri
c18c24b4e2 dup: warn about bandwithlimit being unused when desturl is set 2008-06-24 14:11:22 +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
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
eff97c8235 add an option to maildir handler to enable you to specify a particular
ssh identity file, defaulting to the expected /root/.ssh/id_rsa. This
is important to have if you are trying to backup to a different user
on a backuphost than other handlers are using. For example, if the
rdiff handler is connecting to backalbatross@backupserver-pn using
/root/.ssh/id_rsa for public key authentication, and you want to
configure the maildir handler to connect as user
backmaildir@backupserver-pn you will might want to specify a different
identity file for that authentication (if you do not want to share the
id file between the 'backalbatross' and 'backmaildir' users). 

Note: this cannot be accomplished with a ssh config file because that
file is host based, ie. you can only specify one user per host
specified in the config
2008-06-19 15:04:41 +00:00
Elijah Saxon
72df77b210 change the date format for the deleted timestamp 2008-02-19 20:37:39 +00:00
Elijah Saxon
2a61e873bc fixed bug where maildirs that start with a number were skipped. make deleted maildirs record the date they were deleted 2008-02-19 20:31:52 +00:00
Micah Anderson
3d1389c7fe move -maxdepth 1 option before -type d due to find giving this warning when it is after:
find: warning: you have specified the -maxdepth option after a
non-option argument -type, but options are not positional (-maxdepth
affects tests specified before it as well as those specified after
it).  Please specify options before other arguments.
2008-02-13 16:57:54 +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
8c04b73c83 add missing parameter to rsync 2007-12-02 16:56:32 +00:00
intrigeri
4a931bc290 duplicity: clarify comments about duplicity versions compatibility 2007-11-29 19:54:44 +00:00
intrigeri
8ed22e66fe dup: new tmpdir config option, useful when duplicity fills up /tmp 2007-11-26 07:42:24 +00:00
intrigeri
43ad297700 fix duplicity version test 2007-11-25 17:17:55 +00:00
Micah Anderson
c8e983a5ba fix typo 2007-11-25 00:05:37 +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
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
intrigeri
421c1bb769 fixed typo (rsyn.in) that prevented make to work 2007-11-03 03:13:21 +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
intrigeri
f7f20cd4af Support duplicity >= 0.4.3 invocation syntax 2007-10-15 20:55:59 +00:00
intrigeri
5cda2e3cac forgot to add CLEANFILES to handlers/Makefile.am 2007-10-12 17:48:23 +00:00
intrigeri
579ea902ba fixed autotools build, broken since r466, inhandlers/Makefile.am 2007-10-12 17:06:09 +00:00
intrigeri
869ca46e85 dup: cleanup unused var. 2007-08-05 15:20: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
Elijah Saxon
5cf34cae1d made maildir handler spit out username when in debug mode 2007-04-23 00:10:50 +00:00
Elijah Saxon
fa54151cc6 commented out info line 2007-03-23 00:09:41 +00:00
Micah Anderson
6cdc21cff7 fix LC_ALL=C sfdisk thing that I missed 2007-03-04 20:15:39 +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
d15a347be5 added some fixes from ale for the ldap handler
re-ordered the handler list in the changelog to be alpha
2007-02-01 23:32:13 +00:00
Elijah Saxon
5621db48e9 made source directory not found into warning instead of fatal 2007-01-22 21:35:52 +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
ea468148c5 Add Jamie McClelland's cstream patches 2006-12-15 23:13:47 +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
95ea71bfd1 Added rub handler fixes from rhatto 2006-11-01 21:50:26 +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
Micah Anderson
d595bf00cb forgot to commit minor fix to rub handler 2006-10-31 05:00:13 +00:00
intrigeri
56c992661c sys: fix bug when vrootdir is on its own partition 2006-10-28 19:19:55 +00:00
intrigeri
e2f2e629cc sys: fixed typo breaking things with VServers 2006-10-07 22:53:46 +00:00
intrigeri
2dd5981aad sys: typo 2006-10-07 03:28:21 +00:00
intrigeri
2e9bb3f05e sys: fix the '*' in dpkg --get-selections 2006-10-07 03:27:24 +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
4ceb4f15c2 Added rhatto's updated rub handler, not removing rsnap now, will probably want to do that
later
2006-10-06 18:26:42 +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
b5ebe5d215 Added rhatto's rub handler, a second try at a rsync snapshot 2006-09-26 04:01:56 +00:00
Micah Anderson
28338e91c3 Added RPM patches submitted by Robert Napier 2006-08-11 13:46:57 +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
7814d463e4 Added warning if no devices were found on the system 2006-08-06 18:25:18 +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
824ef5ad9a added 2006-07-10 20:03:45 +00:00
Elijah Saxon
e511922ead shortened debugging messages 2006-07-10 19:34:21 +00:00
Micah Anderson
fe7ee521a6 add in-line compression to ldap handler 2006-06-10 00:33:51 +00:00
Micah Anderson
a2436c2ba4 Updated the indentation to be according to the agreed standard 2006-06-10 00:29:01 +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
intrigeri
8589faa7f0 Applied Anarcat's patch to fix rdiff's $test 2006-06-09 11:34:42 +00:00
intrigeri
c1c28e7032 dup & rdiff: fixed * expansion in e-mails 2006-06-04 00:43:00 +00:00
intrigeri
79cc6a73b3 dup: now forbid to (try to) backup / 2006-06-04 00:36:33 +00:00
intrigeri
a65bc7af30 rdiff and dup handlers/helpers/examples symlink and globbing support enhancement
and clarification: for a given include/exclude/vsinclude statement, they now
support EITHER globbing with '*' OR symlinks in the path.
2006-06-04 00:30:03 +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
914e3c958c dup: more or less support duplicity 0.4.2 (bandwidthlimit maybe not working anymore, though) 2006-06-03 21:08:38 +00:00
intrigeri
a031bc2d53 rdiff: $VROOTDIR/$vserver was prepended twice, fixed ; thanks to Florian Burka 2006-06-03 19:11:35 +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
Micah Anderson
3313ebbd62 minor spelling fix 2006-04-22 22:02:43 +00:00
Micah Anderson
8e85d7b725 A couple other minor edits to language 2006-04-22 21:41:39 +00:00