On this page you find all important commands for the CLI tool rsync. If the
command you are looking for is missing please ask our AI.
rsync
Rsync is a fast and extraordinarily versatile file copying tool. It can copy locally, to/from another host over any remote shell, or to/from a remote rsync daemon. It offers a large number of options that control every aspect of its behavior and permit very flexible specification of the set of files to be copied. It is famous for its delta-transfer algorithm, which reduces the amount of data sent over the network by sending only the differences between the source files and the existing files in the destination. Rsync is widely used for backups and mirroring and as an improved copy command for everyday use.
List of commands for rsync:
-
files:copy:verbose Copy folder recursive and show copy speed$ rsync -av --progress ${source-folder} ${destination-folder}try on your machineexplain this command
-
rsync:directory:remote-to-local Transfer a directory and all its contents from a remote host to local.$ rsync -r ${remote_host}:${path-to-remote_directory} ${path-to-local_directory}try on your machineexplain this command
-
rsync:file:local-to-remote Transfer a file from local to a remote host.$ rsync ${path-to-local_file} ${remote_host}:${path-to-remote_directory}try on your machineexplain this command
-
rsync:file:remote-to-local:with-deletion Transfer a file over SSH and delete remote files that do not exist locally.$ rsync -e ssh --delete ${remote_host}:${path-to-remote_file} ${path-to-local_file}try on your machineexplain this command
-
rsync:tldr:2f175 rsync: Transfer directory contents (but not the directory itself) from a remote host to local.$ rsync -r ${remote_host}:${path-to-remote_directory}/ ${path-to-local_directory}try on your machineexplain this command
-
rsync:tldr:6aad5 rsync: Transfer a file in [a]rchive (to preserve attributes) and compressed ([z]ipped) mode displaying [v]erbose and [h]uman-readable [P]rogress.$ rsync -azvhP ${path-to-local_file} ${remote_host}:${path-to-remote_directory}try on your machineexplain this command
-
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 machineexplain this command
-
rsync:tldr:c4191 rsync: Transfer a directory [r]ecursively, in [a]rchive (to preserve attributes), resolving contained sym[L]inks, and ignoring already transferred files [u]nless newer.$ rsync -rauL ${remote_host}:${path-to-remote_directory} ${path-to-local_directory}try on your machineexplain this command