0

pscp -r ../mydir/ xxx@example.com:/var/www/html/xxx/
copies everything under mydir, is there a way to exclude one subdirectory under mydir?

SW4
  • 69,876
  • 20
  • 132
  • 137
user121196
  • 30,032
  • 57
  • 148
  • 198

1 Answers1

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