Results 1 to 10 of 10
  1. #1
    Join Date
    Aug 2003
    Location
    Boston:Mass
    Posts
    231

    Using SCP to Transfer files from server to server?

    Hello WHT,
    Im trying to transfer over 2gb from one server to the next. I cant seem to get SCP to work right. Could someone who knows how to use it give me an example command to start a transfer. using "username" as username, "password" as password and "domain" as domain. All the files being transferred are in one directory "html".

    This would help me alot, thanks!

  2. #2
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    785

  3. #3
    Join Date
    Aug 2003
    Location
    Boston:Mass
    Posts
    231
    heres what im confused about:

    %

    and

    is "directory" the source, or destination? And how does it know what server to xfer from...wheres the domain or ip go?
    Last edited by holiday; 04-29-2004 at 08:55 PM.

  4. #4
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    785
    % = command line. Just ignore that.

    directory is the folder/directory/file you want to transfer '-r' means it will recurse from that point and copy everything across

  5. #5
    Join Date
    Aug 2003
    Location
    Boston:Mass
    Posts
    231
    I know i sound amature at this, but its hard to get a clear explanation.

    Is "directory" the source? And where does the ip/server hostname go.

  6. #6
    Join Date
    Mar 2004
    Location
    New York City
    Posts
    995
    scp -r directory (on the box with the data - source) [email protected](username, and domain/ip of server to transfer to, it'll prompt for your password of destination server):/home/someuser/somefolder/ (directory on destination server to put the files in)

    *edited to clarify.

    So, to recap, this command is done FROM the box with the data on it. 'directory' is the source directory that has the data that you want to transfer, someuser is your username, somedomain.com is the ip/domain of the destination server, and :/home/someuser/somefolder is the destination folder on the destination server to put the files in.
    Sam Machiz / Director, Product Development / Ubersmith
    smachiz[at]ubersmith.com / [direct] 212-812-4194

  7. #7
    Join Date
    Aug 2003
    Location
    Boston:Mass
    Posts
    231
    Thank You, the files have started to transfer

  8. #8
    Join Date
    Mar 2004
    Location
    New York City
    Posts
    995
    LTADMIN gets all the credit for this one.
    Sam Machiz / Director, Product Development / Ubersmith
    smachiz[at]ubersmith.com / [direct] 212-812-4194

  9. #9
    Join Date
    Apr 2001
    Posts
    1,044
    scp is a pretty neat little program. Not as complex as rsync but it does serve its purpose
    ReliableServers.com
    Dedicated Servers | Colocation | Cloud Servers | CDN
    1000 Gbps Network | New Jersey DataCenter
    973-849-0535

  10. #10
    Join Date
    Aug 2003
    Location
    Boston:Mass
    Posts
    231
    it sure does!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •