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