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