T_Jo
April 26th, 2020, 04:06 PM
Hi
I have been updating my system for a few years now - currently on 19.10 and like to do a clean install of 20.04
Reason is I like to keep using an LTS version. My main use of the system is for browsing, multimedia and have a VM image of 16.04 Ubuntu that I also like to upgrade to 20.04
My desktop has issues automatically starting X (always hangs and I need to select a new session and startx).
Also another more annoying issue because of an UEFI problem I always need to start with a rEFInd boot disk. A while ago I deleted some apparently important boot information and are not able to automatically boot Ubuntu anymore.
rEFInd boot disk has the UEFI boot information stored that is needed to boot.
Another issue is with USB drives that are not always automatically recognized, sometimes I need to reconnect them or switch to another USB port.
So my backup strategy will be:
1. Backup my home directory
2. Backup my Browser profiles
3. Backup some of the most important files and directories (including terminal history - contains some very useful CLI)
4. Back-Up my VM image
Then
1. Fix the UEFI issue if needed. I assume a clean Ubuntu install not fix it
2. Install 20.04 (hope this fixes the issue with X and USB)
3. Restore browser profiles
4. Restore files/directories/terminal history
5. Upgrade VM image from 16.04 - 18-04 to 20-4
So no questions yet but when I run into issues I will use this post. Feel free to comment on my strategy.
Edit [some comments about the process]
Tried to copy my home directory with tar but got a "file changed as we read it" error. I assume that happens because i am actively using my PC. Content of /home can of course change during copying.
changed that method and now using rsync (hopefully that will work)
rsync -avz /my/home/ /somebackupdir/
after using this method got "rsync error: some files/attrs were not transferred"
Most files are transferred but still a pretty large chunk didn't copy - I think most of them are read only files. Good enough for me but next time I think I will use "sudo rsync -avz /my/home/ /somebackupdir/"
- didn't wait for a next time, wanted to be sure I didn't miss important files so used rsync with sudo and indeed added a lot of data in the backup directory
Currently doing some reading on EFI. I think my problem was that I removed /boot/efi with Gparted and never managed to fix it (also didn't really try)
Looks like installing ubuntu will fix it and automatically partitions the HDD correctly and add the necessary files.
Backup browsers
https://www.fossmint.com/backup-and-restore-google-chrome-profile-on-linux/
https://www.fossmint.com/backup-and-restore-a-firefox-profile-on-linux/
I have been updating my system for a few years now - currently on 19.10 and like to do a clean install of 20.04
Reason is I like to keep using an LTS version. My main use of the system is for browsing, multimedia and have a VM image of 16.04 Ubuntu that I also like to upgrade to 20.04
My desktop has issues automatically starting X (always hangs and I need to select a new session and startx).
Also another more annoying issue because of an UEFI problem I always need to start with a rEFInd boot disk. A while ago I deleted some apparently important boot information and are not able to automatically boot Ubuntu anymore.
rEFInd boot disk has the UEFI boot information stored that is needed to boot.
Another issue is with USB drives that are not always automatically recognized, sometimes I need to reconnect them or switch to another USB port.
So my backup strategy will be:
1. Backup my home directory
2. Backup my Browser profiles
3. Backup some of the most important files and directories (including terminal history - contains some very useful CLI)
4. Back-Up my VM image
Then
1. Fix the UEFI issue if needed. I assume a clean Ubuntu install not fix it
2. Install 20.04 (hope this fixes the issue with X and USB)
3. Restore browser profiles
4. Restore files/directories/terminal history
5. Upgrade VM image from 16.04 - 18-04 to 20-4
So no questions yet but when I run into issues I will use this post. Feel free to comment on my strategy.
Edit [some comments about the process]
Tried to copy my home directory with tar but got a "file changed as we read it" error. I assume that happens because i am actively using my PC. Content of /home can of course change during copying.
changed that method and now using rsync (hopefully that will work)
rsync -avz /my/home/ /somebackupdir/
after using this method got "rsync error: some files/attrs were not transferred"
Most files are transferred but still a pretty large chunk didn't copy - I think most of them are read only files. Good enough for me but next time I think I will use "sudo rsync -avz /my/home/ /somebackupdir/"
- didn't wait for a next time, wanted to be sure I didn't miss important files so used rsync with sudo and indeed added a lot of data in the backup directory
Currently doing some reading on EFI. I think my problem was that I removed /boot/efi with Gparted and never managed to fix it (also didn't really try)
Looks like installing ubuntu will fix it and automatically partitions the HDD correctly and add the necessary files.
Backup browsers
https://www.fossmint.com/backup-and-restore-google-chrome-profile-on-linux/
https://www.fossmint.com/backup-and-restore-a-firefox-profile-on-linux/