r10317@llin: dpavlin | 2006-03-07 17:24:19 +0100
authordpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Tue, 7 Mar 2006 16:24:26 +0000 (16:24 +0000)
committerdpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Tue, 7 Mar 2006 16:24:26 +0000 (16:24 +0000)
 added TarShareName to re-create share name

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

bin/BackupPC_recover_from_increments

index 2631e20..f9a3eac 100755 (executable)
@@ -27,6 +27,7 @@ use lib "/data/backuppc/lib";
 use BackupPC::Lib;
 
 my $host = 'restore';
+my $share = '/etc';
 
 # connect to BackupPC_server
 
@@ -58,6 +59,7 @@ my $restore_path = "$Conf{InstallDir}/$Conf{GzipTempDir}/${host}-restore.tar.gz"
 my $conf_restore = <<'_END_OF_CONF_';
 
 $Conf{XferMethod} = 'tar';
+$Conf{TarShareName} = '__share__';
 
 $Conf{TarFullArgs} = 'echo "full backups are not supported in restore!" ; exit 1';
 $Conf{TarIncrArgs} = '';
@@ -73,6 +75,7 @@ $Conf{TarClientCmd} = 'zcat __restore_path__';
 _END_OF_CONF_
 
 $conf_restore =~ s/__restore_path__/$restore_path/gs;
+$conf_restore =~ s/__share__/$share/gs;
 
 my $config_file = "$bpc->{TopDir}/conf/${host}.pl";