The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is there a 'skip existing file' option for SCP?

Discussion in 'General Discussion' started by clbrack1, Dec 14, 2006.

  1. clbrack1

    clbrack1 Active Member

    Joined:
    Nov 3, 2006
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    I am trying to copy 100gig of cpbackup files from one server to another. I was about 3/4's of the way thru and the ssh session quit...aaaaggghhh! :)

    Is there a 'skip existing file' option for SCP or does someone know how to skip existing files. I don't want to have to recopy the 75gig.

    It wouldn't be such a big deal but we are moving out of a datacenter in NJ and the file copy is over the internet. If the two servers were on the same 100mbs switch it wouldn't make much of a difference.

    Any suggestions will be appreciated.

    Chris
     
  2. mitul

    mitul Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Why don;t you use RSYNC to avoid recopy....?
     
  3. clbrack1

    clbrack1 Active Member

    Joined:
    Nov 3, 2006
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    thanks! I have never used rsync but was slighly aware that it existed :) I am trying it now. Can you suggest some command line parameters?

    thanks,

    Chris
     
  4. nxds

    nxds Well-Known Member

    Joined:
    Jan 6, 2006
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    rync -avHn source user@dest:dir/

    -n option is dry-run so drop it if you're happy
    -a duplicate everything (perms owner timestamps) and be recursive
    -v verbose
    -H preserve hard links
     
Loading...

Share This Page