Commit Graph

261 Commits

Author SHA1 Message Date
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
Micah Anderson
e39338a4d0 The helper didn't display the key properly, and I couldn't figure out
how to get it to do so, so I just removed that piece ;)
2006-04-22 21:31:34 +00:00
Micah Anderson
cb0d7cbdb0 Minor grammar fix 2006-04-22 21:22:24 +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
59fa8f8ffe backslashes for the double quotes are necessary in the debug lines
otherwise when you run a test run it will print: debug su $user -c "$execstr"
instead of expanding those variables
the backslashes in the output= lines were wrong, but the debug lines
were necessary :)
2006-04-08 20:52:51 +00:00
intrigeri
a21b068548 r4446@krups: intrigeri | 2006-04-08 12:28:59 +0200
mysql handler: removed over-enthusiastic quote-escaping, related to su ;
 previous versions broke the mysql handler both on sarge and sid.
2006-04-08 10:31:14 +00:00
Micah Anderson
e12521be73 Removed over zelous vsnames check 2006-04-05 04:40:40 +00:00
Micah Anderson
e9e56a7af8 Added escaping of double quotes that were added previously 2006-03-25 20:14:03 +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
e94597ad05 Harder than it looks at first! This appears to fix it, but please try it out. 2006-03-15 00:06:19 +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
d568f305fd Added some more default excludes as reported by Adam Porter in bug #353412 2006-02-23 20:25:53 +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
Micah Anderson
b756a86db7 This test needs to be inverted, otherwise it doesn't backup vservers at all 2006-02-01 18:12:29 +00:00
Micah Anderson
cf0e2ac5d5 Removed vsnames variable check as it is "over-paranoid" :) 2006-01-31 17:35:46 +00:00
Micah Anderson
dd0903db42 Apparantly it is common practice to NOT keep generated files in the repository,
since Makefile.in is generated through autogen.sh or autoreconf, it shouldn't be
put in the repo itself (except on release)
2006-01-26 20:53:34 +00:00
intrigeri
24f803c9ac typo 2006-01-19 21:58:56 +00:00
intrigeri
51d938cd68 - dup & rdiff handlers: finally, a real and well tested fix for the globbing bug
- rdiff: it's now possible to choose exactly which vservers should be
         backed-up, as it already was with duplicity handler, with the
	 "vsnames" configuration setting
2006-01-19 21:58:38 +00:00
intrigeri
8bc9312e15 handlers/sys: start to use new lib/vserver functionality 2006-01-19 21:58:29 +00:00
intrigeri
435e859a25 handlers/svn: use the same (short) code as pgsql and mysql to check vservers availability 2006-01-19 21:58:20 +00:00
intrigeri
a8cf739f66 rdiff.helper: fixed vsnames output syntax (currently unused by the rdiff handler, weird.) 2006-01-19 21:58:12 +00:00
intrigeri
b52464c19e clean up and homogenize pgsql and mysql vserver checks 2006-01-19 21:58:03 +00:00
intrigeri
d600ba40c0 handlers/pgsql: make more use of the new lib/vserver functionality 2006-01-19 21:57:54 +00:00
intrigeri
e5098e0cce handlers/pgsql: make use of the new lib/vserver functionality 2006-01-19 21:57:45 +00:00
intrigeri
a99d05982d homogeneized rdiff.helper, dup.helper and example.dup doc about vsnames and vsinclude 2006-01-19 21:57:37 +00:00
intrigeri
b7dd0cbf81 handlers/rdiff: make use of new lib/vserver functionality 2006-01-19 21:57:28 +00:00
intrigeri
a04140d071 rdiff: remove TODO comment line, since this has not to be done :) 2006-01-19 21:57:19 +00:00
intrigeri
e431f13bcc rdiff: fixed globbing bug for include, exclude and vsinclude (again.) 2006-01-19 21:57:11 +00:00
intrigeri
22bea56d9e rdiff: start to take advantage of new lib/vserver functionality 2006-01-19 21:57:02 +00:00
intrigeri
299a530734 lib/vserver.in: new function: vservers_exist
handlers/dup: make use of new lib/vserver functionality
2006-01-19 21:56:53 +00:00
intrigeri
38642e9c0f dup.helper: fixed output syntax for multiple vsnames
example.dup: fixed example vsnames syntax
2006-01-17 22:22:07 +00:00
intrigeri
aff6fdf349 handlers/dup: now works when multiple vservers names are given (separated by space) in vsnames config variable 2006-01-17 22:21:58 +00:00
intrigeri
4beb261328 duplicity handler: warn if vsnames or vsinclude is enabled while vservers support is disabled in backupninja.conf 2006-01-17 22:21:39 +00:00
intrigeri
b91c32792d autotools files upgrade to 0.9.2, seems to be needed and to have been forgotten 2006-01-16 22:14:05 +00:00
intrigeri
2578bfffa4 Fixed (eventually) the globbing include/exclude/vsinclude bug. 2006-01-16 22:01:01 +00:00
Elijah Saxon
83b09d71e9 . fixed errors in create remote dir
. code formatting cleanup (three spaces indent)
. fixed bug which caused only first include/exclude dir to
  have "include = "
