2873269eef3a907c000fbef5f39f4cd4a4cfcc48
[BackupPC.git] / ChangeLog
1 #========================================================================
2 #
3 # ChangeLog - change log for BackupPC.
4 #
5 # DESCRIPTION
6 #   Revision history for BackupPC, detailing significant changes between
7 #   versions, most recent first.
8 #
9 # AUTHOR
10 #   Craig Barratt  <cbarratt@users.sourceforge.net>
11 #
12 #========================================================================
13 #
14 # Version __VERSION__, released __RELEASEDATE__.
15 #
16 # See http://backuppc.sourceforge.net.
17 #
18 #========================================================================
19
20 #------------------------------------------------------------------------
21 # Version __VERSION__, __RELEASEDATE__
22 #------------------------------------------------------------------------
23
24 * Fixed several Xfer charset conversions.
25
26 * Added some CGI utf8 conversions from Rodrigo Real and Vincent
27   Fleuranceau.
28
29 * Host name is forced to lower case, to match 2.x.
30
31 * Fixed LOG file naming in BackupPC_restore and BackupPC_archive.
32
33 * GFK applied fr.pm corrections from Nicolas Stransky.
34
35 * Updated init.d/src scripts for FHS (ie: replaced __TOPDIR__/log
36   with __LOGDIR__ and __TOPDIR__/conf with __CONFDIR__).  Patch
37   provided by Rodrigo Real.
38
39 * Added --log-dir and --conf-dir options to configure.pl.
40   Reported by Vincent Fleuranceau.
41
42 * Updated File::RsyncP version check in configure.pl, reported
43   by Vincent Fleuranceau.  Changed File::RsyncP version to 0.64.
44
45 #------------------------------------------------------------------------
46 # Version 3.0.0beta0, 11 Jul 2006
47 #------------------------------------------------------------------------
48
49 * Added configuration and host CGI editor.
50
51 * Added rsync hardlink support.  Requires latest version of
52   File::RsyncP (0.62).
53
54 * Decoupled BackupPC_dump from BackupPC_nightly by making
55   asynchronous file linking/delete robust to race conditions.
56   Now only BackupPC_nightly and BackupPC_link are mutually
57   exclusive so only one runs at a time, and BackupPC_dump and
58   BackupPC_restore can run anytime.
59
60 * Added support for multi-level incrementals.  In the style of dump(1),
61   the level of each incremental can be specified.  Each incremental
62   backups up everything since the most recent backup of a lower level
63   (fulls are always level 0).  Previous behavior was all incrementals
64   were level 1, meaning they backed up everything since the last full
65   (level 0).  Default configuration is all incrementals are level 1.
66
67 * Server file names are now in utf8 and optional conversion
68   to/from client name charsets can be configured.  All CGI pages
69   now use the utf8 charset.
70
71 * Backup metadata is now additionally saved to pc/HOST/nnn/backupInfo,
72   in addition to pc/HOST/backups.  In case pc/HOST/backups gets trashed,
73   then a new script BackupPC_fixupBackupSummary can read the per-backup
74   metadata from pc/HOST/nnn/backupInfo and reconstruct the backups file.
75   Roberto Moreno also pointed out an early error in the CVS version.
76
77 * Added Storage module and Storage::Text which localizes all the
78   text data file reading/writing (eg: backups, restores, archives
79   and config.pl files).  Added read verify after all write
80   operations for robustness.  Additional backends (eg: SQL)
81   can be added in the future as new subclasses of the Storage
82   module.
83
84 * Added Config module, and Config::Meta that contains meta data
85   about configuration parameters.
86
87 * Added RSS support from Rich Duzenbury.
88
89 * Translations of new 3.0 language strings from Guillaume Filion,
90   Reginaldo Ferreira, Ralph Passgang, Lieven Bridts, Guus Houtzager,
91   Rodrigo Real.
92
93 * Added optional checking of exit status of Dump/Restore/Archive Pre/Post
94   UserCmd, requested by Kiko Jover, Matthias Bertschy and others.
95
96 * For new installations configure.pl tries to comply with the file
97   system hierarchy standard, which means all the configuration files
98   below /etc/BackupPC and log files go below /var/log/BackupPC.
99
100 * Added Slackware init.d script from Tony Nelson.
101
102 * Fixed error reporting when restore/archive fail to write the
103   request file to the client directory.
104
105 * Applied patch from Marc Prewitt for DumpPreShareCmd and DumpPostShareCmd.
106
107 * Apply patch from Pete Wenzel to add smbClientPath => $Conf{SmbClientPath}
108   to DumpPreUserCmd etc.
109
110 * Added Portuguese Brazillian pt_br.pm from Reginaldo Ferreira.
111
112 * Jean-Michel Beuken reported several bugs in configure.pl in CVS 3.0.0.
113
114 * Old backup email warnings now ignore partials requested by Samuel Bancal
115
116 * Applied patch to bin/BackupPC_sendEmail from Marc Prewitt that
117   ignores any file starting with "." in the pc directory when
118   it is generating warnings about old/unused files/directories.
119
120 * Applied patch from Marc Prewitt to fix host queue order.
121  
122 * Applied Lorenzo Cappelletti's it.pm patch.
123
124 * Applied Wander Winkelhorst's nl.pm patch.
125
126 * Applied Alberto Marconi's it.pm patch.
127
128 * Add NT_STATUS_FILE_LOCK_CONFLICT to pst read error check in
129   BackupPC_sendEmail to fix bug reported by Dale Renton.
130
131 * Added fixup of $ENV{REMOTE_USER} to lib/BackupPC/CGI/Lib.pm in the
132   case of using mod_authz_ldap; patch submitted by Alain Perrier.
133
134 * Added env LC_ALL=C to $Conf{TarClientCmd} and $Conf{TarClientRestoreCmd}
135   to avoid locale problems, suggested by Ludovic Drolez.
136
137 * Changed ping output parsing to pick out average rtt time, based
138   on patch from Ron Bickers.
139
140 * Removed leading "./" and top-level "./" directory from
141   zip archives generated by BackupPC_zipCreate.  Reported
142   by Josh (hecktarzuli).
143
144 * BackupPC_tarCreate and BackupPC_zipCreate now allow "@"
145   in share names.  Reported by Robert Waldner.
146
147 * NT_STATUS_INSUFF_SERVER_RESOURCES is now a fatal error for
148   smbclient transfers, suggested by Brian Shand.
149
150 * Changed bin/BackupPC_archiveHost to use /bin/csh instead of
151   /bin/sh.  That way any errors in the pipeline are reported
152   via the exit status, instead of just the last.
153
154 * Added $Conf{EMailHeaders} for additional email headers, requested
155   by Ludovic Gasc.  If the Content-Type charset is set to utf8 then
156   the body of the email is sent in utf8 coding.
157
158 * Made shareName argument regexp checking more general to allow parens.
159
160 * Added some debian init.d instructions to init.d/README from
161   Bob de Wildt.
162
163 * Documentation updates from Richard Ames, JP Vossen, Torsten Finke.
164
165 #------------------------------------------------------------------------
166 # Version 2.1.2pl2, 18 Jun 2006
167 #------------------------------------------------------------------------
168
169 * In conf/config.pl, changed --devices to -D in $Conf{RsyncArgs}
170   and $Conf{RsyncRestoreArgs} to fix "fileListReceive failed" and
171   "Can't open .../f%2f for empty output" errors with rsync 2.6.7+.
172   Fix proposed by Justin Pessa and Vincent Ho, and confirmed by
173   Dan Niles.
174
175 * Added patch from Michael (mna.news) to ignore "file is unchanged"
176   message from tar 1.15.x during incremental backups.
177
178 * Fixed creation of .rsrc directories in bin/BackupPC_tarExtract
179   when used with xtar on MacOS.  Reported by Samuel Bancal and
180   Matthew Radey, who helped with debugging.
181
182 * Fixed bug in BackupPC_tarExtract for files >8GB in size whose
183   lengths are multiples of 256.  Reported by Jamie Myers and
184   Marko Tukiainen, who both helped debugging the problem.
185
186 * Fixed bug in lib/BackupPC/Xfer/RsyncFileIO.pm that caused
187   incorrected deleted attributes to be set in directories
188   where one of the files had an rsync phase 1 retry during
189   an incremental.  Reported by Tony Nelson.
190
191 #------------------------------------------------------------------------
192 # Version 2.1.2, 5 Sep 2005
193 #------------------------------------------------------------------------
194
195 * Fixed simple but serious bug in bin/BackupPC_tarCreate that prevented
196   hardlinks being saved correctly.  Debugged by Michael (mna.news)
197   with several other people.
198
199 * Fixed serious bug in bin/BackupPC_dump reported/debugged by Dan Niles
200   that can happen when multiple full backups are deleted after
201   $Conf{FullKeepCnt} is changed.
202
203 * Changed lib/BackupPC/CGI/Lib.pm so that link to "$TopDir/conf/$host.pl"
204   is displayed if it exists.  Patch from Andreas Vögele.
205
206 * Applied daemonize patch to bin/BackupPC from:
207         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=301057
208
209 * It's now a fatal error if $Conf{CompressLevel} is set, but
210   Compress::Zlib is not found.  Before $Conf{CompressLevel} was
211   silently set to 0, which made all the backups uncompressed.
212   That meant the user never knew if they forget to install
213   Compress::Zlib but were expecting compression to be on.
214
215 * Finally increased $Conf{ClientTimeout} to 72000 (20 hours).
216
217 * Added sleep 1 in restart() function in init.d/src/gentoo-backuppc,
218   suggested by Jon Hood.
219
220 * Added $DestDir to the path of the CGI image directory in configure.pl.
221   Patch submitted by Andreas Vögele.
222
223 * Applied extensive patch to French translation from Frederic Lehobey.
224
225 * Minor change to Dutch language $Lang{Pool_Stat} from Wander Winkelhorst.
226
227 * Minor change to French language $Lang{EMailOutlookBackupMesg} and
228   $Lang{EMailOutlookBackupSubj} from Ludovic Gasc.
229
230 #------------------------------------------------------------------------
231 # Version 2.1.1, 13 Mar 2005
232 #------------------------------------------------------------------------
233
234  * Fixed bug in top-level restore using rsync XferMethod.
235    BackupPC::View was leaving an extra leading "/" at the start
236    of top-level directories, messing up the FileList sort order.
237    Reported and debugged by Gail Edwards.
238
239  * Added pathCreate() to BackupPC_tarExtract so that new directories
240    are created.  Required for xtar on MacOSX since the virtual resource
241    fork directories (.rsrc) are not explicitly included in the tar
242    archive - just the files below .rsrc are.
243
244  * Changed $host.$bkupNum.tar$fileExt.* to $host.$bkupNum.tar$fileExt*
245    in $parCmd in bin/BackupPC_archiveHost.
246
247  * Fixed HostSortCompare() in BackupPC to correctly sort hosts so
248    those with the oldest backups get queued first.
249
250  * Changed test in BackupPC_sendEmail so that directories/files
251    starting with "." in $TopDir/pc are ignored, rather than
252    just "." and "..".
253
254  * Changed BackupPC_sendEmail to include NT_STATUS_FILE_LOCK_CONFLICT
255    in check for bad outlook files.
256
257  * Ensure that %Status and %StatusHost are empty if requesting
258    status on hosts in lib/BackupPC/CGI/Lib.pm GetStatusInfo().
259    Fixes problem with new hosts under mod_perl.
260
261  * Added images/icon-hardlink.gif so that hardlinks show file type icon.
262
263 #------------------------------------------------------------------------
264 # Version 2.1.0pl1, 15 Aug 2004
265 #------------------------------------------------------------------------
266
267 * Added fix to nl.pm from Lieven Bridts.
268
269 * Added patch from Tony Nelson to remove $Info{pid} before BackupPC
270   writes the status and shuts down.
271
272 * Changed BackupPC_nightly so that it doesn't call find() if the
273   directory doesn't exist.  This avoids errors in certain versions
274   of perl.  Reported by Bernd Rilling.
275
276 * Fixed BackupPC::CGI::Lib to correctly re-load config.pl for mod_perl.
277   Reported by Tony Nelson and Jimmy Liang.
278
279 * Explicitly untaint $In{host} in BackupPC::CGI::Lib to fix problem
280   reported by Thomas Tempé.
281
282 * Added newline to "...skipping because of user requested delay..."
283   log message in BackupPC_dump.  Reported by Wayne Scott.
284
285 * Added read file size error checking to BackupPC_tarCreate.
286   Reported by Brandon Evans.
287
288 * Added check in BackupPC::Xfer::RsyncFileIO to ensure that when
289   compression is toggled on/off, a compressed backup doesn't link
290   to an uncompressed pool file (and an uncompressed backup doesn't
291   link to a compressed pool file).  Reported by Brandon Evans.
292
293 * Updated documentation with new dirvish URL and a typo from
294   Todd Curry.
295
296 * Fix to BackupPC_sendEmail so that it correctly sends admin emails
297   for hosts that have failed backups.  Reported by Simon Kuhn.
298
299 #------------------------------------------------------------------------
300 # Version 2.1.0, 20 Jun 2004
301 #------------------------------------------------------------------------
302
303 * Added Dutch translation from Lieven Bridts, with tweaks from
304   Guus Houtzager.
305
306 * Added PC-specific config file read in CGI/Archive.pm.  Patch
307   from Pete Wenzel.
308
309 * Added non-zero exit code to BackupPC_zcat when uncompress fails.
310   Patch from Pete Wenzel.
311
312 * Cosmetic changes to PC Summary and Log file language strings from
313   Pete Wenzel.
314
315 * BackupPC::Lib tries to be more careful when renaming the backups
316   file to backups.old.  There have been reports of backups being
317   empty, perhaps when the BackupPC data file system fills up.
318   Now backups is not renamed to backups.old if backups is empty.
319
320 * BackupPC now closes stderr and stdout before renaming and
321   re-opening the log file.
322
323 * Pre/post backup/restore/archive commands now correctly set
324   "type" to either incr/full/restore/archive, and now cmdType
325   is the type of Pre/post backup/restore/archive command.
326
327 * BackupPC_archive correctly terminates archive processes on
328   alarm or cancel.
329
330 * Updates to BackupPC_stnd.css with absolute font sizes instead
331   of relative.
332
333 * BackupPC_dump now makes sure that the $Conf{FullAgeMax} check
334   also ensures the full backup is older than the maximum age
335   expected from $Conf{FullPeriod}.
336
337 #------------------------------------------------------------------------
338 # Version 2.1.0beta2pl1, 30 May 2004
339 #------------------------------------------------------------------------
340
341 * Fixed bug in rsync checksum caching code in BackupPC::Xfer::RsyncDigest.
342
343 * BackupPC_zipCreate now ensures the earliest mtime is 1/1/1980,
344   since zip file formats don't support earlier dates.  Reported
345   by Dan Niles.
346
347 * CGI restore via zip and tar now makes sure stderr is ignored
348   when BackupPC_tarCreate and BackupPC_zipCreate are run.
349   Previously any stderr output would get mixed in the archive,
350   corrupting it.  Reported by Dan Niles.
351
352 #------------------------------------------------------------------------
353 # Version 2.1.0beta2, 23 May 2004
354 #------------------------------------------------------------------------
355
356 * $Conf{BackupFilesOnly} and $Conf{BackupFilesExclude} now apply
357   to every share, rather than just the first, in the case where
358   they are arrays and there are multiple shares.  Suggested
359   by Andy Evans.
360
361 * On the phase 2 retry pass with rsync, verify the cached checksums
362   if checksum caching is turned on.  This will catch the case of
363   cached checksums being incorrectly appended to the compressed
364   pool file.  Added new config parameter $Conf{RsyncCsumCacheVerifyProb}
365   so that cached checksums are verified with a selectable probability.
366   Also, increased File::RsyncP version number to 0.51.
367
368 * configure.pl now supports an optional batch mode.  Command-line
369   options are used to specify all the information that configure.pl
370   needs.  This is useful for building auto-install packages.
371   Also, configure.pl now includes pod documentation, so you can do
372   "perldoc configure.pl" to see all the command-line options.
373   Suggested, tested and tweaked by Stuart Herbert for possible
374   Gentoo inclusion.
375
376 * At each wakeup, clients are now queued based on how old the most
377   recent backup is.  Clients with errors are queued first, with
378   the oldest error times going first.  The rest of the clients are
379   queued next, with the clients with the oldest backup going first.
380   Previously the clients were simply queued in alphabetic order.
381   Suggested by Mike Trisko and Tony Nelson.
382
383 * Added config parameter $Conf{PartialAgeMax} that controls whether
384   partials are saved at all, and if so, whether the partial will be
385   ignored at the next full backup if it is too old.
386
387 * BackupPC_tarExtract now allows empty archives without reporting
388   an error.  Reported by Don Silvia.
389
390 * Removed Browse Backups link from Nav Bar in Archive Info display.
391   Reported by Ralph Paßgang.
392
393 * Fixed documentation display for regular users.  Reported by Ralph Paßgang.
394
395 * Status and PC Summary now work for regular users and only show
396   that user's hosts.  Server general status information only appears
397   for admins.  Suggested by Ralph Paßgang.
398
399 * Moved the last three navigation-bar links (docs, FAQ and SF) to
400   a new config parameter $Conf{CgiNavBarLinks}.  This allows
401   these links to be locally configured.  Based on a patch
402   submitted by Ralph Paßgang.
403
404 * Allow the navigation bar search box to be disabled by
405   setting $Conf{CgiSearchBoxEnable} to 0.  Based on a patch
406   submitted by Ralph Paßgang.
407
408 * Updates to de.pm from Ralph Paßgang.
409
410 * Made the BackupPC icon a link to the SF BackupPC project page.
411
412 #------------------------------------------------------------------------
413 # Version 2.1.0beta1, 4 Apr 2004
414 #------------------------------------------------------------------------
415
416 * The CSS definition has been removed from the config.pl file and
417   is now a separate file, BackupPC_stnd.css.  A new config variable,
418   $Conf{CgiCSSFile}, gives the name of the CSS file to use.
419   Suggested by Ender Mathias.
420
421 * Fixed the filling of the host name select box for admins.
422   The default $Conf{CgiNavBarAdminAllHosts} is now 1.
423   Reported by Doug Lytle.
424
425 * Cleaned up warning message for restore using rsync when checksum
426   caching is on, but when file didn't have cached checksums.
427
428 * Fixed BackupPC_archiveHost to support par2 (par2cmdline).
429   Patch submitted by Jaco Bongers and adapted by Josh Marshall.
430
431 * Improved stat() usage in BackupPC_nightly, plus some other cleanup,
432   giving a significant performance improvement.  Patch submitted by
433   Wayne Scott.
434
435 * Allow several BackupPC_nightly processes to run in parallel based
436   on new $Conf{BackupPCNightlyJobs} setting.  This speeds up the
437   traversal of the pool, reducing the overall run time for
438   BackupPC_nightly.
439
440 * Allow BackupPC_nightly to split the pool traversal across several
441   nightly runs.  This improves the running time per night, at the expense
442   of a slight increase in disk storage as unused pool files might not
443   be deleted for a couple of days.  Controller by new config setting
444   $Conf{BackupPCNightlyPeriod}.
445
446 #------------------------------------------------------------------------
447 # Version 2.1.0beta0, 20 Mar 2004
448 #------------------------------------------------------------------------
449
450 * A failed full dump is now saved as a partial (incomplete) dump,
451   provided it includes some files.  This can be used for browsing,
452   restoring etc, and will also form the basis of resuming full
453   dumps.  Only one partial is kept, and it is removed as soon
454   as a successful full (or a new partial) is done.
455
456 * Added support for resuming a full dump for rsync.  The partial
457   full is kept, and to resume an incremental is done against the
458   partial, and a full is done for the rest.
459
460 * Added support for Rsync checksum caching.  Rsync checksum are
461   appended to the compressed pool files.  This means that block
462   and file checksums do not need to be recomputed on the server
463   when using rsync.  Requires a patch to rsync to support fixed
464   checksum seeds.  This patch is included in the cygwin-rsyncd
465   release on http://backuppc.sourceforge.net.
466
467 * Major addition of Archive feature from Josh Marshall.  Special
468   clients can be configured to be archive targets (eg: tape drives,
469   CD-R).  Any subset of the backup clients can be selected and tar
470   archives are created, optionally compressed and split and written
471   to the output device.  Logs are maintained and are browsable.
472
473 * Major changes from Ryan Kucera to add style sheets to the CGI
474   interface, allowing easy customization.  Added new icons and
475   BackupPC logo.  Numerous navigation improvements.
476
477 * Added directory history display to BackupPC_Admin, allowing the
478   user to quickly see which files changed between backups on a
479   per-directory basis.
480
481 * Added exponential expiry option for full dumps.  This allows you
482   to specify
483   
484    - how many fulls to keep at intervals of $Conf{FullPeriod}, followed by
485    - how many fulls to keep at intervals of 2 * $Conf{FullPeriod},
486    - how many fulls to keep at intervals of 4 * $Conf{FullPeriod},
487    - how many fulls to keep at intervals of 8 * $Conf{FullPeriod},
488    - how many fulls to keep at intervals of 16 * $Conf{FullPeriod},
489
490   and so on.  This allows you, for example, to keep 4 weekly fulls,
491   followed by 6 fulls every 4 weeks (approx 1 month) and 2 fulls at
492   16 weeks, for roughly 1 year of history.  This works by deleting
493   every other full as each expiry boundary is crossed.  Suggested
494   by David Cramblett.
495
496 * Added Italian language translation it.pm from Lorenzo Cappelletti.
497
498 * Major updates to language files for new features and tags changes.
499   Updated makeDist to do pedantic consistency checking of language
500   files.
501
502 * Addition of administration options from Paul Lukins.  Initial
503   page allows server to be started/stopped/reloaded.  This still
504   needs some i18n work.  Currently the server start/stop is
505   commented out.
506
507 * Split BackupPC_Admin into a set of modules, one for each major action.
508   Each action is now a seperate module in lib/BackupPC/CGI.
509
510 * Allow the blackout period begin/end to span midnight.  Adapted
511   from patch submitted by David Smith.
512
513 * Allow multiple blackout periods, with new config variable
514   $Conf{BlackoutPeriods} that replaces the old variables
515   $Conf{BlackoutHourBegin}, $Conf{BlackoutHourEnd}, and
516   $Conf{BlackoutWeekDays}.  Based on patch submitted by
517   Lorenzo Cappelletti.
518
519 * Disabled alarms after forks to avoid timeouts in children that
520   do not reset their alarm.  Prompted by ideas from James Leu.
521
522 * Added options for block size, buffer size and share wild-card to
523   BackupPC_tarCreate.  Also added negative backup number options
524   that are relative to the last (so -1 is the last), suggested by
525   William McKee and Carl Soderstrom.
526
527 * The "Wrong user" message in BackupPC::Lib now goes to stderr, so that
528   the user is more likely to see the error with BackupPC_tarCreate.
529   Reported by Paul Fox.
530
531 * Add creation of per-PC directory in BackupPC/CGI/Restore.pm in
532   case it doesn't already exist.
533
534 * Added -q -x to all ssh commands in conf/config.pl.  Suggested by
535   SI Reasoning and Niranjan Ghate.
536
537 * Changed restore code so that option #1 (direct restore) can be
538   disabled if the restore command is undefined.  Disabling direct
539   restore is necessary if the share is read-only.  Suggested by
540   Rich B from SAIC.
541
542 * Changed regexp in lib/BackupPC/Smb.pm to allow numbers with both
543   a decimal point or comma for international versions of Samba.
544   Patch submitted by Frank Gard.
545
546 * Browsing and directory history now sort the files in a
547   case-insensitive manner.
548
549 * Changed exec() syntax to allow executing commands whose path
550   contains spaces.
551
552 * BackupPC_dump no longer removes backups if $Conf{FullKeepCnt}
553   is zero or undefined.  The protects the existing backups in the
554   case of a bad config.pl file.  Suggested by Christian Warden.
555
556 * Swapped the Server and Hosts sections on the Nav bar.  Moved the
557   host search text box to the top of the hosts section.  This was
558   done to move the variable-length part of the Nav bar (when all
559   hosts are displayed) to the bottom.
560
561 * Fixed a bug in tar restore related to how the common prefix path is
562   removed.  Now ensure that the common path is at a directory boundary.
563   Reported by Patrick Neuner.
564
565 * Added --chuid ${USER} to init.d/src/gentoo-backuppc.  Suggested by
566   SI Reasoning, Pascal Pochol, Michael Evanoff and others.
567
568 * Added Suse notes to init.d/README from Bruno Vernay.
569
570 * Added Apache 2 documentation fix from Michael Tuzi.
571
572 #------------------------------------------------------------------------
573 # Version 2.0.2, 6 Oct 2003
574 #------------------------------------------------------------------------
575
576 * Fixed stupid last-minute change in octal size conversion in
577   Backup_tarExtract.
578
579 #-----------------------------------------------------------------------
580 # Version 2.0.1, 5 Oct 2003
581 #------------------------------------------------------------------------
582
583 * Fixed handling of >= 8GB files in BackupPC_tarExtract and >= 4GB
584   files in BackupPC_tarCreate.
585
586 * Removed smbclient size repair in BackupPC_tarExtract for files
587   between 2GB and 4GB.  This means that BackupPC_tarExtract 2.0.1
588   doesn't behave the same as 2.0.0 for file sizes between 2GB and 4GB
589   extacted using smbclient 2.2.x.  If you have problems backing up
590   files whose size is between 2GB and 4GB using smbclient 2.2.x
591   you should upgrade smbclient to 3.0, since it now generates
592   correct file sizes.
593
594 * Replace PingClientPath with PingPath in configure.pl.
595
596 * Removed -T (taint mode) on binaries installed in configure.pl.
597
598 * Added support for smbclient from samba version 3.0.0.
599
600 * Fixed $Conf{HardLinkMax} limit check in BackupPC::Lib; reported
601   by Ross Skaliotis.
602
603 * In BackupPC_Admin, default REMOTE_USER to $Conf{BackupPCUser}
604   if it is not defined.  This allows the CGI interface to work
605   when AdminUsers = '*'.  Reported by Quentin Arce.
606
607 * For SMB, code that detected files with a read-locked region (eg:
608   outlook .pst files), removed them and then tried to link with an
609   earlier version was broken.  This code missed a step of mangling
610   the file names.  This is now fixed.  Reported by Pierre Bourgin.
611
612 * A backup of a share that has zero files is now considered
613   fatal. This is used to catch miscellaneous Xfer errors that
614   result in no files being backed up.  A new config parameter
615   $Conf{BackupZeroFilesIsFatal} (defaults to 1) and can be set to
616   zero to turn off this check.  Suggested by Guillaume Filion.
617   Additional change: this check only applies to a full dump.
618
619 * SMB: now detect NT_STATUS_ACCESS_DENIED on entire share or BackupFilesOnly
620   (also ERRDOS - ERRnoaccess (Access denied.) for older versions of
621   smbclient.)  Suggested by Guillaume Filion.
622
623 * SMB: now detects "tree connect failed: NT_STATUS_BAD_NETWORK_NAME" and
624   the dump is considered failed.
625
626 * Rsync: Previously BackupFilesOnly = '/' did --include '/' --exclude '/*',
627   which just included the '/' directory and nothing below.  Now it
628   does just --include '/', which should include everything.
629   Reported by denon.
630
631 * Add hostError to DumpPostUserCmd variable substitutions for both dump
632   and restore.
633
634 * Verbose output in Lib.pm goes to STDERR, not STDOUT.  This now
635   makes BackupPC_dump -v work better.
636
637 * Don't allow browsing with ".." in directory in case a user tries
638   to trick BackupPC_Admin into displaying directories outside where
639   they are allowed.
640
641 * Required File::RsyncP version is now 0.44, since File::RsyncP 0.44
642   fixes large file (>2GB) bugs.  Large file bugs reported by Steve
643   Waltner.
644
645 #------------------------------------------------------------------------
646 # Version 2.0.0, 14 Jun 2003
647 #------------------------------------------------------------------------
648
649 * Minor tweaks to disable utf8 on utf8-capable machines (eg: RH8+).
650   Added "no utf8" to all programs, and added binmode() to relevant
651   file handles.
652
653 #------------------------------------------------------------------------
654 # Version 2.0.0beta3, 1 Jun 2003
655 #------------------------------------------------------------------------
656
657 * Several improvements to restore: cancel now reports the correct
658   message and cleans up correctly.
659
660 * Rsync with whitespace and wildcard excludes fixed by replacing
661   argList with argList+ in config.pl plus a fix to Lib.pm for
662   shell escaping array arguments.
663
664 * Fixed rsync restore for character and block special devices
665   (major and minor device numbers weren't correctly restored).
666
667 * Fixed typo in bin/BackupPC_restore (XferLOG -> RestoreLOG).
668
669 * (Re)-fixed "Bad command" in log file when restore via tar or zip
670   file download is done.
671
672 * Added untaint to exec in Lib.pm to avoid tainted errors.
673
674 * Applied additional tweak to hilight patch from Tim Demarest.
675
676 * $Conf{CgiAdminUsers} = '*' now allows privileged even with REMOTE_USER
677   not set.
678
679 * Don't display RsyncdPasswd when displaying config.pl files.
680
681 * Replace pipe with socketpair in bin/BackupPC_dump and bin/BackupPC_restore,
682   which increases typical buffering from 4K to 16K-64K.  This improves the
683   performance.
684
685 * Add check on $ENV{LANG} setting do configure.pl: if LANG includes utf
686   then a warning is printed.
687
688 #------------------------------------------------------------------------
689 # Version 2.0.0beta2, 11 May 2003
690 #------------------------------------------------------------------------
691
692 * Added German translation, provided by Manfred Herrmann.
693
694 * Fixed large-file problem with rsync, reported by Manfred Herrmann.
695
696 * Fixed zip and tar file download from CGI under mod_perl.  Reported
697   by Pierre Bourgin and Paul Lukins.
698
699 * Fixed directory browsing and top-level directory browsing in 2.0.0beta0.
700   Reported by several users.
701
702 * Added -v option to BackupPC_dump for verbose output (useful when
703   you run the command manually).  Added messages for all exits.
704
705 * If nmblookup returns multiple IP addresses, NetBiosHostIPFind()
706   now returns the first IP address that matches the subnet mask.
707   Suggested by Tim Demarest.
708
709 * Fixed BackupPC::View so the top-level directory is handled correctly.
710   This allows the top-level share/directory to be restored via the
711   CGI interface.  Reported by several users.
712
713 * Fixed RsyncFileIO failures on certain large files by replacing seek()
714   with sysseek().  Reported by Manfred Herrmann.
715
716 * Added configurable highlighting of PC status in the CGI summary
717   screen; submitted by Tim Demarest.
718
719 * Fixed command queue CGI display; submitted by Tim Demarest.
720
721 * BackupPC_trashClean now logs an error if it can't remove all the
722   trash and then goes back to sleep, rather than continually trying.
723
724 * Moved correct user (uid) check into BackupPC::Lib so that all
725   applications do a user check if $Cong{BackupPCUserVerify} is
726   set.  The avoids the risk of manually running BackupPC_dump as
727   the wrong user.
728
729 * Loss of blackout now applies to "host not found" as well as no ping.
730   Reported by Dale Renton.
731
732 * "Host not found" is now treated in a similar manner to "no ping".
733
734 * Added suse-linux init.d script from Leon Letto.
735
736 * Added Gentoo linux init.d script from Tim Demarest.
737
738 * Applied additional i18n strings from GFK and the translation team.
739
740 * Fixed option parsing so that getopts errors are reported and we exit.
741
742 * Changed reporting of Xfer PIDs so that rsync cancel works correctly.
743
744 #------------------------------------------------------------------------
745 # Version 2.0.0beta1, 30 Mar 2003
746 #------------------------------------------------------------------------
747
748 * Added Spanish translation es.pm from Javier Gonzalez.
749
750 * Fixed CGI browse navigation bug that causes BackupPC_Admin to wedge
751   when directories were selected in a certain order.
752
753 * Fixed BackupPC::PoolWrite so that it can recover when the initial
754   file size is wrong.  This is needed since rsync could write a file
755   whose size is different from the initial size returned in the
756   file list when that file is updated while rsync is running.
757
758 * Added binmode(STDIN) to BackupPC_tarExtract, suggested by Pat LoPresti
759   to fix a problem a RedHat8 with perl 5.8.0.  It's unclear why this
760   helps, but it should be benign.  See:
761     http://sourceforge.net/mailarchive/forum.php?thread_id=1853018&forum_id=503
762
763 #------------------------------------------------------------------------
764 # Version 2.0.0beta0, 23 Feb 2003
765 #------------------------------------------------------------------------
766
767 * Support for rsync and rsyncd backup and restore.  Changes to
768   BackupPC_dump, BackupPC_restore, and new modules BackupPC::Xfer::Rsync
769   and BackupPC::Xfer::RsyncFileIO.
770
771 * Added internationalization (i18n) code from Xavier Nicollet,
772   with additions from Guillaume Filion.  Voila!  BackupPC_Admin
773   now supports English and French, and adding more languages is
774   now easy.  New config paramater $Conf{Language} sets the language.
775
776 * Added optional user-defined pre/post dump/restore commands, allowing
777   things like database shutdown/startup for dumps.
778
779 * Changed the way hosts are found.
780
781 * Added $Conf{ClientNameAlias}, which allows the name of the physical
782   client machine to be set.  This allows several different backup
783   "hosts" to all refer to the same physical machine, which is
784   convenient if several different types of data need to be backed
785   up, or if different parameters are needed for different parts of
786   the host.
787
788 * Replaced $Conf{PingArgs} with $Conf{PingCmd}, added $Conf{DfCmd},
789   $Conf{NmbLookupCmd} allowing all these commands to be fully
790   configured.  Also, all commands can also now be fragments of
791   perl code.
792
793 * Moved all smbclient commands into the config.pl file so the specific
794   arguments can be customized.  New config parameters are
795   $Conf{SmbClientFullCmd}, $Conf{SmbClientIncrCmd} and
796   $Conf{SmbClientRestoreCmd}.
797
798 * Added new BackupPC::View module that creates views of backups
799   (handling merging etc).  Updated BackupPC_Admin, BackupPC_zipCreate
800   and BackupPC_tarCreate to use BackupPC::View.  This removes lots
801   of merging and mangling code from the higher-level code.
802
803 * Added code from Toby Johnson that allows additional users to be
804   specified in the hosts file; these users can also view/start/stop
805   and restore backups for that host.  Also added a new config
806   setting $Conf{CgiNavBarAdminAllHosts} that allows all hosts to
807   be listed in the left nav bar for admins.
808
809 * Added $Conf{HardLinkMax} (default 31999) which sets the limit on
810   the maximum number of hardlinks per file in the pool.  If a file
811   ever gets to this number of links a new pool file is created to
812   handle additional links.
813
814 * Added $Conf{PerlModuleLoad}, which allows optional additional perl
815   modules to be loaded.
816
817 * Added $Conf{EMailUserDestDomain} and other EMail config settings to
818   allow language-specific default messages to be overridden.
819
820 * Added BPC_FTYPE_DELETED to lib/BackupPC/Attrib.pm, allowing deleted
821   files to be represented in the attrib file correctly.
822
823 * Added support for environment variable BPC_SMB_PASSWD, which is the
824   client's smb password.  This overrides the old environment variable
825   PASSWD.
826
827 * Added taint cleanup for perl5.8 to lib/BackupPC/Lib.pm.
828
829 * Changed $tar_unpack_header format in BackupPC_tarExtract to correctly
830   handle files with trailing spaces.
831
832 * Added catching of SIG_PIPE to BackupPC_dump, and changed catch_signal
833   to ignore multiple signals of the same type.
834
835 * Added reporting of the largest number of hardlinks in the pool to the
836   log file.
837
838 * Adding reporting of syntax errors in the per-PC config.pl file.
839
840 * Updated BackupPC_sendEmail to handle language-specific email messages.
841
842 * Allow client (host) names to contain spaces.  Spaces in host names
843   need to be escaped via "\" in the hosts file.  The user of spaces in
844   host names is discouraged, but they should work.  One feature that
845   doesn't work with host names that contain spaces is the highlighting
846   of that name in the log file display in the CGI interface.  There are
847   no plans to fix this.
848
849 * Renamed $Conf{SmbClientTimeout} to $Conf{ClientTimeout}.
850
851 * Fixed all open() calls to use 3 argument form to fix handling of file
852   names with trailing whitespace.  Also fixed CGI interface so these
853   file names are displayed correctly.
854
855 * Fixed new 2.0.0 CGI navigation bug that causes the top-level directory
856   to have a URL "&share=//boot&dir=" instead of "&share=/boot&dir=/".
857   Reported by Pascal Schelcher.  Fixed similar problem reported by
858   Doug Lytle.
859
860 * Added "PerlTaintCheck On" to the mod_perl section in the docs,
861   suggested by Tim Demarest.
862
863 #------------------------------------------------------------------------
864 # Version 1.5.0, 2 Aug 2002
865 #------------------------------------------------------------------------
866
867 * Changed conf/config.pl so that $Conf{TarIncrArgs} uses the --newer
868   option instead of --newer-mtime.  Also removed --atime-preserve from
869   $Conf{TarClientCmd}.  This makes the default settings work better
870   with tripwire.
871
872 * Fixed configure.pl so it correctly detects a running BackupPC <= v1.4.0
873   so it can correctly warn the user to stop it before upgrading.  Reported
874   by David Holland.
875
876 * Added missing ";" to entity escape in EscapeHTML in BackupPC_Admin.
877   Reported by Guillaume Filion.
878
879 * Added LDAP setup to documentation from David Holland.
880
881 * Tar.pm now adds a "." to file paths that start with "/", so that all
882   tar paths are relative.  From Ludovic Drolez.
883
884 #------------------------------------------------------------------------
885 # Version 1.5.0beta0, 30 Jun 2002
886 #------------------------------------------------------------------------
887
888 * A full set of restore options is now supported, including direct
889   restore via smbclient or tar or downloading a zip or tar file.
890
891 * Major additions to CGI script to support better directory navigation,
892   restore features and mod_perl.  Also, file downloads from the CGI
893   interface now correctly preserve the file name and provide the
894   correct Content-Type for the most common types of files.  Improved
895   directory navigation was contributed by Ryan Kucera.
896
897 * New script BackupPC_zipCreate (contributed by Guillaume Filion) is the
898   zip analog of BackupPC_tarCreate.  BackupPC_zipCreate can be used to
899   create a zip archive of any portion of a backup.
900
901 * Substantial additions to BackupPC_tarCreate to support restore,
902   including modifying path names, handling hardlinks, fixing
903   support of old backups without attributes (pre-v1.4.0).  Plus
904   BackupPC_tarCreate is now an offical part of the release.
905   (Lack of support for hardlinks was reported by John Stanley.)
906
907 * BackupPC_tarExtract now supports hardlinks and fixed pooling of
908   attribute files.
909
910 * A unix domain socket is now used for communication between the CGI
911   interface and BackupPC.  The original TCP socket is optional.  Sockets
912   are correctly re-initialized if config.pl is updated with new socket
913   settings.
914
915 * For improved security messages over the unix or TCP socket are protected
916   via an MD5 digest based on a shared secret, a sequence number, a time
917   stamp and a unique per-connection number.
918
919 * Additions to configure.pl to support install of directory navigation
920   images.
921
922 * Fixed case where $Conf{BackupFilesOnly} or $Conf{BackupFilesExclude}
923   were set to a single string or list (in v1.4.0 only the case of
924   hash worked correctly).  Reported by Phillip Bertolus.
925
926 * Fixed case of $Conf{BackoutGoodCnt} == 0.  This setting now makes the
927   client always subject to blackout, matching the comments in config.pl.
928   Also fixed handling of $Conf{BackoutGoodCnt} < 0 in the CGI script
929   reported by Pascal Schelcher.
930
931 * Fixed byte and file totals for tar backups, reported by several users.
932
933 * Fixed --newer-mtime date/timestamp format to make it ISO 8601 compliant,
934   suggested by Erminio Baranzini.
935
936 * Fixed handling of $Conf{BackupFilesOnly} in BackupPC::Xfer::Tar.pm, as
937   well as shell escaping of tar arguments.
938
939 * Fixed entity encoding of 8-bit characters in the CGI interface.
940
941 * Added optional CGI headers in $Conf{CgiHeaders} that by default
942   is set to a no-cache pragma.  Suggested by Benno Zuure.
943
944 #------------------------------------------------------------------------
945 # Version 1.4.0, 16 Mar 2002
946 #------------------------------------------------------------------------
947
948 * BackupPC now supports tar (in addition to smb) for extracting host    
949   data.  This is the most convenient option for linux/unix hosts.
950   Tar can be configured to run over ssh, rsh or to backup a local
951   nfs mount from the host.
952
953 * Support for special files, including symbolic links, fifo, character
954   and block device files has been added, so that all native linux/unix
955   file types can be correctly backed up when using tar transport.
956   Special files are all stored as regular files and the type attributes
957   are used to remember the original file type.
958
959 * All unix file attributes are now saved (and pooled when possible).
960   This includes user and group ownership, permissions, and modification
961   time.  Smbclient also does a reasonable job of emulating unix 
962   permissions (such as mtime), and these attributes get saved too.
963
964 * The new default is to not fill incremental dumps.  configure.pl
965   automatically sets $Conf{IncrFill} to 0.  The default was 1
966   (incrementals were filled with hardlinks).  Since the CGI
967   script does filling at browsing time, there is no need to
968   fill incremental dumps.
969
970 * Backup file names are now stored in "mangled" form. Each node of a
971   path is preceded by "f", and special characters (\n, \r, % and /) are
972   URI-encoded as "%xx", where xx is the ascii character's hex value. So
973   c:/craig/example.txt is now stored as fc/fcraig/fexample.txt. This
974   was done mainly so meta-data could be stored alongside the backup
975   files without name collisions.  In particular, the attributes for the
976   files in a directory are stored in a file called "attrib", and
977   mangling avoids file name collisions (I discarded the idea of having
978   a duplicate directory tree for every backup just to store the
979   attributes). Other meta-data (eg: rsync checksums) could be stored in
980   file names preceded by, eg, "c".  There are two other benefits to
981   mangling: the share name might contain "/" (eg: "/home/craig" for tar
982   transport), and I wanted that represented as a single level in the
983   storage tree.  Secondly, as files are written to NewFileList for later
984   processing by BackupPC_link, embedded newlines in the file's path
985   will cause problems which are avoided by mangling.
986
987   The CGI script undoes the mangling, so it is invisibe to the user.
988   Of course, old (unmangled) backups are still supported by the CGI
989   interface.
990
991 * Various changes to the CGI interface, BackupPC_Admin:
992
993   + Added button that allows users to manually start a full dump in
994     addition to the existing incremental dump.
995
996   + Added display of file attributes when browsing backups.
997
998   + Added an optional holdoff time specified by the user when canceling
999     a backup. BackupPC will not attempt any new backups for at least the
1000     specified time. This holdoff time can be changed whether or not a
1001     backup is running.
1002
1003   + Added supports for file mangling, and correct merging of unfilled
1004     backups from mangled or unmangled (and compressed or uncompressed)
1005     fulls when browsing or restoring.
1006
1007   + Only displays a "Start Incr Backup" button if there are already some
1008     backups.
1009
1010   + For DHCP hosts, when a user tries to manually start a backup, add
1011     a check for the netbios name of both the host the request came
1012     from (REMOTE_ADDR) and the last known DHCP address for that host
1013     to see if either address matches the host. If not, an error
1014     message is display. The previous behavior was that only requests
1015     from the client itself succeeded, and requests from other machines
1016     quietly failed.
1017
1018 * Changed the version numbering to X.Y.Z, instead of X.0Y. This release
1019   is 1.4.0. The first digit is for major new releases, the middle digit
1020   is for significant feature releases and improvements, and the last
1021   digit is for bug fixes. You should think of the old 1.00, 1.01, 1.02
1022   and 1.03 as 1.0.0, ..., 1.3.0.
1023
1024 * BackupPC and the CGI script BackupPC_Admin now check that the effective
1025   user id is correct to avoid accidentally launching BackupPC as the
1026   wrong user or detecting CGI configuration problems.  This behavior
1027   can be turned off using the $Conf{BackupPCUserVerify} option.
1028
1029 * In numerous places changed "Smb" to "Xfer" (eg: log file names) to
1030   support generic names for both smb and tar transport methods.  The
1031   CGI script checks for old names for backward compatibility.
1032
1033 * Major changed to Backup_dump to support new tar transport.  All transport
1034   specific code moved into BackupPC::Xfer::Smb and BackupPC::Xfer::Tar
1035   objects.
1036
1037 * Added workaround for a bug in Samba's smbclient for files between 2GB
1038   and 4GB.  The file size in the tar header is incorrect.  This allows
1039   files up to 4GB to work with smbclient, rather than 2GB.  To support
1040   files larger than 2GB you must make sure perl is compiled with the
1041   uselargefiles option (use "perl -V | egrep largefiles" to check) and
1042   the pool directory must be on a file system that supports large files.
1043
1044 * Moved the pool writing code into a module BackupPC::PoolWrite.  This
1045   allows the clever file pool checking (digest, uncompressing, comparing
1046   etc with minimum disk IO) to be used easily in multiple places (eg: it
1047   is now used for writing attribute files so they can be pooled).
1048
1049 * Changed MD5 to Digest::MD5 to avoid use of the depreceated MD5 module.
1050
1051 * Shortened default $Conf{MyPath} so that perl's taint mode is more likely
1052   to be happy.  The old $Conf{MyPath} contained /usr/local/bin, which
1053   on one user's machine was world writable and perl -T correctly
1054   complained about it.
1055
1056 * Fixed ping command options in Lib.pm so that it works on OpenBSD.
1057   Thanks to Kyle Amon for sending the fix.  Decided to move the
1058   ping options from Lib.pm into config.pl (as $Conf{PingArgs}) and
1059   now configure.pl tries to come up with a sensible default based on
1060   the OS.
1061
1062 * Fixed argument checking in BackupPC_tarExtract to allow '$' in the
1063   share name (eg: C$).  Thanks to Jules Agee for this fix.  Also
1064   changed the default config.pl so that single quotes are used
1065   everywhere so that people don't get tripped up putting '$' inside
1066   double-quoted strings.
1067
1068 #------------------------------------------------------------------------
1069 # Version 1.03, 9 Dec 2001
1070 #------------------------------------------------------------------------
1071
1072 * BackupPC now has full support for compression.  There are now two
1073   pool areas, the original pool for uncompressed files, and cpool for
1074   compressed files. The compression is done by Compress::Zlib.
1075   Compression reduces the pool disk usage by around 40%, although your
1076   mileage may vary.  Compression is optional and can also be specified on
1077   a per-PC basis (although this will cost more pool storage since many
1078   backup files will have to be stored in both compressed and
1079   uncompressed forms.
1080
1081 * A new script, BackupPC_compressPool, can be run to compress the entire
1082   pool.  This is used once to migrate all the pool data from uncompressed
1083   to compressed on existing installations.  Read the documentation
1084   (Installing BackupPC/Compressing an existing pool) before running
1085   BackupPC_compressPool!
1086
1087   Alternatively, compression can simply be turned on and all new backups
1088   will be compressed. Both old (uncompressed) and new (compressed)
1089   backups can be browsed and viewed. Eventually, the old backups will
1090   expire and all the pool data will be compressed.  However, until the
1091   old backups expire, this approach could require 60% or more additional
1092   pool storage space to store both uncompressed and compressed versions
1093   of the backup files.
1094
1095 * Significant improvements to the cgi interface, BackupPC_Admin:
1096
1097     - much better layout navigation
1098     - handles compressed backup files and compressed log files
1099     - handles unfilled incremental dumps
1100     - better backup directory browsing navigation
1101     - reports compression statistics
1102     - $Conf{CgiDateFormatMMDD} allows you to set date format (MM/DD or DD/MM)
1103     - Additional customization with $Conf{CgiHeaderFontType},
1104       $Conf{CgiHeaderFontSize}, $Conf{CgiNavBarBgColor}, and
1105       $Conf{CgiHeaderBgColor}.
1106
1107 * Eliminated BackupPC_queueAll.  BackupPC directly reads the hosts
1108   file and queues the PCs itself.  Like config.pl, BackupPC will
1109   re-read the hosts file on each wakeup if its modification time
1110   changes, or upon a SIGHUP.  This also makes for better behavior
1111   when adding a host: if you add hosts, simply send a SIGHUP to
1112   BackupPC or wait for the next wakeup.
1113
1114 * BackupPC_dump now compresses the SmbLOG file if compression is enabled.
1115
1116 * BackupPC_dump keeps track of compressed file sizes so that compression
1117   statistics can be reported by the cgi interface.
1118
1119 * Aging of old log files now handles compressed log files (.z extension).
1120
1121 * Added configuration option $Conf{IncrFill} to specify whether
1122   incremental dumps should be filled in.  Old behavior was that
1123   filling was on.  Now it's optional.  See config.pl for more
1124   details.
1125
1126 * BackupPC_nightly now cleans and generates statistics for both
1127   the uncompressed pool and compressed pool (cpool).
1128
1129 * Added new utility script BackupPC_zcat that can be used to
1130   uncompresses BackupPC files.
1131
1132 * configure.pl offers various options related to compression,
1133   depending upon whether this is a new install or upgrade,
1134   and whether or not Compress::Zlib is installed.
1135
1136 * configure.pl now makes a backup copy of config.pl before
1137   config.pl is updated.
1138
1139 * added three new fields to the backups file to handle optional
1140   filling and compression stats.
1141
1142 * Added -e option to BackupPC_dump.  BackupPC now invokes BackupPC_dump -e
1143   on each dhcp host once each night to verify that very old backups are
1144   expired.  This ensures that very old backups are expired even if
1145   the dhcp host has not been on the network for a long time.
1146
1147 * fixed bug in BackupPC::FileZIO.pm that required Compress::Zlib,
1148   even if compression was off.  Thanks to Steve Holmes for reporting
1149   this.
1150
1151 * fixed bug that caused a BackupPC queue to get blocked when a backup
1152   cancel attempt was made during the BackupPC_link phase.
1153
1154 #------------------------------------------------------------------------
1155 # Version 1.02, 28 Oct 2001.
1156 #------------------------------------------------------------------------
1157
1158 * Added new script BackupPC_tarExtract to extract the smbclient tar
1159   archive. This reduces disk writes by perhaps 90-95% and disk reads by
1160   50%. Previously, tar was used to extract and write everything to disk.
1161   Then BackupPC_dump would read enough of each file to compute the MD5
1162   digest, and then compare the full file with candidate pool files.  So
1163   for each 1MB file that matches a single file in the pool, there would
1164   be 1MB of disk writes and 2MB of disk reads (to compare two 1MB files).
1165
1166   BackupPC_tarExtract instead extracts the archive using a 1MB memory
1167   buffer.  This allows the MD5 digest to be computed without touching the
1168   disk.  Next, any potential pool file compares are done by comparing the
1169   pool file against the incoming tar data in memory, which only requires
1170   the pool file to be read.  So for each 1MB file that matches a single
1171   file in the pool, there are now no disk writes, and only 1MB of reads.
1172   BackupPC_tarExtract handles arbitrary size files and repeated
1173   potential pool matches.  If the incoming file doesn't match the pool
1174   then it is written to disk (once the pool is mature this happens maybe
1175   5-10% of the time).
1176
1177 * Substantial changes to BackupPC_dump:
1178
1179     + BackupPC_tarExtract is now used in place of tar.
1180
1181     + BackupPC_dump now reads the output from both smbclient and
1182       BackupPC_tarExtract and merges them into SmbLOG.
1183
1184     + Named pipes are no longer used to connect smbclient to tar
1185       (now BackupPC_tarExtract).  Regular pipes are used instead.
1186       This avoids the need to system mknod or mkfifo.
1187
1188     + Locked files on the client that can't be read by smbclient
1189       previously were filled with 0x0 bytes by smbclient, meaning
1190       tar extracted a useless file filled with 0x0 bytes.  Now,
1191       BackupPC_dump watches the output of smbclient and removes
1192       any files that smbclient couldn't read.  This avoids storing
1193       useless files.  It tries to replace such files with a hard link
1194       to a previous dump.  These actions appear in the log file.
1195
1196 * added new module lib/BackupPC/FileZIO.pm. This handles pool file
1197   I/O and is used by BackupPC_tarExtract.  BackupPC::FileIO supports
1198   reading and writing compressed and regular files and provides all the
1199   hooks for compression support in BackupPC (should be supported in next
1200   version). BackupPC::FileIO also does efficient writing of files that
1201   contain leading 0x0 bytes (by seeking past the 0x0 bytes). This is
1202   helpful when smbclient reads a locked file, and it fills the tar
1203   output with a file of the correct size but all 0x0.  Such files will be
1204   later removed by BackupPC_dump.  But in the meantime, BackupPC::FileIO
1205   writes such files efficiently (as sparse files), meaning just a few
1206   blocks of disk space will be needed even if the file is large.
1207
1208 * alive/dead counting for blackout now works correctly for DHCP hosts.
1209
1210 * BackupPC resets activeJob on startup, to fix bug when BackupPC was
1211   killed and restarted with backups running.
1212
1213 * added extra non blocking select() in BackupPC to make sure the socket
1214   reads don't block.
1215
1216 * BackupPC avoids queuing multiple BackupPC_queueAll's on the CmdQueue.
1217
1218 * Updated BackupPC_sendEmail to correctly parse the locked file
1219   error from 2.2.1a smbclient, so that missing Outlook file emails
1220   can be correctly sent.
1221
1222 * Changed HostInfoRead() in lib/BackupPC/Lib.pm to lowercase the
1223   hostname read from the hosts file.
1224
1225 * BackupPC_Admin provides general summary when the host name is empty.
1226
1227 * configure.pl (and BackupPC) now requires perl 5.6.0 or later.
1228
1229 * configure.pl complains if BackupPC is already running, reminding you
1230   to stop it before upgrading.
1231
1232 * updated documentation, and fixed auto-insertion of config.pl into
1233   BackupPC.pod (previously the last config parameter was left out of
1234   BackupPC.pod).
1235
1236 #------------------------------------------------------------------------
1237 # Version 1.01, 30 Sep 2001
1238 #------------------------------------------------------------------------
1239
1240 * Documentation cleanup in README, doc/BackupPC.pod, conf/config.pl.
1241
1242 * BackupPC_sendMail now reads the optional per-PC config file, allowing
1243   email configuration parameters to be set on a per-PC basis.
1244
1245 * Removed the unused 4096-length MD5 digest code in lib/BackupPC/Lib.pm.
1246
1247 #------------------------------------------------------------------------
1248 # Version 1.00, 21 Sep 2001
1249 #------------------------------------------------------------------------
1250
1251 * Initial release of BackupPC on sourceforge.net.