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