Dackup::Target::SSH - Flexible file backup remote hosts via SSH
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;
This is a Dackup target for a remote host via SSH.
Leon Brocard <firstname.lastname@example.org>
Copyright (C) 2009, Leon Brocard.
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.