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