put -r not working in sftp to copy the whole directory from one server to another server
Hi all,
We are moving from AIX 7100-03-04-1441 to Oracle Linux 6.5 2.6.32-573.22.1.el6.x86_64. We use put -r inside sftp to copy the directory and its content from the local server to the remote server. But in Linux, the command put -r throws the below error : Invalid flag -r. Is recursive put not supported in newer versions of Linux? Is there any other way we can copy the directory and its content through sftp? Thanks. |
http://unix.stackexchange.com/questi...er-a-directory
I would suggest you rsync too. |
Hi,
Getting the below error while using rsync : rsync: connection unexpectedly closed (0 bytes received so far) [sender]rsync error: unexplained error (code 255) at io.c(600) [sender=3.0.6] |
what did you try at all?
|
Sorry for not providing the details, just was doing a test.
trying to sync test1 dir from below path in lserver1(app01.prz.ap.com) to rserver (app02.prz.ap.com) /ngs/app/essbase/test1 rsync -a test1 user@app02.prz.ap.com:/home/essbase/Appfiles/test1 asks for logging into app02.prz.ap.com and the gives the error once the password is provided : got the error :rsync: connection unexpectedly closed (0 bytes received so far) [sender]rsync error: unexplained error (code 255) at io.c(600) [sender=3.0.6 Thanks. |
Quote:
Also, you say that you're running the command from /ngs/app/essbase/test1, but you then rsync a directory in the current directory called test1. Is your local directory structure really /ngs/app/essbase/test1/test1? |
you can also try rsync --debug .... to check what's happening
|
All times are GMT -5. The time now is 05:42 PM. |