Bug 1405

Summary: scp: pattern-driven copying process
Product: Portable OpenSSH Reporter: patch_linams
Component: scpAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED WONTFIX    
Severity: enhancement CC: djm, dtucker
Priority: P2    
Version: 4.7p1   
Hardware: ix86   
OS: Linux   

Description patch_linams 2007-12-20 05:08:13 AEDT
Hello!

Would it be possible to implement a copying process with file patterns to exclude and provide an option (something like -e "pattern1 pattern2 ..." or -e "pattern1" -e "pattern2") for it?

Thank you for OpenSSH, guys!
Comment 1 Darren Tucker 2007-12-20 07:42:41 AEDT
You can do simple wildcarding and patterns through the shell (eg "scp {a,b,c}.tar remotehost:") but other than that, it sounds like what you want is rsync.
Comment 2 Darren Tucker 2009-11-20 11:42:48 AEDT
We've decided we're not going to be doing this.  We're not adding features to scp, and rsync already provides this functionality.

Note also that you can also do this via some shell hackery, eg:

scp `echo * | egrep -v '.*excludethis.*'` remotehost:
Comment 3 Damien Miller 2010-04-16 15:51:06 AEST
Mass move of bugs RESOLVED->CLOSED following the release of openssh-5.5p1