Backup/Restore is creeping up at me now since I am having issues with broken WiFi settings on my RPi4 with 4GB RAM.
I am looking for a way to back up my existing installation and then wipe the SDCard and start over with a new image.
I need to get all of my installed stuff back, except for the changes I did that broke WiFi...
I have saved history to a file so I should be able to go through this and find what if anything needs reinstalling, but edited conf files and such is a different matter.
I am considering to tar the /home/pi, /etc and selected parts of the /var dir and save the tar files to an external NAS.
Then when I get back to a fresh new system I should be able to expand the /home/pi tar file into its correct place, which will bring back the stuff in home.
But how do I handle the general settings and apt installed stuff?
I guess there is no such thing on Raspbian as a Windows type "restore point" to catch changes to the system as opposed to user file changes?
Maybe there is a better way?
In general I should be backing up my stuff more often but what is the recommended "best practice"?
Making an SDCard image at a certain interval as I have read suggestions of seems not to be optimal...
After all I want to get back whatever I work on (typically in /home/pi and /var/www/) as well as the applications installed with apt. And here is the problem because I have no real knowledge of where the apt system stores the applications...