How To Install Rsync In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?
rsync
Install rsync
-
Debian
apt-get install rsync
Click to copy -
Ubuntu
apt-get install rsync
Click to copy -
Alpine OS
apk add rsync
Click to copy -
Arch Linux
pacman -S rsync
Click to copy -
Kali Linux
apt-get install rsync
Click to copy -
CentOS
yum install rsync
Click to copy -
Fedora
dnf install rsync
Click to copy -
Raspbian
apt-get install rsync
Click to copy -
macOS
brew install rsync
Click to copy
Transfer files either to or from a remote host (not between two remote hosts). Can transfer single files, or multiple files matching a pattern.
How to use rsync?
Below are few example commands for rsync that you can use in the terminal.
Transfer file from local to remote host:rsync path/to/file remote_host_name:remote_host_location
Click to copyTransfer file from remote host to local:rsync remote_host_name:remote_file_location local_file_location
Click to copyTransfer file in archive (to preserve attributes) and compressed (zipped) mode with verbose and human-readable progress:rsync -azvhP path/to/file remote_host_name:remote_host_location
Click to copyTransfer a directory and all its children from a remote to local:rsync -r remote_host_name:remote_folder_location local_folder_location
Click to copyTransfer only updated files from remote host:rsync -ru remote_host_name:remote_folder_location local_folder_location
Click to copyTransfer file over SSH and delete local files that do not exist on remote host:rsync -e ssh --delete remote_host_name:remote_file local_file
Click to copyTransfer file over SSH and show global progress:rsync -e ssh --info=progress2 remote_host_name:remote_file local_file
Click to copy
Installation of latest rsync command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2023 latest package from the repository and install it in your computer/server.