Re: [Ssh-sftp-perl-users] RE: Net::SFTP copying in 8192-byte chunks?
Brought to you by:
dbrobins
From: Ofer N. <on...@sh...> - 2005-03-09 18:04:42
|
Mark A. Fuller wrote: >From: Daniel Werner <dan...@ds...> > > >>Is it possible that Net::SFTP (or possibly the underlying Net::SSH::Perl) just isn't good for transferring large files? >> >> > >I've not transferred large files. But, I remember someone posted a long time ago similar speed problems with large files. > >If it's a showstopper for you, you can also use Expect.pm to drive an sftp binary (compiled, openssh.org module) interactively. I posted an example a few months ago about how to get started with this. It's a little more complicated. But, one benefit is that you're driving the same executable you can execute from the command line. If something doesn't work as expected, you can test directly with the module. > > You can also try using SCP, which is yet another secure filte transfer protocol. There is an Net::SCP module, but unfortunately, it's just a wrapper around a system call to the scp utility. It worked when I use it. It's a shame we have to go outside perl for this stuff, though. If Net::SSH::Perl is not the speed bottleneck you're suggesting it might be, then I can imagine it would be easy to rewrite Net::SCP using Net::SSH::Perl. -ofer |