NAME
Dackup::Target::SSH - Flexible file backup remote hosts via SSH
SYNOPSIS
use Dackup;
use Net::OpenSSH;
my $ssh = Net::OpenSSH->new('acme:password@backuphost');
$ssh->error
and die "Couldn't establish SSH connection: " . $ssh->error;
my $source = Dackup::Target::Filesystem->new(
prefix => '/home/acme/important/' );
my $destination = Dackup::Target::SSH->new(
ssh => $ssh,
prefix => '/home/acme/important_backup/'
);
my $dackup = Dackup->new(
source => $source,
destination => $destination,
delete => 0,
);
$dackup->backup;
DESCRIPTION
This is a Dackup target for a remote host via SSH.
AUTHOR
Leon Brocard <acme@astray.com>
COPYRIGHT
Copyright (C) 2009, Leon Brocard.
LICENSE
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.