r539@athlon: dpavlin | 2006-03-06 22:54:31 +0100
authordpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Wed, 26 Apr 2006 11:10:48 +0000 (11:10 +0000)
committerdpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Wed, 26 Apr 2006 11:10:48 +0000 (11:10 +0000)
 use temporary tar file under GzipTempDir, minor tweaks for config (still aborts backup)

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@352 8392b6e1-25fa-0310-8288-cc32f8e212ea

bin/BackupPC_recover_from_increments

index f9a3eac..cabc49c 100755 (executable)
@@ -54,7 +54,7 @@ die "host '$host' is not found, please add it to config/hosts configuration file
 
 # create restore host configuration
 
-my $restore_path = "$Conf{InstallDir}/$Conf{GzipTempDir}/${host}-restore.tar.gz";
+my $restore_path = "$Conf{InstallDir}/$Conf{GzipTempDir}/restore.tar.gz";
 
 my $conf_restore = <<'_END_OF_CONF_';
 
@@ -64,8 +64,11 @@ $Conf{TarShareName} = '__share__';
 $Conf{TarFullArgs} = 'echo "full backups are not supported in restore!" ; exit 1';
 $Conf{TarIncrArgs} = '';
 
-# fake ping when restoring
-$Conf{PingCmd} = '$pingPath -c 1 localhost',
+# disable ping
+$Conf{PingCmd} = '';
+# work-around for Backup aborted because of CorrectHostCheck
+$Conf{FixedIPNetBiosNameCheck} = 0;
+$Conf{NmbLookupCmd} = '';
 $Conf{ClientNameAlias} = 'localhost';
 
 $Conf{TarClientCmd} = 'zcat __restore_path__';