. fixed globbing bug with exclude
2006-01-09 00:23:05 +00:00
Micah Anderson
ee384b08c7 Fixed mysql no user defaults file handling 2006-01-03 16:09:29 +00:00
intrigeri
c8efb40b7f r263@crapouille: intrigeri | 2005-12-28 21:19:10 +0100
Reverted indentation level to 3.
2005-12-28 20:19:29 +00:00
intrigeri
cfc47e5571 r261@crapouille: intrigeri | 2005-12-28 20:59:01 +0100
Changed default indentation level to 8, to make it presbyopia-friendly
2005-12-28 19:59:12 +00:00
intrigeri
0d606253af Added the "Emacs comment line" on top of every shell file. 2005-12-28 19:52:22 +00:00
intrigeri
1d74ab1299 dup.helper: updated to support the new duplicity handlers features. 2005-12-28 19:13:10 +00:00
intrigeri
c6c3cc98b4 dup: fixed erroneous gpg-related options processing; example.dup: fixed erroneous comments about the way gpg options are used 2005-12-28 17:32:12 +00:00
Micah Anderson
aefed90a3b r242@um: micah | 2005-12-27 17:06:10 -0500
vserver support added, database and dump directory selection added
2005-12-27 22:15:40 +00:00
Micah Anderson
918ac576d1 r241@um: micah | 2005-12-27 15:21:17 -0500
Updated rdiff-backup to do vserver selection using lib/vservers
2005-12-27 22:14:00 +00:00
Micah Anderson
104b663a9d r239@um: micah | 2005-12-27 14:52:42 -0500
I think the first three items are required, not the last 3 :)
2005-12-27 22:12:43 +00:00
Micah Anderson
cb33925290 r238@um: micah | 2005-12-27 13:32:57 -0500
Add global variable rdiff_title and change all the titles to use it
2005-12-27 22:12:22 +00:00
intrigeri
e8c8a32ac2 dup: now possible to use different keys to sign and encrypt 2005-12-27 19:38:15 +00:00
Micah Anderson
def238857d r221@um: micah | 2005-12-27 11:54:34 -0500
If the user is set, make sure the --defaults-file is set for
 that user.
2005-12-27 17:38:07 +00:00
Micah Anderson
065c9aa959 r220@um: micah | 2005-12-27 11:12:31 -0500
Add -h option to mysqlhotcopy method
2005-12-27 17:37:54 +00:00
Micah Anderson
06edbbddc5 r219@um: micah | 2005-12-27 10:32:24 -0500
Defaults file is now set correctly for vservers
 dbhost is now added to the .my.cnf
2005-12-27 17:37:44 +00:00
Micah Anderson
603c015425 r218@um: micah | 2005-12-27 09:59:40 -0500
Changed some info output to debug
2005-12-27 17:37:31 +00:00
Micah Anderson
3b59f10fd3 r217@um: micah | 2005-12-27 09:57:30 -0500
Some clean-ups, indentations and if/then/fi and do/done standardization
2005-12-27 17:37:18 +00:00
Micah Anderson
52d4622f5d r216@um: micah | 2005-12-27 09:50:17 -0500
Set home properly when using vservers
2005-12-27 17:37:04 +00:00
Micah Anderson
5d835a799c r215@um: micah | 2005-12-27 09:40:23 -0500
Minor variable and documentation clean-up
2005-12-27 17:36:46 +00:00
Micah Anderson
21b3955283 r214@um: micah | 2005-12-27 09:35:03 -0500
Added vserver functionality to the user authentication method
2005-12-27 17:36:32 +00:00
Micah Anderson
f46646600f r213@um: micah | 2005-12-27 09:14:18 -0500
Move vserver initialization higher up in the chain
2005-12-27 17:36:21 +00:00
Micah Anderson
0ad20d5ad0 r212@um: micah | 2005-12-27 09:12:22 -0500
trivial code change
2005-12-27 17:36:07 +00:00
Micah Anderson
84d86d056f r211@um: micah | 2005-12-27 09:09:54 -0500
Added some vserver handling to determine correct home directory, also
 enhanced error handling
