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