aboutsummaryrefslogtreecommitdiff
path: root/handlers
AgeCommit message (Collapse)Author
2010-10-19Removed extra '.' in plain/sql dumpsJacob Anawalt
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-12older versions (lenny) of lvm2 have a bug in vgcfgbackup that makes it so ↵Micah Anderson
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-12Make it clear duplicity >=0.4.9 is required when using a custom tmpdir.intrigeri
2010-10-12Remove support for duplicity < 0.4.4. Even etch-backports has a newer one.intrigeri
2010-10-12dup: use --tempdir option rather than TMPDIR environment variable.intrigeri
Closes Roundup bug #598. This breaks support of Debian etch.
2010-10-12Enable pg_dump format option.Jacob Anawalt
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-09-25Don't remove created metadata after rotation at rsyncSilvio Rhatto
2010-09-20Fixing long rotation at rsync handlerSilvio Rhatto
2010-09-12rdiff: support reading include/exclude patterns from files.intrigeri
2010-09-02Removing rsync handler changelogSilvio Rhatto
2010-09-02Removing unneeded hostname and user from ssh_cmd_baseSilvio Rhatto
2010-09-01Changing 'info' to 'fatal' at rsync handler set_lockfile functionSilvio Rhatto
2010-08-25Rsync handler CHANGELOG updateSilvio Rhatto
2010-08-21Making sure that the pid on lockfile reffers to an rsync backup processSilvio Rhatto
2010-08-21Fixing lockfile checks for rsync handlerSilvio Rhatto
2010-08-17RSYNC_RSH fixSilvio Rhatto
2010-08-17Fixing ssh_cmd and RSYNC_RSH at rsync handlerSilvio Rhatto
2010-06-24Fix code logic to make dbusername/dbpassword actually usable (Closes Redmine ↵intrigeri
bug #2264)
2010-06-24mysql: don't lock tables in the information_schema database (Closes: #587011)intrigeri
2010-06-14Added GZIP_OPTS option, defaulting to --rsyncable.intrigeri
... 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-05-10Added /var/cache/backupninja/duplicity to default excludes.intrigeri
... for rdiff.helper, dup.helper, example.dup and example.rdiff.
2010-05-10Store duplicity cache to /var/cache/backupninja/duplicity.intrigeri
... instead of previous /var/backups/duplicity.
2010-05-06Added ftp_password option.intrigeri
This is the only way to securely transmit the FTP password from backupninja to duplicity.
2010-05-06Better example.dup documentation. Thanks, Alster!intrigeri
2010-05-06dup: use --archive-dir /var/backups/duplicity unless the user has specified ↵intrigeri
it (Closes: 580213)
2010-05-06Rephrase, reformat and sync example dup configuration.intrigeri
2010-05-02Implement Debian #535996 to use --full-if-older-thanOlivier Berger
2010-05-02Add full-if-older-than with half the keep durationolivier
2010-04-24dup: ignore anything but digits and "." when comparing versions (Closes: ↵intrigeri
#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-03-06dup: use duplicity's --extra-clean option when necessaryintrigeri
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-06sys: only run mdadm if RAID devices actually exist (Closes: #572450)intrigeri
2010-01-19add a few more 'formItem include' lines to the rdiff and dup handlersMicah Anderson
to improve the ninjahelper interface as requested by alster in redmine
2010-01-09rdiff: fix confusing error if rdiff-backup cannot be found on remote server.intrigeri
Thanks to maniacmartin <martin@maniacmartin.com> for the patch on which this one is based. This closes Redmine bug #1209.
2010-01-09dup: support backups to Amazon S3 bucketsintrigeri
Thanks to stefan <s.freudenberg@jpberlin.de> for the patch. This fixes Redmine bug #658.
2010-01-09rdiff,dup: fix include/exclude paths with spaces (Closes: #398435)intrigeri
This also fixes Redmine bug #1021.
2010-01-08ldap,mysql,pgsql: use bash pipefail option so that failed dumps are reported ↵intrigeri
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-05Convert from debug to info so that it can be reported in the emailolivier
2010-01-05Add duplicity output line by line instead of with a whole at one time. ↵olivier
Should help fix #536360
2010-01-05Fix indentation of previously cherry-picked patchintrigeri
2010-01-05Cherry-picked "fixes for mysql handler for mysqld inside a vserver"intrigeri
This commit (64edfccf7684d9c080e734b25fa9361f0190afec) was wrongly committed to the debian branch. Conflicts: handlers/mysql.in
2009-12-31dup.helper: do not propose to exclude /home/*/.gnupg twice anymore (Closes: ↵intrigeri
#563044)
2009-12-25mysql, pgsql: Quote output filenamesintrigeri
... to support shell meta-characters in database names. Closes Redmine bug #617.
2009-12-25rsync: added vim and Emacs modelines for consistency's sakeintrigeri
2009-12-02adjust the comparison operators in the rsync handler, fixes #1473Micah Anderson
2009-11-19ldap, mysql, pgsql: use gzip's --rsyncable optionintrigeri
2009-11-06Enhanced rsync handler.Silvio Rhatto
- 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-09-23Fix missing $ in variable name, fixes: #1239Micah Anderson
2009-07-18dup: fixed bandwidth vs desturl testingintrigeri
2009-07-18dup: fixed bandwidthlimit testintrigeri
Thanks to Ian Beckwith <ianb@erislabs.net> for the patch.
2009-07-09added sshoptions variable to the maildir handler for arbitrary options that ↵Micah Anderson
you might need to pass updated the example.maildir to include this option, as well as detail the missing desid_file, destport