views:

37

answers:

2

pscp -r ../mydir/ [email protected]:/var/www/html/xxx/
copies everything under mydir, is there a way to exclude one subdirectory under mydir?

A: 

i'm quite sure that that's not possible.

the most complete documentation can be found here.

pstanton
A: 

Not with the scp command itself.

However ... install cygwin, and then ...

find . \! -name to_exclude -print | cpio -o | ssh where-ever "cd dest;cpio -i -"
bmargulies