When I am trying to sftp the directory structure ( Here the directory is having other directories recursively). I am not getting all the files.
Can you please suggest me the way to do this?
Another way to do this ( and it skips over files that are already copied )
rsync -av your/local/dir/ user@remotehost:/your/remote/dir/
Use scp -r
:
scp -r /your/local/dir user@remotehost:/your/remote/dir
Recent versions of OpenSSH sftp client also support recursive transfers:
sftp> get -r /remote/path /local/path
Though, my preferred almost-any-protocol command-line client is lftp!