- top level changes (README, Changes, makeDist, configure.pl) that v2_0_0beta0
authorcbarratt <cbarratt>
Mon, 24 Feb 2003 04:48:25 +0000 (04:48 +0000)
committercbarratt <cbarratt>
Mon, 24 Feb 2003 04:48:25 +0000 (04:48 +0000)
    cvs didn't commit last time.

ChangeLog
README
configure.pl
makeDist

index 1407309..418ea8b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 * Added internationalization (i18n) code from Xavier Nicollet,
   with additions from Guillaume Filion.  Voila!  BackupPC_Admin
   now supports English and French, and adding more languages is
-  now easy.
+  now easy.  New config paramater $Conf{Language} sets the language.
 
 * Added optional user-defined pre/post dump/restore commands, allowing
   things like database shutdown/startup for dumps.
 
+* Changed the way hosts are found.
+
+* Added $Conf{ClientNameAlias}, which allows the name of the physical
+  client machine to be set.  This allows several different backup
+  "hosts" to all refer to the same physical machine, which is
+  convenient if several different types of data need to be backed
+  up, or if different parameters are needed for different parts of
+  the host.
+
 * Replaced $Conf{PingArgs} with $Conf{PingCmd}, added $Conf{DfCmd},
   $Conf{NmbLookupCmd} allowing all these commands to be fully
-  configured.  Also, all commands (except smbclient) can also
-  now be fragments of perl code.
+  configured.  Also, all commands can also now be fragments of
+  perl code.
+
+* Moved all smbclient commands into the config.pl file so the specific
+  arguments can be customized.  New config parameters are
+  $Conf{SmbClientFullCmd}, $Conf{SmbClientIncrCmd} and
+  $Conf{SmbClientRestoreCmd}.
 
 * Added new BackupPC::View module that creates views of backups
   (handling merging etc).  Updated BackupPC_Admin, BackupPC_zipCreate
   and BackupPC_tarCreate to use BackupPC::View.  This removes lots
   of merging and mangling code from the higher-level code.
 
-* Added patch from Toby Johnson that allows additional users to be
+* Added code from Toby Johnson that allows additional users to be
   specified in the hosts file; these users can also view/start/stop
   and restore backups for that host.  Also added a new config
   setting $Conf{CgiNavBarAdminAllHosts} that allows all hosts to
   be listed in the left nav bar for admins.
 
+* Added $Conf{HardLinkMax} (default 31999) which sets the limit on
+  the maximum number of hardlinks per file in the pool.  If a file
+  ever gets to this number of links a new pool file is created to
+  handle additional links.
+
+* Added $Conf{PerlModuleLoad}, which allows optional additional perl
+  modules to be loaded.
+
+* Added $Conf{EMailUserDestDomain} and other EMail config settings to
+  allow language-specific default messages to be overridden.
+
+* Added BPC_FTYPE_DELETED to lib/BackupPC/Attrib.pm, allowing deleted
+  files to be represented in the attrib file correctly.
+
+* Added support for environment variable BPC_SMB_PASSWD, which is the
+  client's smb password.  This overrides the old environment variable
+  PASSWD.
+
+* Added taint cleanup for perl5.8 to lib/BackupPC/Lib.pm.
+
+* Changed $tar_unpack_header format in BackupPC_tarExtract to correctly
+  handle files with trailing spaces.
+
+* Added catching of SIG_PIPE to BackupPC_dump, and changed catch_signal
+  to ignore multiple signals of the same type.
+
+* Added reporting of the largest number of hardlinks in the pool to the
+  log file.
+
+* Adding reporting of syntax errors in the per-PC config.pl file.
+
+* Updated BackupPC_sendEmail to handle language-specific email messages.
+
+* Allow client (host) names to contain spaces.  Spaces in host names
+  need to be escaped via "\" in the hosts file.  The user of spaces in
+  host names is discouraged, but they should work.  One feature that
+  doesn't work with host names that contain spaces is the highlighting
+  of that name in the log file display in the CGI interface.  There are
+  no plans to fix this.
+
+* Renamed $Conf{SmbClientTimeout} to $Conf{ClientTimeout}.
+
+* Fixed all open() calls to use 3 argument form to fix handling of file
+  names with trailing whitespace.  Also fixed CGI interface so these
+  file names are displayed correctly.
+
 * Fixed new 2.0.0 CGI navigation bug that causes the top-level directory
   to have a URL "&share=//boot&dir=" instead of "&share=/boot&dir=/".
-  Reported by Pascal Schelcher.
+  Reported by Pascal Schelcher.  Fixed similar problem reported by
+  Doug Lytle.
 
 * Added "PerlTaintCheck On" to the mod_perl section in the docs,
   suggested by Tim Demarest.
diff --git a/README b/README
index 8dc7c8a..ca2bfd4 100644 (file)
--- a/README
+++ b/README
@@ -5,7 +5,7 @@
 
                             __RELEASEDATE__
 
