how to recursively transfer folders between two remote servers on a local machine [duplicate]












0
















This question already has an answer here:




  • Transfer files between two remote SSH servers

    4 answers




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?










share|improve this question















marked as duplicate by pa4080, Elder Geek, Charles Green, karel, Pilot6 Feb 21 at 8:28


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.























    0
















    This question already has an answer here:




    • Transfer files between two remote SSH servers

      4 answers




    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?










    share|improve this question















    marked as duplicate by pa4080, Elder Geek, Charles Green, karel, Pilot6 Feb 21 at 8:28


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.





















      0












      0








      0









      This question already has an answer here:




      • Transfer files between two remote SSH servers

        4 answers




      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?










      share|improve this question

















      This question already has an answer here:




      • Transfer files between two remote SSH servers

        4 answers




      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?





      This question already has an answer here:




      • Transfer files between two remote SSH servers

        4 answers








      server ssh rsync scp






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 19 at 10:04







      Steven

















      asked Feb 19 at 9:59









      StevenSteven

      12




      12




      marked as duplicate by pa4080, Elder Geek, Charles Green, karel, Pilot6 Feb 21 at 8:28


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









      marked as duplicate by pa4080, Elder Geek, Charles Green, karel, Pilot6 Feb 21 at 8:28


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
























          1 Answer
          1






          active

          oldest

          votes


















          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






          share|improve this answer
























          • I'm getting the following error ssh: Could not resolve hostname ftp: Temporary failure in name resolution. The FTP only server I can access via http. The SFTP one I cannot access via http (error 550) and when I post the url in filezilla it reverts to the home user directory, rather than the linked one.

            – Steven
            Feb 19 at 10:12













          • what did you type exactly?

            – j-money
            Feb 19 at 10:14











          • scp -r username:password@hosting:21/media/sdc1/user username:password@hosting:21

            – Steven
            Feb 19 at 10:19






          • 1





            I'm not sure how you transformed user@server... to user:password@hosting

            – j-money
            Feb 19 at 10:24











          • I do not have ssh server with password authentication to test, probably the syntax could be scp -r ssh://user:pwd@host ....

            – pa4080
            Feb 20 at 18:27


















          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          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






          share|improve this answer
























          • I'm getting the following error ssh: Could not resolve hostname ftp: Temporary failure in name resolution. The FTP only server I can access via http. The SFTP one I cannot access via http (error 550) and when I post the url in filezilla it reverts to the home user directory, rather than the linked one.

            – Steven
            Feb 19 at 10:12













          • what did you type exactly?

            – j-money
            Feb 19 at 10:14











          • scp -r username:password@hosting:21/media/sdc1/user username:password@hosting:21

            – Steven
            Feb 19 at 10:19






          • 1





            I'm not sure how you transformed user@server... to user:password@hosting

            – j-money
            Feb 19 at 10:24











          • I do not have ssh server with password authentication to test, probably the syntax could be scp -r ssh://user:pwd@host ....

            – pa4080
            Feb 20 at 18:27
















          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






          share|improve this answer
























          • I'm getting the following error ssh: Could not resolve hostname ftp: Temporary failure in name resolution. The FTP only server I can access via http. The SFTP one I cannot access via http (error 550) and when I post the url in filezilla it reverts to the home user directory, rather than the linked one.

            – Steven
            Feb 19 at 10:12













          • what did you type exactly?

            – j-money
            Feb 19 at 10:14











          • scp -r username:password@hosting:21/media/sdc1/user username:password@hosting:21

            – Steven
            Feb 19 at 10:19






          • 1





            I'm not sure how you transformed user@server... to user:password@hosting

            – j-money
            Feb 19 at 10:24











          • I do not have ssh server with password authentication to test, probably the syntax could be scp -r ssh://user:pwd@host ....

            – pa4080
            Feb 20 at 18:27














          3












          3








          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






          share|improve this answer













          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







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 19 at 10:03









          j-moneyj-money

          1,221418




          1,221418













          • I'm getting the following error ssh: Could not resolve hostname ftp: Temporary failure in name resolution. The FTP only server I can access via http. The SFTP one I cannot access via http (error 550) and when I post the url in filezilla it reverts to the home user directory, rather than the linked one.

            – Steven
            Feb 19 at 10:12













          • what did you type exactly?

            – j-money
            Feb 19 at 10:14











          • scp -r username:password@hosting:21/media/sdc1/user username:password@hosting:21

            – Steven
            Feb 19 at 10:19






          • 1





            I'm not sure how you transformed user@server... to user:password@hosting

            – j-money
            Feb 19 at 10:24











          • I do not have ssh server with password authentication to test, probably the syntax could be scp -r ssh://user:pwd@host ....

            – pa4080
            Feb 20 at 18:27



















          • I'm getting the following error ssh: Could not resolve hostname ftp: Temporary failure in name resolution. The FTP only server I can access via http. The SFTP one I cannot access via http (error 550) and when I post the url in filezilla it reverts to the home user directory, rather than the linked one.

            – Steven
            Feb 19 at 10:12













          • what did you type exactly?

            – j-money
            Feb 19 at 10:14











          • scp -r username:password@hosting:21/media/sdc1/user username:password@hosting:21

            – Steven
            Feb 19 at 10:19






          • 1





            I'm not sure how you transformed user@server... to user:password@hosting

            – j-money
            Feb 19 at 10:24











          • I do not have ssh server with password authentication to test, probably the syntax could be scp -r ssh://user:pwd@host ....

            – pa4080
            Feb 20 at 18:27

















          I'm getting the following error ssh: Could not resolve hostname ftp: Temporary failure in name resolution. The FTP only server I can access via http. The SFTP one I cannot access via http (error 550) and when I post the url in filezilla it reverts to the home user directory, rather than the linked one.

          – Steven
          Feb 19 at 10:12







          I'm getting the following error ssh: Could not resolve hostname ftp: Temporary failure in name resolution. The FTP only server I can access via http. The SFTP one I cannot access via http (error 550) and when I post the url in filezilla it reverts to the home user directory, rather than the linked one.

          – Steven
          Feb 19 at 10:12















          what did you type exactly?

          – j-money
          Feb 19 at 10:14





          what did you type exactly?

          – j-money
          Feb 19 at 10:14













          scp -r username:password@hosting:21/media/sdc1/user username:password@hosting:21

          – Steven
          Feb 19 at 10:19





          scp -r username:password@hosting:21/media/sdc1/user username:password@hosting:21

          – Steven
          Feb 19 at 10:19




          1




          1





          I'm not sure how you transformed user@server... to user:password@hosting

          – j-money
          Feb 19 at 10:24





          I'm not sure how you transformed user@server... to user:password@hosting

          – j-money
          Feb 19 at 10:24













          I do not have ssh server with password authentication to test, probably the syntax could be scp -r ssh://user:pwd@host ....

          – pa4080
          Feb 20 at 18:27





          I do not have ssh server with password authentication to test, probably the syntax could be scp -r ssh://user:pwd@host ....

          – pa4080
          Feb 20 at 18:27



          Popular posts from this blog

          flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

          Mangá

          Eduardo VII do Reino Unido