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