Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStats

Categories

πŸ€– Artificial Intelligence
☁️ Cloud and Infrastructure
πŸ’Ύ Data and Databases
πŸ’Ό Professional Skills
🎯 Programming and Development
πŸ”’ Security and Networking
πŸ“š Specialized Topics
HomeAboutTopicsPricingMy VaultStats
LEVEL 0
0/5 XP
GitHub
Β© 2026 CheatGridβ„’. All rights reserved.
Privacy PolicyTerms of UseAboutContact

rsync File Synchronization and Backup Cheat Sheet

rsync File Synchronization and Backup Cheat Sheet

Back to Operating Systems and CLI
Updated 2026-05-22
Next Topic: SELinux and AppArmor Mandatory Access Control Cheat Sheet

rsync is a fast, versatile file-copying tool that uses a delta-transfer algorithm to send only the differences between source and destination files. It supports local copies, remote transfers over SSH, and a standalone daemon mode. rsync is widely used for backups, website mirroring, and directory synchronization because it minimizes data transfer, preserves file attributes, and offers fine-grained control over what is synced and deleted.

What This Cheat Sheet Covers

This topic spans 15 focused tables and 116 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Basic Syntax and Local CopiesArchive Mode and Attribute PreservationRemote Transfers Over SSHMirroring and Deletion StrategiesInclude, Exclude, and Filter RulesIncremental Backups with --link-destFile Comparison ModesBandwidth Limiting and Partial Transfersrsync Daemon Mode (rsyncd)Logging and MonitoringAutomation with Cron and SystemdExit Codes and Error HandlingCommon Use Casesrsync vs Alternative ToolsAdvanced Options and Gotchas

Basic Syntax and Local Copies

Technique/CommandExampleDescription
Basic local copy
rsync source_file dest_file
Copy a single file locally; rsync checks size and mtime and only transfers if changed
Copy directory to another local path
rsync -r /src/dir/ /dst/dir/
Recursively copy directory contents; trailing slash on source copies contents not the directory itself
Copy directory including itself
rsync -r /src/dir /dst/dir/
Omitting trailing slash on source copies the directory itself into the destination
Verbose output
rsync -v source dest
Print names of files being transferred
Dry run / simulation
rsync -n source dest
Show what would be transferred without making changes; combine with -v for detail

More in Operating Systems and CLI

  • rsync File Synchronization and Backup Cheat Sheet
  • SELinux and AppArmor Mandatory Access Control Cheat Sheet
  • AWS CLI Cheat Sheet
  • iptables Legacy Linux Firewall Reference Cheat Sheet
  • macOS Usage Cheat Sheet
  • tar gzip zip Archive and Compression Tools Cheat Sheet
View all 51 topics in Operating Systems and CLI