Bug 1405 - scp: pattern-driven copying process
Summary: scp: pattern-driven copying process
Status: CLOSED WONTFIX
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: scp (show other bugs)
Version: 4.7p1
Hardware: ix86 Linux
: P2 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-20 05:08 AEDT by patch_linams
Modified: 2010-04-16 15:51 AEST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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