Simple usages of rsync
04 May 2024Introduction
rsync is an excellent tool to have as your disposal for working with file data.
In today’s article, I’ll go through some usages.
Progress Copy
To securely and efficiently transfer data to (or from) a remote server while providing you progress updates you can use the following:
rsync -avzh --progress --stats user@server:/path/to/file output_name-aputs rsync into archive mode, preserving your file and link structures-vpumps up the logging output to give you verbose information-zwill compress the file data as it’s sent over the network-hmakes the output human readable--progressprovides a progress bar to be displayed, which tracks how far through we are--statsprovides a full statistical run down after the process has completed