Added fix to mysql handler for option change to --extra-files, also
[matthijs/upstream/backupninja.git] / ChangeLog
1 version 0.9.4 -- unreleased
2     backupninja changes
3          . Fixed bug in toint(), and thus isnow(), which caused it
4            to not work when run from cron.
5          . Recursively ignore subdirs in /etc/backup.d (Closes: #361102)
6          . Add admingroup option to configuration to allow a group that can
7            read/write configurations (instead of only allowing root). Checks
8            and complains about group-readable files only when the group differs
9            from the one in the configuration file (default is root as before). 
10            Thanks to Martin Krafft for the patch (Closes: #370396).
11          . When determining which backup actions to make, find now follows
12            symlinks for $configdirectory
13          . Changed order of -s to mail for compatibility
14     handler changes
15         Added tar handler:
16          . create tarballs
17         Added rsnap handler:
18          . rotated rsync snapshops
19          . code from paulv@bikkel.org
20         mysql:
21          . Fixed improper use of $vuserhome (Closes: #351083)
22          . Fixed erroneous removal of tmpfile when it didn't exit
23          . Fixed inversed vsname emptiness check
24          . Fixed su quote usage to be more posixy
25          . Compress for sqldumps now happens in-line to save some disk space (Closes: #370778)
26          . Fixed --defaults-file now as --defaults-extra-file (thanks rhatto)
27         pgsql:
28          . Fixed inversed vsname emptiness check
29          . Fixed su quote usage to be more posixy
30          . Fixed shell expansion, thanks Thomas Kotzian (Closes: #363297)
31          . postgres user UID is now the one from inside the vserver if necessary
32          . Compress now happens in-line to save some disk space (Closes: #370778)
33          . $PGSQLUSER is used instead of hardcoding user 'postgres' (although this is the default) 
34         svn:
35          . Fixed inversed vsname emptiness check
36         rdiff:
37          . Symlink and globbing support enhancement and clarification: for
38            a given include/exclude/vsinclude statement, rdiff handler now
39            support EITHER globbing with '*' OR symlinks in the path.
40          . Fixed improper include/exclude symlink dereference
41          . Removed overzealous vsnames check
42          . Now works if testconnect=no and if $test is not defined.
43         dup:
44          . Symlink and globbing support enhancement and clarification: for
45            a given include/exclude/vsinclude statement, dup handler now
46            support EITHER globbing with '*' OR symlinks in the path.
47          . Removed over zealous vsnames check
48          . Does not pretend anymore that duplicity can work without
49            any passphrase
50          . Support duplicity 0.4.2 (with Debian patches applied; upstream's
51            0.4.3 will integrate them)
52          . Now forbid to (try to) include /.
53         sys:
54          . Many more system checks were added, thanks to Petr Klíma
55         ldap:
56          . Compress now happens in-line to save some disk space (Closes: #370778)
57     lib changes
58         vserver:
59          . init_vservers: fixed Debian bug #351083 (improper readlink syntax)
60          . found_vservers: escaped special grep repetition character +
61          . forced mktemp to use a template with a name to be more compatible with 
62            different versions of mktemp, thanks anarcat
63     ninjahelper changes
64          . Recursively ignore subdirs in /etc/backup.d (Closes: #361102)
65          . Fix configdirectory error that forced you to use /etc/backup.d, thanks anarcat
66          . When determining which backup actions to list, find now follows
67            symlinks for $configdirectory
68     changed cron permissions to 644
69     minor documentation fixes
70
71 version 0.9.3 -- February 1st, 2006
72     autotools fixes
73     backupninja changes
74         backupninja.conf
75          . added (commented out) the various default paths to
76            programs such as PGSQLDUMP, so that users can figure
77            out more easily they can customize them
78         code refactor:
79          . now uses vservers lib to initialize vservers support
80     handler changes
81         duplicity, mysql, pgsql, rdiff, svn, sys: start to use (at different
82            degrees) new lib/vserver functionality
83         mysql:
84          . fixed no user defaults file processing
85         duplicity:
86          . fixed (again...) globbing in include and exclude options (Debian bug
87            #348022, follow-up to #338796)
88          . warn if vsnames or vsinclude is enabled while vservers support is
89            disabled in backupninja.conf
90          . now works when multiple vservers names are given (separated by space)
91            in vsnames config variable
92         rdiff
93          . fixed globbing bug in include, exclude and vsinclude options
94          . it's now possible to choose exactly which vservers should be
95            backed-up, as it already was with duplicity handler, with the
96            "vsnames" configuration setting
97     ninjahelper changes
98         rdiff.helper:
99          . fixed errors in create remote dir
100          . code formatting cleanup (three spaces indent)
101          . fixed bug which caused only first include/exclude dir to
102            have "include = "
103          . fixed globbing bug with exclude
104         ninjahelper:
105          . now reports error if the helper script has a syntax error or bombs out.
106          . code formatting cleanup (three spaces indent)
107     lib changes
108         vserver:
109          . init_vservers: improved VROOTDIR detection
110          . init_vservers: test in a stricter way the real vservers availability
111          . init_vservers: canonicalize VROOTDIR (since duplicity et al.
112            don't follow symlinks)
113          . init_vservers: warn if vservers are enabled but no vserver is found
114          . new function: vservers_exist
115     known bugs:
116         easydialog: 
117          . formDisplay does not return exit status.
118
119 version 0.9.2 -- December 29, 2005
120     backupninja changes
121         fixed broken toint() which caused when "everyday" problems
122         backupninja.conf.5 updated to include "when" and "vservers"
123         code refactor:
124             . moved to lib/ some code that has to be shared between
125               backupninja and ninjahelper
126     handler changes
127         trac:
128             . mkdir subdirectory problem fixed
129         duplicity:
130             . globbing support fixed in include and exclude options 
131             . different signing and encrypting key support added
132             . fixed erroneous comments in example.dup about the way
133               GnuPG-related options are used
134         mysql:
135             . handler vserver bugs fixed and debug output enhanced
136     ninjahelper(s) changes
137         vserver-related functions added to lib/vservers.in
138         added man/ninjahelper.1 man page
139         makecd:
140             . was missing in Makefile.am/.in
141         rdiff-backup:
142             . used to expand '*' in default source directories
143             . the "Cancel" buttons used to have a weird behaviour
144             . updated to include Vserver selection 
145         pgsql:
146             . forbid the user to choose an empty database set 
147             . "Cancel" button now does what it is meant to do
148         mysql:
149             . enhanced for vserver support 
150             . now able to select databases and dump directory
151         duplicity:
152             . new handler added (with Vserver support)
153
154 version 0.9.1 -- November 05 2005
155     rearranged source so that it is relocatable with autotools
156         (thanks to Petr Klíma petr.klima@madeta-group.cz)
157     fixed many bugs in rdiff helper
158     rdiff handler does not require 'label' (for real this time?)
159     added makecd ninjahelper
160         (thanks to Stefani stefani@riseup.net)
161     made ninjahelper create files with mode 600 rather than 000
162     changed subversion handler to use svnadmin hotcopy instead of
163             the unsupported hot-copy.py script, which was moved in Debian
164     update rdiff ninjahelper
165             now detects and auto-install rdiff-backup on the remote 
166             machine if possible, also tests the remote backup directory
167             and offers to create it if it doesn't exist
168
169 version 0.9 -- October 19 2005
170     *** IMPORTANT CHANGE, UPGRADE AT ONCE ***
171      fixed insecure temporary file creation 
172     *****************************************
173     removed erroneous magic file marker in pgsql handler
174     fixed incorrect find positional
175     changed direct grep of /etc/passwd to getent passwd.
176     rdiff helper has much better information on failed ssh attempt
177         (patch from cmccallum@thecsl.org).
178     rdiff handler now supports remote source and local dest. 
179         (patch from cmccallum@thecsl.org).
180     man pages are greatly improved.
181
182 version 0.8 -- September 15 2005
183     added pgsql (PostgreSQL) handler, with vservers support.
184     added vservers support to duplicity handler
185         Note: the configuration is a bit different than the rdiff
186         handler's one, but the default behavior is the same:
187         have a look at example.dup.
188     improved README
189     documented .disabled method.
190     corrected VROOTDIR default value.
191     added ninjahelper to the install instructions.
192     improved rdiff, dup and sys handlers' vservers support
193         prevent vserver-debiantools' $VROOTDIR/ARCHIVES directory
194         to be seen as a vserver
195     changes to sys handler
196         make use of configurable $VSERVERINFO instead of hard-coded vserver-info.
197         fixed dpkg existence test inside vserver.
198         fixed $nodpkg use.
199     changes to pgsql handler
200         now checks if the specified vserver is running.
201         now checks if $PGSQLDUMP/$PGSQLDUMPALL are available where needed.
202         now checks if "postgres" user exists on the host/vserver.
203     changes to ninjahelper
204         check_perms() does not die anymore on group/world readable
205         helper scripts (now consistent with the "helper scripts
206         must not be group or world writable!" error msg).
207     xedit action now tries $EDITOR, then /etc/alternatives/editor,
208         then nano, vim and vi, and aborts if none of these exists.
209     added helper for pgsql handler.
210     rdiff handler now does not require 'label'
211     changes to mysql and svn handlers' vservers support
212         these handlers now check if the source vserver is running
213     added 'ignores' for mysql handler. (thanks Daniel.Bonniot@inria.fr)
214
215 version 0.7 -- July 26 2005
216     added ninjahelper: a dialog based wizard for creating backupninja configs.
217     considerably improved and changed the log file output.
218     you can now disable actions with .disabled (this is new preferred method).
219     added makecd handler and example.makecd for backing up to cd/dvd (thanks stef).
220     fixed bug when specifying multiple 'when' options.
221
222 version 0.6 -- June 16 2005
223     ldap handler has new options: backup method to use (ldapsearch or
224         slapcat), restart, passwordfile and binddn. Default backup method
225         is set to ldapsearch as this is safer
226     ******************************************************************
227     NOTE: to get the previous default behavior with the ldap handler, 
228     you must set "method = slapcat". The new default is ldapsearch.
229     ******************************************************************
230     implemented fix so that the main script will echo fatal errors rather
231         than being silent about them, this means an error message every hour
232         if there is a major configuration problem (not a handler problem)
233     added vserver support to main script and to the handlers: mysql, svn, sys, rdiff
234     changes to duplicity handler (thanks intrigeri!):
235         "keep = yes" now disables file cleaning on desthost
236         added "sign" option for backups signing
237         added "encryptkey" option to specify the gpg key to use
238         split config into [source], [gpg] and [dest] sections
239         added "nicelevel" option
240         added "testconnect" option
241         added "sshoptions" option (will be passed to ssh/scp)
242         added "bandwidthlimit" option
243     example.dup example config file for duplicity handler 
244     added trac (http://trac.edgewall.com/) environment handler (thanks Charles Lepple!)
245     added configfile option to mysql handler
246         the default is /etc/mysql/debian.cnf. with this, 
247         sqldump doesn't need dbusername. (hotcopy still does).
248     fixed bug in mysql handler which caused some passwords to not work.
249         (.my.cnf files now have double quotes around password)
250     can now pass options to hwinfo and sfdisk in sys handler.
251
252 version 0.5 -- April 12 2005
253     rdiff handler works when remote sshd has a banner
254     rdiff handler supports local dest 
255     logfile is created if it doesn't exist
256     added "when = hourly" 
257     added optional 'nicelevel' to rdiff handler
258     fixed bug where actions were not run in numeric order.
259     improved 'when' parsing.
260
261 version 0.4.4 -- March 18 2005
262     results of handlers are now read line by line. 
263     changes to rdiff handler: added "options", and "keep" is
264         not necessarily days now (ie, it will pass straight through to
265         rdiff-backup if the keep has a unit on it, otherwise it adds the 'D').
266     added dup handler (still pretty beta)
267     added maildir handler (very specialized handler)
268     added --run option (runs the specified action file)
269     improved sys handler, now uses hwinfo
270     added subversion hotbackup handler, svn. 
271     added PATH to cron.d file, which fixes file not found errors.
272
273 version 0.4.2 -- Jan 6 2005
274     fixed bug which caused a report email to be sent even if no actions were run.
275     fixed bug where multiple handler status messages were ignored
276     added status in the subject line of report emails
277
278 version 0.4.1 -- Jan 3 2005
279     added $usecolors and now more conservative about when colors are echoed.
280     fixed major bug, 'when' actually works now.
281     replaced debug function with debug, info, warning, error, fatal.
282     added --now option to force all actions to be performed now.
283     
284 version 0.4 -- Dec 26 2004
285     added "when" option, so that all configs can specify when
286         they are to be run.
287     added reportsuccess and reportwarning config options
288     added .sys handler (hardware, packages, partitions).
289
290 version 0.3.4 -- Dec 8 2004
291     fixed numerical variable quoting compatibility with older wc    
292     fixed stderr redirect bug
293     some comments in example.rdiff
294
295 version 0.3.3 -- Nov 10 2004
296     '*' (asterisk) works now in rdiff config files
297     works now with gawk as well as mawk
298     many bug fixes to ldap handler
299     paths to helper scripts can be configured in global config
300     does not require /usr/bin/stat
301
302 version 0.3.2 -- Sept 29 2004
303     handler scripts are no longer executable (to comply with debian policy)
304     handler error and warning messages are sent with the notify email
305
306 version 0.3.1 -- Sept 5 2004
307     added ldap handler
308     moved sh support to a handler script
309     add test mode, where no action is taken.
310     added --help
311     force only root can read /etc/backup.d/*
312     fixed missing equals symbols in example.rdiff
313     changed backupninja executable to be /usr/sbin rather than /usr/bin
314     
315 version 0.3 -- Oct 20 2004
316     ** IMPORTANT ** all config files are now ini style, not apache style
317     rewrote all scripts in bash for portability
318     added drop-in backupninja lib directory (/usr/share/backupninja)
319     all scripts are now run as root
320
321 version 0.2 -- Oct 14 2004
322     move distribution folder ./cron.d to ./etc/cron.d
323     fixed bug: removed printr of excludes (!)
324     added support for changing the user/group in rdiff sources.
325     added support for .mysql config files.
326     
327 version 0.1 -- Oct 8 2004
328     initial release 
329