---
title: "rsync"
description: "rsync is a tool for fast file synchronisation between directories and servers. Learn its delta-transfer algorithm, SSH mode and common uses."
url: "https://nodea.io/en/glossary/rsync"
lang: "en"
updated: "2026-07-13"
---

# rsync

> rsync is a Linux command-line tool for synchronising and copying files between directories or servers that transfers only the parts of the data that have changed.

**rsync** (remote sync) is a popular Linux command-line tool for synchronising and copying files between directories on the same machine or between different servers over a network. Its advantage over simple copying is a clever algorithm that transfers only the data that has actually changed — which makes repeat synchronisations very fast and bandwidth-efficient.

## How rsync works

The heart of rsync is its **delta-transfer algorithm**. On the first sync it copies everything, but on later runs it compares the source and destination files, breaks them into blocks and transfers only the blocks that changed. In addition, rsync:

- preserves permissions, ownership, timestamps and symbolic links,
- can compress data on the fly (the *-z* option) to reduce network traffic,
- can delete files on the destination that no longer exist in the source (the *--delete* option), producing a faithful mirror,
- offers a test mode (*--dry-run*) that shows what would be done without making changes.

For work between servers, rsync most often uses an [SSH](https://nodea.io/en/glossary/ssh) tunnel, which encrypts the transferred data.

## rsync in practice

rsync is one of an administrator's staple tools. It is used to create [backups](https://nodea.io/en/glossary/backup) (including incremental ones), migrate sites and data to a new [server](https://nodea.io/en/glossary/server), maintain mirrors, and as part of a [deployment](https://nodea.io/en/glossary/deployment) process — new application versions are frequently synced to the production server with rsync. Because the tool runs from the [command line](https://nodea.io/en/glossary/cli), it is easy to automate in scripts and scheduled jobs, for example alongside cron, making it a cornerstone of many routine tasks on Linux servers.

### Why is rsync faster than plain copying?

rsync uses a delta algorithm — on each subsequent sync it compares files and transfers only the parts that actually changed, instead of copying everything again. For large datasets where little changes, this saves enormous amounts of time and bandwidth.

### Does rsync encrypt the data it transfers?

rsync itself does not encrypt, but it is most often run over an SSH tunnel, which encrypts the transmission. In that setup the data travels between servers through a secure channel, just like a normal SSH connection.

## Related

- [SSH](https://nodea.io/en/glossary/ssh)
- [Backup](https://nodea.io/en/glossary/backup)
- [Deploy](https://nodea.io/en/glossary/deployment)
- [CLI](https://nodea.io/en/glossary/cli)
- [Server](https://nodea.io/en/glossary/server)

---

Languages: [pl](https://nodea.pl/pl/slownik-pojec/rsync.md)  
Site index: [llms.txt](https://nodea.io/en/llms.txt)
