And you shall know the truth,
& the truth shall make you free.
John 8:32
Powerful Backup Utility - rsync usecases

Powerful Backup Utility - rsync usecases

Feb 24, 2020

Steps

Script

# usecase 1: simple recursive file-only backup
rsync -r <source>/ <destination>/

# usecase 2: -a to recurse and preserve file metadata including symlinks, permissions, mod time, groups, owners etc.
rsync -a <source>/ <destination>/

# usecase 3: dry-run/check changes to be made based on source
rsync -av --dry-run <source>/ <destination>/

# usecase 4:  Mirror source to destination, and remove exclusive changes in destination
rsync -av --delete --dry-run <source>/ <destination>/

# usecase 5: Backup to remote machine, -z to compress
rsybc -zaP <Source> user_name@ip_address:<destination>

Required Tools

OS