pscp -r ../mydir/ [email protected]:/var/www/html/xxx/
copies everything under mydir, is there a way to exclude one subdirectory under mydir?
views:
37answers:
2
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
2010-03-01 02:17:41