sftp entire directory (directory having many directories recursively)
19,566
Another way to do this ( and it skips over files that are already copied )
rsync -av your/local/dir/ user@remotehost:/your/remote/dir/
Related videos on Youtube
Author by
7ochem
Updated on September 18, 2022Comments
-
7ochem almost 2 years
When I am trying to sftp the directory structure ( Here the directory is having other directories recursively). I am not getting all the files.
Can you please suggest me the way to do this?
-
Amatya almost 10 yearsThanks a lot!! After hours of trying stuff that didn't work, your method worked for me. phew!! thx!
-
Admin almost 3 years10 years down the line, but the question refers to 'getting' and this command is more like 'put'. Reverse the arguments if you want to copy from the remote to the local.