I seem to be able to find lots of guides for backing up my PI that involve taking the SD card out, or running dd and hoping nothing changes.
But is there any way to take a proper, system-level, backup of my PI onto a NAS? I know with LVM you can use snapshots, but Raspian doesn't use LVM. Is there another way?
To be clear - I want to backup the entire SD card, so if it fails, I can grab a new one and restore. Or if I install too much crap and break the OS I can roll back.
dd
for backups! There is some very bad advice around about that.dd
... And I believe there is a newer thread (possible dupe if this one) which I just cannot find right now.dd
, it's just silly.rsync
ortar
, which are pretty canonical on linux (since this is really a general linux question, you might look around Unix & Linux as well). The difference between the two is in the nature of the backup; withrsync
you are creating a mirror (identical copy), withtar
you are creating an archive (compressed file which can be extracted later).