27 |
use BackupPC::Lib; |
use BackupPC::Lib; |
28 |
|
|
29 |
my $host = 'restore'; |
my $host = 'restore'; |
30 |
|
my $share = '/etc'; |
31 |
|
|
32 |
# connect to BackupPC_server |
# connect to BackupPC_server |
33 |
|
|
59 |
my $conf_restore = <<'_END_OF_CONF_'; |
my $conf_restore = <<'_END_OF_CONF_'; |
60 |
|
|
61 |
$Conf{XferMethod} = 'tar'; |
$Conf{XferMethod} = 'tar'; |
62 |
|
$Conf{TarShareName} = '__share__'; |
63 |
|
|
64 |
$Conf{TarFullArgs} = 'echo "full backups are not supported in restore!" ; exit 1'; |
$Conf{TarFullArgs} = 'echo "full backups are not supported in restore!" ; exit 1'; |
65 |
$Conf{TarIncrArgs} = ''; |
$Conf{TarIncrArgs} = ''; |
75 |
_END_OF_CONF_ |
_END_OF_CONF_ |
76 |
|
|
77 |
$conf_restore =~ s/__restore_path__/$restore_path/gs; |
$conf_restore =~ s/__restore_path__/$restore_path/gs; |
78 |
|
$conf_restore =~ s/__share__/$share/gs; |
79 |
|
|
80 |
my $config_file = "$bpc->{TopDir}/conf/${host}.pl"; |
my $config_file = "$bpc->{TopDir}/conf/${host}.pl"; |
81 |
|
|