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

clbrack1

Active Member
Nov 3, 2006
39
0
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
 

mitul

Well-Known Member
Feb 8, 2003
291
0
166
Why don;t you use RSYNC to avoid recopy....?
 

clbrack1

Active Member
Nov 3, 2006
39
0
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
 

nxds

Well-Known Member
Jan 6, 2006
53
0
156
rync -avHn source [email protected]: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