pscp -r ../mydir/ xxx@example.com:/var/www/html/xxx/
copies everything under mydir, is there a way to exclude one subdirectory under mydir?
Asked
Active
Viewed 1,398 times
0

SW4
- 69,876
- 20
- 132
- 137

user121196
- 30,032
- 57
- 148
- 198
-
1Isn't pscp a Windows program? – Matthew Flaschen Mar 01 '10 at 01:48
1 Answers
0
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
- 97,814
- 39
- 186
- 310