-         Copyright (C) 2001-2002 Craig Barratt.  All rights reserved.
+         Copyright (C) 2001-2003 Craig Barratt.  All rights reserved.
 
       This program is free software; you can redistribute it and/or
       modify it under the terms of the GNU General Public License.
@@ -47,9 +47,9 @@ sites, additional permanent archives could be created by periodically
 backing up the server to tape.  A variety of Open Source systems are
 available for doing backup to tape.
 
-BackupPC is written in Perl and extracts backup data either via
-SMB (using Samba) or tar over ssh/rsh/nfs.  It is robust, reliable,
-well documented and freely available as Open Source on SourceForge.
+BackupPC is written in Perl and extracts backup data via SMB (using Samba),
+rsync, or tar over ssh/rsh/nfs.  It is robust, reliable, well documented
+and freely available as Open Source on SourceForge.
 
 FEATURES:
 --------
@@ -65,9 +65,11 @@ FEATURES:
     only 150GB is needed.
 
   - No client-side software is needed.  The standard smb protocol is used
-    to extract backup data on WinXX clients.  On linux clients, tar
-    over ssh/rsh/nfs is used to backup the data (or alternatively
-    Samba can be installed on the linux client to provide smb shares).
+    to extract backup data on WinXX clients.  On *nix clients, either rsync
+    or tar over ssh/rsh/nfs is used to backup the data.  Various alternatives
+    are possible: rsync can also be used with WinXX by running rsyncd/cygwin.
+    Similarly, smb could be used to backup *nix file systems if they are
+    exported as smb shares.
 
   - A powerful http/cgi user interface allows administrators to view log
     files, configuration, current status and allows users to initiate and
@@ -77,8 +79,8 @@ FEATURES:
     any backup directly from the CGI interface.  Zip or Tar archives
     for selected files or directories from any backup can also be
     downloaded from the CGI interface.  Finally, direct restore to
-    the client machine (using SMB or tar) for selected files or
-    directories is also supported from the CGI interface.
+    the client machine (using SMB, rsync or tar) for selected files
+    or directories is also supported from the CGI interface.
 
   - Supports mobile environments where laptops are only intermittently
     connected to the network and have dynamic IP addresses (DHCP).
@@ -114,16 +116,21 @@ The SourceForge project resides at:
 
     http://sourceforge.net/projects/backuppc
 
-You are encouraged to subscribe to either the backuppc-announce
-or backuppc-users mail list on sourceforge.net at either:
+You are encouraged to subscribe to any of the mail lists available
+on sourceforge.net:
 
     http://lists.sourceforge.net/lists/listinfo/backuppc-announce
     http://lists.sourceforge.net/lists/listinfo/backuppc-users
+    http://lists.sourceforge.net/lists/listinfo/backuppc-devel
 
 The backuppc-announce list is moderated and is used only for
 important announcements (eg: new versions).  It is low traffic.
-You only need to subscribe to one list: backuppc-users also
-receives any messages on backuppc-announce.
+You only need to subscribe to one of users and announce: backuppc-users
+also receives any messages on backuppc-announce.
+
+The backuppc-devel list is only for developers who are working on BackupPC.
+Do not post questions or support requests there.  But detailed technical
+discussions should happen on this list.
 
 To post a message to the backuppc-users list, send an email to
 
index 2761b34..ea152e8 100755 (executable)
@@ -33,7 +33,7 @@
 #
 #========================================================================
 #
-# Version __VERSION__, released __RELEASEDATE__.
+# Version 2.0.0_CVS, released 18 Jan 2003.
 #
 # See http://backuppc.sourceforge.net.
 #
@@ -472,6 +472,22 @@ if ( !defined($Conf{CgiURL}) ) {
     }
 }
 
+#
+# The smbclient commands have moved from hard-coded to the config file.
+# $Conf{SmbClientArgs} no longer exists, so merge it into the new
+# commands if it still exists.
+#
+if ( defined($Conf{SmbClientArgs}) ) {
+    if ( $Conf{SmbClientArgs} ne "" ) {
+        foreach my $param ( qw(SmbClientRestoreCmd SmbClientFullCmd
+                                SmbClientIncrCmd) ) {
+            $newConf->[$newVars->{$param}]{text}
+                            =~ s/(-E\s+-N)/$1 $Conf{SmbClientArgs}/;
+        }
+    }
+    delete($Conf{SmbClientArgs});
+}
+
 #
 # IncrFill should now be off
 #
index 0821a7e..bb591e1 100755 (executable)
--- a/makeDist
+++ b/makeDist
@@ -41,8 +41,8 @@ use File::Copy;
 
 umask(0022);
 
-my $Version     = "2.0.0_CVS";
-my $ReleaseDate = "18 Jan 2003";
+my $Version     = "2.0.0beta0";
+my $ReleaseDate = "23 Feb 2003";
 my $DistDir     = "dist/BackupPC-$Version";
 
 my @PerlSrc = qw(