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