$ scp -r username@host:/fully/qualified/path/on/remote/host/ /fully/qualified/path/on/local/host/
An alternative approach is to reference a directory relative to the user's account.
$ scp -r username@host:user's/path/on/remote/host/ user's/path/on/local/host/
Or using '.', the files will be copied to the current working direcory
$ scp -r username@host:user's/path/on/remote/host/ .
To use a wildcard to fetch only certain file types use the * syntax.
$ scp -r username@host:user's/path/on/remote/host/*.png .
Piece of Cake!!!
No comments:
Post a Comment