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 <acme@astray.com>
Copyright (C) 2009, Leon Brocard.
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
To install Dackup, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dackup
CPAN shell
perl -MCPAN -e shell install Dackup
For more information on module installation, please visit the detailed CPAN module installation guide.