I want to use a program like rsync or scp to recursively transfer folders from one remote server to another on the shell. I connect from one server usually via sftp and the other via ftp, but I believe I can also ftp and ftp. I have the links to the desired directories. I tried a program like ftprush in windows, but it would connect to both servers, but wouldn't initiate the transfer. How can I do this?
Asked
Active
Viewed 1,527 times
1 Answers
3
I am a fan of scp
to copy things between servers (who would've thunk it...) (I really only use rsync
as a backup tool) I've never tried copying between two remote hosts, but I don't see any reason it wouldn't work
scp -r user1@server1:/path/to/folder user2@server2:/path/to/copy/to

j-money
- 2,382
user@server...
touser:password@hosting
– j-money Feb 19 '19 at 10:24scp -r ssh://user:pwd@host ...
. – pa4080 Feb 20 '19 at 18:27user@server:path
. Guess it's true, you learn something new everyday :D – j-money Feb 20 '19 at 19:48