rsync
rsync [options] <source> <destination>
Synchronizes destination
with source
where either of them can be remote, not both.
rsync -aPL sandbox:/Work/project/ ./project
It downloads file from remote location project/
and stores them in location ./project
.
sandbox:/Work/project/
ends with /
that will download the file inside the directory. If the path would be like sandbox:/Work/project
, it will copy the directory itself into destination.