Think about Loose Coupling | |
PerlMonks |
recursive SFTPby xorl (Deacon) |
on Apr 08, 2009 at 20:18 UTC ( [id://756449]=perlquestion: print w/replies, xml ) | Need Help?? |
xorl has asked for the wisdom of the Perl Monks concerning the following question: So I've decided my file transfer problem can be solved with SFTP (I'd prefer SCP, but you can see from my other posts that I've run into problems with it and I'll just say my last solution broke and I'm going to just give up on SCP for now). While Net::SFTP looked like it would be great, it doesn't work since I need something that easily does a recursive upload. I then found Net::SFTP::Recursive this sounded wonderful until I actually read the documentation. It appears you can only transfer files from the remote server to the local box. I need to go from local to remote. Is there another SFTP module that can do a recursive upload easily? I tried to write something my self using File::Find to find all the files on the local box, but I ran into trouble with Net::SFTP not creating subdirectories and it started getting really complicated with figuring out the correct directory anyway. If I have to write something myself, how do I get around these problem? So to summarize I want to know:
Thanks in advance.
Back to
Seekers of Perl Wisdom
|
|