Online Linux Terminal Logo
OnlineLinuxTerminal
Сеть и передача данныхCLI Manual

$rsync

Fast and versatile remote and local file-copying and synchronization tool.

Синтаксис командыPOSIX Standard
rsync [OPTIONS] SOURCE... DEST
Сообщество Linux2.4k Онлайн

Общайтесь с пользователями Linux, учите команды и скачивайте шпаргалки.

Попробуйте в интерактивной песочнице

Клиентская симуляция без установки с мгновенным результатом.

Открыть в полноэкранном терминале ↗
bash — terminal

Обзор и принцип работы

`rsync` (Remote Sync) synchronizes files and directories between two locations with delta-transfer algorithm, minimizing data transfer by sending only the differences between files.

Основные флаги и параметры команды

Flag / OptionDescription
-a, --archiveArchive mode (preserves permissions, timestamps, symlinks, owners, groups).
-v, --verboseIncrease verbosity showing transferred files.
-z, --compressCompress file data during transfer.
--deleteDelete extraneous files from destination directories that no longer exist in source.

Практические примеры использования

#1Synchronize local directory with remote backup
rsync -avz /home/user/projects/ user@backup-server:/backups/projects/

Transfers and synchronizes project folder with compression and archive preservation.