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