rsync:tldr:70bbd
rsync: Transfer a file over SSH using a different port than the default and show global progress.
$ rsync -e 'ssh -p ${port}' --info=progress2 ${remote_host}:${path-to-remote_file} ${path-to-local_file}
try on your machine
The command you provided is using the rsync command to transfer files between a remote and local location using SSH.
Here is a breakdown of the command:
rsync
: This is the command-line tool used for file synchronization and transfer.-e 'ssh -p ${port}'
: This specifies the remote shell to be used by rsync. It indicates that SSH should be used with the given port number.${port}
is a variable, and you would replace it with the actual port number you intend to use.--info=progress2
: This option enables the display of progress information during the transfer. It provides a more detailed progress report than the default setting.${remote_host}:${path-to-remote_file}
: This specifies the remote host address and the path to the remote file you want to transfer.${remote_host}
is a variable, and you should replace it with the actual hostname or IP address.${path-to-remote_file}
is a variable as well and should be replaced with the actual path to the remote file.${path-to-local_file}
: This indicates the path to the local destination where the file will be saved.${path-to-local_file}
is a variable that you should replace with the desired local file path.
Overall, the command allows you to transfer a file from a remote server to a local machine using the rsync command over SSH. The progress of the transfer is displayed using a detailed progress report.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.