5

So I know I can download a whole directory like this:

sftp> get -R *

How can I exclude all files with .ipa extension though? I want to download everything except .ipa or .ipa.* files from a directory.

Richard Knop
  • 1,149
  • 2
  • 20
  • 34

1 Answers1

3

Did you consider usind rsync (if you have it available)? It supports an --exclude option, where you can specify what you wish to exclude:

rsync -av foo@remotehost:/dir/ /localdir/ --exclude .ipa --exclude .ipa.*
mulaz
  • 10,682
  • 1
  • 31
  • 37