Net::SFTP::Recursive

Perl class for transferring files recursively and securely
Download

Net::SFTP::Recursive Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Publisher Name:
  • Geo Tiger
  • Publisher web site:
  • http://search.cpan.org/~geotiger/

Net::SFTP::Recursive Tags


Net::SFTP::Recursive Description

Perl class for transferring files recursively and securely Net::SFTP::Recursive is a Perl module that contains methods to transfer files recursively and securely using Net::SFTP and Net::SSH::Perl.Net::SFTP is a pure-Perl implementation of the Secure File Transfer Protocol (SFTP)--file transfer built on top of the SSH protocol. Net::SFTP uses Net::SSH::Perl to build a secure, encrypted tunnel through which files can be transferred and managed. It provides a subset of the commands listed in the SSH File Transfer Protocol IETF draft, which can be found at http://www.openssh.com/txt/draft-ietf-secsh-filexfer-00.txt.SFTP stands for Secure File Transfer Protocol and is a method of transferring files between machines over a secure, encrypted connection (as opposed to regular FTP, which functions over an insecure connection). The security in SFTP comes through its integration with SSH, which provides an encrypted transport layer over which the SFTP commands are executed, and over which files can be transferred. The SFTP protocol defines a client and a server; only the client, not the server, is implemented in Net::SFTP.Because it is built upon SSH, SFTP inherits all of the built-in functionality provided by Net::SSH::Perl: encrypted communications between client and server, multiple supported authentication methods (eg. password, public key, etc.).This class extends from Net::SFTP and inherents all the methods from it, plus more methods: rget, rput, and local_ls.SYNOPSIS use Net::SFTP::Recursive; my g = (user=>'usr_id', password=>'secret', local_dir=>'/ftp/dir', remote_dir=>'/remote/dir', file_filter=>'ftp*'); my $sftp = Net::SFTP::Recursive->new; # or combine the two together my $sftp = Net::SFTP::Recursive->new(g); # transfer files from local to remote $sftp->rput('/my/local/dir','/remote/dir'); # transfer files from remote to local $sftp->rget('/pub/remotel/dir','/local/dir'); # pass the output to &my_cb method to process $sftp->rget('/pub/mydir', '/local/dir', \&my_cb); # with file and dir filters $sftp->rget('/pub/mydir', '/local/dir', \&my_cb, {file_pat=>'pdf$', dir_pat=>'^f'}); # you can also use a callback method for get or put method as well $sftp->rget('/remote/dir','/my/dir',\&my_cb,{cb4get=>\&myget_cb}); $sftp->rput('/my/dir','/remote/dir',\&my_cb,{cb4put=>\&mysub_cb}); Requirements: · Perl


Net::SFTP::Recursive Related Software