Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2004
    Posts
    143

    Unanswered: help with rcp command

    I have 2 servers DEV1 and DEV2, both having a user name called TOM.
    The home for user TOM is /home/TOM on both servers. On DEV1, there is a subdirectory in TOM called INVOICE which I need to copy over to DEV2. (I needed all the files and subdirectories that come under INVOICE to be transferred onto DEV2. (Currently there is no INVOICE directory in DEV2)
    So after this is done, DEV2 should have /home/TOM/INVOICE

    I am specifically seeking a way to do this using the rcp command. How do I do it?
    Thank you

  2. #2
    Join Date
    Jan 2004
    Location
    Bordeaux, France
    Posts
    320
    Try this :
    Code:
    # On DEV1 with user TOM
    rcp -r INVOICE DEV2:
    Jean-Pierre.

  3. #3
    Join Date
    Feb 2004
    Posts
    143
    Thank you Aigles. I will try it and let you know tomorrow morning.

  4. #4
    Join Date
    Feb 2004
    Posts
    143
    When using this command, after DEV2: should i give a path as to where the directory needs to go ?

  5. #5
    Join Date
    Jan 2004
    Location
    Bordeaux, France
    Posts
    320
    If you don't specify a path, the directory is created in the home directory of user TOM on DEV2.
    Jean-Pierre.

  6. #6
    Join Date
    Feb 2004
    Posts
    143
    Ok. Got you.
    Just in case if I wanted it in /usr/dev/ directory which is not a home,
    do i mention it as
    (from DEV1)
    rcp -r INVOICE DEV2:/usr/dev

    Thank you

  7. #7
    Join Date
    Jan 2004
    Location
    Bordeaux, France
    Posts
    320
    The command OK (but i think that /usr/dev is not a destination to use)
    Jean-Pierre.

Posting Permissions

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