Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    156
    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:
    166
    Why don;t you use RSYNC to avoid recopy....?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. clbrack1

    clbrack1 Active Member

    Joined:
    Nov 3, 2006
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    156
    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:
    156
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice