There are two ways.
My preference is generally as follows.
scp -r sourcedir/ user@
or
rsync -auv -e ssh –progress sourcedir/ user@dest.com:/dest/dir/
or
rsync -avlzp sourcedir/ user@
you can put file name instead of sourcedir to copy file too.
There are two ways.
My preference is generally as follows.
scp -r sourcedir/ user@
or
rsync -auv -e ssh –progress sourcedir/ user@dest.com:/dest/dir/
or
rsync -avlzp sourcedir/ user@
you can put file name instead of sourcedir to copy file too.