09-08-2020, 01:31 AM
SO my SSD gave up recently and I had to restore a complete backup for the first time in my life.
Fed up with available backup programs where I'm never sure what they do and not sure how they restore files, I did my own backup of the entire file system with tar. (Basically tar -cvz -g backup.snar -f backup-000.tar.gz / with a bunch of excluded directories.) This way, I at least know where my files are and how they will be restored (i.e. manually by me).
The basic principle was that if I had a problem, I could always load LL again and then blindly unzip my backup over it to regain my system. Easy.
My problem arise when upgrading from series 4.X to 5.X. In such a case, I know that I cannot blindly overwrite a fresh install of the new series with files from the old series. Some files will be obsolete and clutter my SSD, some old files would overwrite the new ones and missing new features, maybe even broke some programs.
What I did was that I installed LL 5.0, then reinstalled all programs I had (based on my memory and looking at my backup files in /bin), then unzip my backed up home directory (even partly, because some programs like Pinta are not included in LL 5.0). But there are a lot of personal files which are not in the home directory. For example, mysql stores the databases in /var/lib/mysql. Emails are in /var/mail and cronjobs are in /var/spool/cron/crontabs/. I even found a VirtualBox folder in /opt.
The worst thing I found was a theme for Notepadqq. After reinstalling Notepadqq, I lost my setting for the appearance theme. We only have a choice between a selection of themes. I remember I did something special when I configured it, but couldn't remember it. By looking at the .ini file of the program, I finally realized that - 2 years ago - I build my own .css file (which is how the themes are stored) and put it with the other themes (after looking all around for them) in /usr/share/notepadqq/editor/libs/codemirror/theme/.
Are there other forgotten files like that? I don't know. I'm keeping my old backup for a while, just in case new problems arise.
So my question is: How do you keep track of all the files that you need to restore when upgrading from one series to another? Because it seems to be a very tedious job to upgrade from one series to another, certainly not one for an inexperienced user.
Fed up with available backup programs where I'm never sure what they do and not sure how they restore files, I did my own backup of the entire file system with tar. (Basically tar -cvz -g backup.snar -f backup-000.tar.gz / with a bunch of excluded directories.) This way, I at least know where my files are and how they will be restored (i.e. manually by me).
The basic principle was that if I had a problem, I could always load LL again and then blindly unzip my backup over it to regain my system. Easy.
My problem arise when upgrading from series 4.X to 5.X. In such a case, I know that I cannot blindly overwrite a fresh install of the new series with files from the old series. Some files will be obsolete and clutter my SSD, some old files would overwrite the new ones and missing new features, maybe even broke some programs.
What I did was that I installed LL 5.0, then reinstalled all programs I had (based on my memory and looking at my backup files in /bin), then unzip my backed up home directory (even partly, because some programs like Pinta are not included in LL 5.0). But there are a lot of personal files which are not in the home directory. For example, mysql stores the databases in /var/lib/mysql. Emails are in /var/mail and cronjobs are in /var/spool/cron/crontabs/. I even found a VirtualBox folder in /opt.
The worst thing I found was a theme for Notepadqq. After reinstalling Notepadqq, I lost my setting for the appearance theme. We only have a choice between a selection of themes. I remember I did something special when I configured it, but couldn't remember it. By looking at the .ini file of the program, I finally realized that - 2 years ago - I build my own .css file (which is how the themes are stored) and put it with the other themes (after looking all around for them) in /usr/share/notepadqq/editor/libs/codemirror/theme/.
Are there other forgotten files like that? I don't know. I'm keeping my old backup for a while, just in case new problems arise.
So my question is: How do you keep track of all the files that you need to restore when upgrading from one series to another? Because it seems to be a very tedious job to upgrade from one series to another, certainly not one for an inexperienced user.