#
#========================================================================
#
-# Version 1.5.0, released 2 Aug 2002.
+# Version 2.0.0beta3, released 1 Jun 2003.
#
# See http://backuppc.sourceforge.net.
#
#========================================================================
use strict;
-use lib "__INSTALLDIR__/lib";
+use lib "/usr/local/BackupPC/lib";
use BackupPC::Lib;
use BackupPC::Attrib;
use BackupPC::PoolWrite;
print("usage: $0 <host>\n");
exit(1);
}
-if ( $ARGV[0] !~ /^([\w\.-]+)$/ ) {
+if ( $ARGV[0] !~ /^([\w\.\s-]+)$/ ) {
print("$0: bad host name '$ARGV[0]'\n");
exit(1);
}
#
$CurrDumpDir = "$Dir/$Backups[$num]{num}";
$Compress = $Backups[$num]{compress};
- if ( open(NEW, "$Dir/NewFileList.$Backups[$num]{num}") ) {
+ if ( open(NEW, "<", "$Dir/NewFileList.$Backups[$num]{num}") ) {
while ( <NEW> ) {
chomp;
next if ( !/(\w+) (\d+) (.*)/ );