Linux Backups

rsync backup basics on Linux

Simple, scriptable backups with rsync — the workhorse every Linux admin should know.

12 min read Beginner Updated 9 Jun 2026

Step-by-step guide

Work through each section in order. Stop when your issue is resolved — you do not need every step for every situation.

Warning

Use a sudo-capable account, keep shell history for audit, and back up critical paths before changing boot, SSH, or package state.

What you will achieve

Simple, scriptable backups with rsync — the workhorse every Linux admin should know.

1) Create local backup with metadata

sudo rsync -aHAX --delete /home/ /backup/home/

2) Create remote backup over SSH

rsync -aHAX --delete /etc/ admin@backup-host:/srv/backups/host-etc/

3) Test restore path

Restore one directory to a temp location and verify ownership and permissions.

Related guides

backup linux rsync