Apologies if this has already been answered before, but I didn't see an answer to this question.
I want to upgrade my Debian 10 system to release 11. As such, I want to make a full backup so I can recover, in case something glitches during the upgrade.
My system's disk partitioning is very simple. A swap partition and a large root file system containing everything.
As such, I am thinking that a simple backup approach would be to mount an external drive (via USB, probably), and run tar
(with a few options for compression) to back up the root file system, telling it to exclude the backup device's mount point (to avoid infinite recursion).
Then if I need to restore, I can boot a live image, reformat the storage and use tar to copy everything back, probably running grub
afterward in order to make it bootable.
Does this sound reasonable? Or am I going to create a mess that will be hard to recover from?
If the latter, what is the best common practice to make a whole-system backup, such that I can simply restore it onto a newly-erased system in order to recover from a disaster?