Use rsync to copy only missing files and files with updated content from a remote server.

Scenario: We need to copy from a remote server to local files we dont have and files that their content is updated, also we dont have ssh keys and we need a fast and dirty way to authenticate (sshpass).

$ rsync --progress --append --partial -vz -e 'sshpass -p password ssh -p 22' user@remote_server:/files/*.csv .

If you use ssh keys you can ommit the sshpass command.

DevOps engineer, loves Linux, Python, cats and Amiga computers

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store