
DevOps
How to Manage Config Files Across Servers With rsync
Keep config files in sync across servers with rsync from a repository: per-host trees, dry runs, sudo, validation before reload and backups.
6 min read
Tag
4 posts

Keep config files in sync across servers with rsync from a repository: per-host trees, dry runs, sudo, validation before reload and backups.

Back up a Linux disk with the right tool: dd for a full image, rsync for files, compression, verification, and a restore test to run before you need it.

Use rsync exclude, delete and dry run flags safely: patterns that match, preview with itemized output, delete only after a check, and protect the destination.

Use the rsync command to copy and sync files locally and over SSH, understand the trailing slash rule, and check progress, permissions and what changed.