rsync -av --link-dest=../prev-backup /home/user/data/ /mnt/backup/current/

Category: Backup & Restore

rsync -av --link-dest=../prev-backup /home/user/data/ /mnt/backup/current/

Incremental backup via hardlink farm

Copies files unchanged since ../prev-backup as hardlinks (multiple names pointing at the same data) instead of re-copying them, so each backup looks complete but costs almost no space. Point --link-dest at the previous backup directory on each run. Every backup directory stays fully restorable on its own.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.