corrected detection if host exists, new test target restore
git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@343
8392b6e1-25fa-0310-8288-
cc32f8e212ea
burn: test
psql -c "delete from archive_burned" backuppc
sudo /data/backuppc/bin/BackupPC_burnArchiveCLI
+
+restore: test
+ sleep 1
+ sudo -u backuppc ./bin/BackupPC_recover_from_increments /data/backuppc/temp/llin_etc*
my $TopDir = $bpc->TopDir();
-print Dumper(\%Conf);
+#print Dumper(\%Conf);
# check if host exists
-die "host $host is not found" unless ($bpc->HostInfoRead( $host ));
+my $host_info = $bpc->HostInfoRead( $host );
+#print Dumper($host_info, $bpc->HostInfoRead( 'localhost' ));
+die "host '$host' is not found\n" unless ($host_info->{$host});
# create restore host configuration