64 |
|
|
65 |
# fake ping when restoring |
# fake ping when restoring |
66 |
$Conf{PingCmd} = '$pingPath -c 1 localhost', |
$Conf{PingCmd} = '$pingPath -c 1 localhost', |
67 |
|
$Conf{ClientNameAlias} = 'localhost'; |
68 |
|
|
69 |
$Conf{TarClientCmd} = 'zcat __restore_path__'; |
$Conf{TarClientCmd} = 'zcat __restore_path__'; |
70 |
|
|
90 |
if (-e $restore_path) { |
if (-e $restore_path) { |
91 |
unlink $restore_path || die "can't remove $restore_path: $!\n"; |
unlink $restore_path || die "can't remove $restore_path: $!\n"; |
92 |
} |
} |
93 |
link $path, $restore_path || die "can't create link $path -> $restore_path: $!\n"; |
symlink $path, $restore_path || die "can't create link $path -> $restore_path: $!\n"; |
94 |
|
|
95 |
my $user = $host_info->{$host}->{user} || die "can't get user for host $host"; |
my $user = $host_info->{$host}->{user} || die "can't get user for host $host"; |
96 |
|
|