2005-12-27 17:35:54 +00:00
Micah Anderson
8b441b16e5 r210@um: micah | 2005-12-27 08:38:07 -0500
Added -q to vserver-info test in mysql handler to quiet the test
 to see if it is running
2005-12-27 17:35:42 +00:00
Micah Anderson
0e8c35b5c5 r208@um: micah | 2005-12-26 22:43:36 -0500
Fixed mysql check to see if vserver is running
2005-12-27 17:04:33 +00:00
Micah Anderson
c557a40372 r193@um: micah | 2005-12-24 21:05:47 -0500
Added trac patch to fix subdir mkdir problem
2005-12-25 03:26:02 +00:00
intrigeri
921babdf41 mysql,pgsql,svn,sys: fixed failing "is vserver running" test 2005-11-29 14:18:31 +00:00
intrigeri
d5c8686efd dup: Fixed globbing support in include and exclude options (Debian bug #338796) 2005-11-29 11:30:06 +00:00
intrigeri
608d395aa2 r3569@krups: intrigeri | 2005-11-17 22:34:04 +0100
dup.helper: now remembers the src-section values (includes, etc.) inside one do_new session
2005-11-29 10:11:25 +00:00
intrigeri
b27f7e71b6 r3568@krups: intrigeri | 2005-11-17 22:25:05 +0100
dup.helper: some code cleaning
2005-11-29 10:11:14 +00:00
intrigeri
fbd3c3d84c r3567@krups: intrigeri | 2005-11-17 22:08:30 +0100
pgsql.helper: forbid the user to choose an empty database set to backup
2005-11-29 10:11:04 +00:00
intrigeri
d56c0f0aee r3566@krups: intrigeri | 2005-11-17 21:59:38 +0100
ninjahelper: moved (and enhanced) vservers-related functions to lib/vservers. dup.helper, pgsql.helper: use these functions
2005-11-29 10:10:53 +00:00
intrigeri
aabc2bbe10 r3564@krups: intrigeri | 2005-11-16 20:33:48 +0100
dup.helper: disabled connection setup, waiting for rdiff.helper code to be shared in some lib.
2005-11-29 10:10:31 +00:00
intrigeri
9208b449da r3562@krups: intrigeri | 2005-11-16 20:20:16 +0100
Moved more code to lib/ (conffile-related functions, parseini. Added dup helper, using new modular vservers-related functions shared for all helpers.
2005-11-29 10:10:08 +00:00
intrigeri
a9074a138c r3556@krups: intrigeri | 2005-11-15 14:02:58 +0100
Delete handlers/easydialog.sh since it's now in lib/.
2005-11-29 10:08:54 +00:00
intrigeri
280fdac2bc r3555@krups: intrigeri | 2005-11-15 13:59:57 +0100
Moved easydialog.sh to lib/ directory: more code is going to be shared, let's start here.
2005-11-29 10:08:41 +00:00
intrigeri
41f3fddfe2 r3554@krups: intrigeri | 2005-11-15 04:09:01 +0100
rdiff.helper: (re)rename do_rdiff_conn function to do_rdiff_ssh_con, since the previous rename was not the good one.
2005-11-29 10:08:30 +00:00
intrigeri
122f2c95be r3553@krups: intrigeri | 2005-11-15 04:02:31 +0100
rdiff.helper: rename do_ssh_con function to do_rdiff_conn, in order not to pollute namespace... and allow future code factorization :)
2005-11-29 10:08:20 +00:00
intrigeri
76e194e412 r3552@krups: intrigeri | 2005-11-15 03:13:03 +0100
easydialog: add optional third argument to booleanBox, to set default no if needed (and actually needed by the upcoming dup.helper).
2005-11-29 10:08:09 +00:00
intrigeri
ca8ae79915 r3551@krups: intrigeri | 2005-11-15 00:47:57 +0100
Fix formDisplay to reset $REPLY as it should.
2005-11-29 10:07:59 +00:00
intrigeri
ba5c0f47d1 r3550@krups: intrigeri | 2005-11-15 00:47:09 +0100
Fix listBegin/listItem/listDisplay to work with checklist boxes, as advertized.
2005-11-29 10:07:49 +00:00
intrigeri
58bceae74f r3548@krups: intrigeri | 2005-11-14 20:47:49 +0100
Fix: the "Cancel" buttons used to have a weird behaviour... at least
2005-11-29 10:07:28 +00:00
intrigeri
a4ae4e5c6e r3546@krups: intrigeri | 2005-11-14 20:32:59 +0100
Fix: used to expand '*' in default source directories
2005-11-29 10:07:07 +00:00
Micah Anderson
5d3222eec7 Fixed missing makecd.helper 2005-11-10 14:37:20 +00:00
Micah Anderson
0e1bd26988 Added remote destination directory checking and auto creation if doesn't exist.
Also fixed a bug in the rdiff handler that caused a unary operation error if
the variable wasn't fixed
2005-11-05 23:07:19 +00:00
Micah Anderson
5f6dc7d1b9 Fixed bug in rdiff.helper that kept include and exclude lines from being put in the file 2005-11-05 20:47:44 +00:00
Micah Anderson
f61431d37f Added auto remote rdiff-backup installation if possible to ninjahelper 2005-11-05 20:16:14 +00:00
Micah Anderson
2d96b777ad Updated svn handler for new hotcopy functionality 2005-11-05 11:41:46 +00:00
Micah Anderson
e005e25e1a Made ninjahelper create files in /etc/backup.d with mode 600 instead of 000 2005-11-04 23:35:29 +00:00
Micah Anderson
1c349ca0af Removed some unnecessary comments 2005-10-28 21:21:39 +00:00
Micah Anderson
06b65414eb added the makecd ninjahelper, and updated the Authors 2005-10-28 18:19:41 +00:00
Micah Anderson
d943cfdaa9 Add more makefile templates 2005-10-26 23:07:11 +00:00
Elijah Saxon
a116f435ce fixed many bugs in rdiff.helper
added more verbage to ninjahelper
added some IFS=$'' to easydialog
(this allows you to pass through blank lines).
2005-10-19 05:17:53 +00:00
Elijah Saxon
02ffef7501 applied patch to rdiff.helper, removed /etc/passwd from mysql handler. 2005-10-07 16:02:27 +00:00
intrigeri
1645c0c857 r188@krups: intrigeri | 2005-10-03 01:14:37 +0200
Replaced awful "grep /etc/passwd" with getent calls in pgsql and mysql handlers
2005-10-02 17:35:22 +00:00
Elijah Saxon
995e34e166 created function maketemp, to be used by backupninja
and maildir handler for creating safe temp files.
2005-10-02 12:45:12 +00:00
Micah Anderson
ad457d298e removed erroneous magic filemarker in pgsql handler 2005-09-28 01:38:29 +00:00
Elijah Saxon
166c486601 added patch to mysql handler from Daniel.Bonniot@inria.fr
(adds ignores option)
2005-09-15 18:36:23 +00:00
intrigeri
30348c7db8 mysql helper bugfix: write yes/no to config file instead of on/off, that are not recognized by mysql handler 2005-09-03 18:57:37 +00:00
intrigeri
cf1817d075 mysql and dup handlers: when using a vserver, check if it is running 2005-08-27 00:19:50 +00:00
intrigeri
bd0b2eaea8 dup handler: added option to perform a full backup instead of an incremental one. 2005-08-20 18:17:25 +00:00
intrigeri
6b6154879b Security fix: duplicity handler used to put the gpg passphase on the command line. 2005-08-20 15:37:57 +00:00
intrigeri
bfe530dc59 Removed an unnecessary check in dup handler. 2005-08-19 23:02:07 +00:00
intrigeri
88d1f719c5 Fixed a critical bug in sys handler vservers support: it tried (and failed) to save packages list even if packages=no. 2005-08-14 22:54:08 +00:00
intrigeri
3d3c5aa3df Fixed a critical bug in pgsql handler vservers support. 2005-08-14 22:49:43 +00:00
Elijah Saxon
428e9532bf label is no longer required (now this works with ninjahelper without problems) 2005-08-09 21:28:26 +00:00
intrigeri
ddaceb7dda Added helper for pgsql handler. 2005-08-09 20:59:20 +00:00
intrigeri
49dfbcb81f Added a few safety checks to pgsql handler. 2005-08-09 20:53:19 +00:00
intrigeri
4e0c31d016 Fixed/improved a few bits of rdiff, dup and sys handlers. 2005-08-09 20:50:05 +00:00
intrigeri
d675fa6df9 Added vservers support to duplicity handler. 2005-08-09 20:41:37 +00:00
intrigeri
773c194279 Added pgsql (PostgreSQL) handler, with vservers support. 2005-08-09 20:28:52 +00:00
Elijah Saxon
a37e9ccdb9 changed on to yes (on doesn't work!) 2005-07-27 17:30:24 +00:00
Micah Anderson
bd2d784c05 Fixed broken vserver dpkg parsing in sys handler 2005-07-19 16:08:39 +00:00
Micah Anderson
5c7bc95bc1 Fixed sys handler bracket problem 2005-07-19 15:24:50 +00:00
Micah Anderson
1f290a8a23 removed extra -o 2005-07-10 10:05:49 +00:00
Elijah Saxon
809f26574f minor 2005-07-09 00:00:47 +00:00
Elijah Saxon
7a145f8dd6 added cancel 2005-07-08 19:28:16 +00:00
Elijah Saxon
67b5cf70d7 made it so that helpers are dynamically defined. 2005-07-08 19:21:46 +00:00
Micah Anderson
1d3e3482be Added stefani's makecd handler 2005-07-08 16:24:57 +00:00
Elijah Saxon
91f3eb4648 greatly improved the rdiff wizard. added default option to menu in easydialog. 2005-07-07 21:14:19 +00:00
Elijah Saxon
e8cf41e99e fixed handling of * in easydialog.
added .disabled
2005-07-06 08:03:31 +00:00
Elijah Saxon
4c8e283994 created ninjahelper 2005-07-04 06:39:00 +00:00
Elijah Saxon
5cc6f5e5f0 options to sys 2005-07-01 20:09:16 +00:00
Elijah Saxon
0abb625ac2 improved error message if password file not found
moved start/stop ldap code so that it makes sense.
2005-06-28 06:24:33 +00:00
Micah Anderson
d52a1ac97e Added trac handler, changed VSERVERS variable to be lowercase and
added some vserver documentation to README and to the handlers
2005-06-13 19:37:26 +00:00
Elijah Saxon
1a2279cba4 added double quotes around password in .my.cnf 2005-06-09 20:02:28 +00:00
Elijah Saxon
1b3449f24c mysql --defaults-file stuff. 2005-06-01 22:44:04 +00:00
Elijah Saxon
a56165ce12 added support for --defaults-file 2005-06-01 18:50:22 +00:00
intrigeri
cadfdca981 Duplicity handler: added "bandwidthlimit" option. 2005-05-27 18:41:40 +00:00
Micah Anderson
1e410a6d95 Updates to handle vservers 2005-05-24 19:27:43 +00:00
intrigeri
26a57c396c Improved duplicity handler: option to disable remote files cleaning, optionnal backups gpg signing, option to specify the gpg key to use, nicelevel & testconnect options, optionnal string to pass to ssh/scp e.g. to use a non-default identity file ; created an example.dup file ; config is now split in sections. 2005-05-24 19:08:51 +00:00
Micah Anderson
4924d343a4 Added enhanced options to ldap handler 2005-04-21 18:47:57 +00:00
Elijah Saxon
c7e96acc45 rdiff works with sshd banner... rdiff local dest works... create logfile... when=hourly... rdiff nice... 2005-04-13 05:29:33 +00:00
Elijah Saxon
76711771db fixed bug which always reported error. 2005-03-21 17:50:49 +00:00
Elijah Saxon
9f9a166978 fixed bug when system has multiple usernames starting with "root". 2005-03-21 17:48:34 +00:00
Elijah Saxon
c313e23935 created 2005-03-18 20:14:49 +00:00
Elijah Saxon
907f7d4455 fixed bug with __star__ and sys handler.
well, not really, but i worked around a bug that i don't understand.
2005-03-14 21:49:29 +00:00
Elijah Saxon
ceb80d70b1 added force to hard link cp
ignore rsync error code 24
ignore cp return code.
2005-03-10 11:23:59 +00:00