Transfer file in [a]rchive (to preserve attributes) and compressed ([z]ipped) mode with [v]erbose and [h]uman-readable [P]rogress

rsync

  • Transfer files either to or from a remote host (not between two remote hosts).
    Can transfer single files, or multiple files matching a pattern.
    More information: <https://manned.org/rsync>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

rsync -azvhP {{path/to/local_file}} {{remote_host}}:{{path/to/remote_directory}}

click the source code to copy install rsync on any operating system with command-not-found.com