Transferring files? More often than not, rsync
is the answer:
rsync --archive --verbose --partial --progress username@vps_ip_or_hostname:/path/to/yourfile.tar /local/destination/
-
--archive
: Enables archive mode, which preserves symbolic links, permissions, timestamps, group, and ownership. It’s equivalent to-rlptgoD
. -
--verbose
: Increases the verbosity of the output, providing detailed information about the transfer process. -
--partial
: Keeps partially transferred files if the transfer is interrupted, allowing you to resume the transfer later without starting from scratch. -
--progress
: Displays detailed progress information during the transfer, including the transfer speed and estimated time remaining.