Need to transfer a folder from ServerA to Ser

Closed
pensium Posts 6 Registration date Thursday February 21, 2008 Status Member Last seen May 17, 2009 - Feb 27, 2008 at 05:08 AM
[Dal] Posts 6198 Registration date Tuesday September 14, 2004 Status Contributor Last seen December 13, 2024 - Feb 27, 2008 at 07:31 AM
Hello,



there has 2 Linux servers, we called it ServerA and ServerB in different location. ServerA has a folder which contain different type of file (jpg, zip, doc ...etc) and it need to transfer to ServerB. Both server is runing SSH.

1) FTP is not working on it becasue SSH
2) SFTP can't run on it because i m transfer a folder, not a file

and I believe the only chance is using scp, is anyone know the command line to running this . thx


example :(john is the folder need to be transfer)



thanks for helping me out

2 responses

unik1 Posts 8 Registration date Thursday February 21, 2008 Status Member Last seen May 17, 2009 8
Feb 27, 2008 at 05:08 AM
ssh has nothing to do with ftp. Both can work simultaneously. Here is the usage



cheers hope this will help!
6
[Dal] Posts 6198 Registration date Tuesday September 14, 2004 Status Contributor Last seen December 13, 2024 31
Feb 27, 2008 at 07:31 AM
Something might be missing ;-)

To get help on the usage of a Linux command, you use the manual pages. For "scp", you type this in a terminal:

man scp

Now, as an example, suppose that your data is on ServerA under /home/john/ and you want to transfer it to ServerB logging in ServerB as user "paul" and saving the data under an existing directory located there /home/paul/john-bak/, you would do this on ServerA:

cd /home
scp -r john/ paul@ServerB:/home/paul/john-bak/



Dal
5