Logo

How to Install and Use rsync on ubuntu 24.04

Mar 19, 2024

To install and use rsync on Ubuntu 24.04, follow these steps:

Step 1 : Ensure your system is up-to-date by running the following command in your terminal:

sudo apt update

Step 2 : Use the following command to install rsync:

sudo apt install rsync

Step 3 : Copying files locally

- You can copy files locally using rsync by specifying the source and destination directories. For example:

rsync -avzh /path/to/source /path/to/destination

Step 4 : Uploading to a remote server

- To upload files to a remote server, use the following syntax:

rsync -avzh /path/to/local/file username@remote_host:/path/to/destination

Replace "username" with your username and "remote_host" with the remote server's hostname or IP address.

Step 5 : Downloading from a remote server

- To download files from a remote server, use the following command:

rsync -avzh username@remote_host:/path/to/remote/file /path/to/local/destination

Replace "username" with your username and "remote_host" with the remote server's hostname or IP address.

Congratulations! You have successfully installed rsync on Ubuntu 24.04.

Recommended