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/
Share:
19,566

Related videos on Youtube

7ochem
Author by

7ochem

Updated on September 18, 2022

Comments

  • 7ochem
    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
    Amatya almost 10 years
    Thanks a lot!! After hours of trying stuff that didn't work, your method worked for me. phew!! thx!
  • Admin
    Admin almost 3 years
    10 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.