tags:

views:

496

answers:

2

I'm looking for a way to upload files/dirs structure from one server to another.. The only way it's possible in my case is SFTP upload, is there any easy way to upload it, using script or something without making archive of files/dirs, I want to recreate on remote server?

Thank you!

+2  A: 

Perhaps a solution could be found using recursive scp (scp -r)? Or are you limited explicitly to sftp only?

There's also a client named lftp which has sftp and scripting support - much like batch file I would imagine - a list of ftp commands. (http://lftp.yar.ru/lftp-man.html)

John Barrett
A: 

edtFTPj/PRO is a Java SFTP client that has a comprehensive scripting engine. Being Java you can run it on any platform where Java is supported.

Here's some more details on the scripting support. It has an 'mput' command that uploads all the files in the current directory to the remote directory.

Recursive transfers aren't yet supported, but could easily be added if required - email support if you are interested.

Bruce Blackshaw