Copy file or directory from local source to remote destination

rclone

  • CLI program to copy/sync/move files and directories to and from many cloud services.
    More information: <https://rclone.org>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

rclone copy {{path/to/source_file_or_directory}} {{remote_name}}:{{path/to/destination_directory}}

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