DEV Community

Discussion on: How do you back up your data?

Collapse
 
dmfay profile image
Dian Fay • Edited

I use snebu as a systemd unit backing up ~/records, ~/pictures, a couple other directories, and /etc/packages.txt. That last is a list of all packages I have installed, generated by another systemd unit which /bin/sh -c '/usr/bin/pacman -Qqe > /etc/packages.txt' daily. If I ever need to recover the system I can get my personal files and the package listing out of snebu, feed the latter into pacman, pull my dotfiles down from GitHub, and I'm theoretically back in business.

Backups go on a non-boot hard drive in the same machine. I've thought about pushing them to a NAS for extra safety but I only have so much time to juggle this stuff.