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