snapshotter

Restoring files

A snapshot is a directory. To get one file back:

snapshotter find nginx.conf
2026-11-20T03:00  /etc/nginx/nginx.conf
2026-11-22T03:00  /etc/nginx/nginx.conf   (changed)
cp -a /srv/backups/2026-11-20T03:00/etc/nginx/nginx.conf /etc/nginx/

Whole tree

rsync -aHAX --delete /srv/backups/2026-11-20T03:00/var/www/ /var/www/

Use -H to keep hard links inside the tree. Never restore with mv: that removes the file from the snapshot.

What changed?

snapshotter diff 2026-11-20T03:00 2026-11-22T03:00
M  etc/nginx/nginx.conf
R  var/www/img/2024 -> var/www/img/archive/2024
A  var/www/notes/new-post.md