-
-
Notifications
You must be signed in to change notification settings - Fork 2
Linux rsync Guide
Mattscreative edited this page Dec 5, 2025
·
3 revisions
Complete beginner-friendly guide to rsync on Linux, covering Arch Linux, CachyOS, and other distributions including file synchronization, backup strategies, and efficient file transfer.
Arch/CachyOS:
# Install rsync
sudo pacman -S rsyncDebian/Ubuntu:
sudo apt install rsyncFedora:
sudo dnf install rsyncBasic usage:
# Copy files
rsync source/ destination/
# Copies files from source to destinationTest without copying:
# Dry run (test)
rsync -avn source/ destination/
# -a = archive mode
# -v = verbose
# -n = dry run (no actual copy)Preserve everything:
# Archive mode
rsync -av source/ destination/
# -a = archive (preserves permissions, timestamps, etc.)
# -v = verbose (shows progress)Mirror source:
# Delete files not in source
rsync -av --delete source/ destination/
# --delete = removes files not in sourceRemote synchronization:
# Sync to remote server
rsync -av source/ user@server:/path/destination/
# Uses SSH for transferDownload from server:
# Sync from remote server
rsync -av user@server:/path/source/ destination/
# Downloads from remoteCheck installation:
# Check rsync
which rsync
# Install if missing
sudo pacman -S rsyncCheck permissions:
# Ensure read access to source
ls -la source/
# Ensure write access to destinationThis guide covered rsync usage, file synchronization, and backup strategies for Arch Linux, CachyOS, and other distributions.
- Backup and Restore - Backup strategies
- scp Guide - Simple file copying
- SSH Configuration - SSH setup
-
rsync Documentation:
man rsync
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.