Reminder not to do partial upgrades and to keep backups
Forgot about the importance of doing full system upgrades and only upgraded a few packages I needed to compile something. Wouldn't boot after a restart but luckily I've been making tar backups of my system for the last few months. Used one to overwrite the root partition and was able to get the system back up and running.
There were a lot of package conflicts when I tried to do the full system upgrade but eventually manually fixed all of them by removing the conflicting directories. Unfortunately, during the upgrade, there was a power outage and caused the install to break again. This time I just removed the entire old root partition, extracted the tar onto it and was able to upgrade this time without any hitches.
Really nice that I had backups this time I bricked my install. Didn't need to do a reinstall of Arch or any of my 1500 packages (bloat af). Learned my lesson the hard way earlier this year when I broke both my Ubuntu installs on my laptop and PC... That's when I switched both of them to Arch lol.
So, yeah - backups. I do them about once a month now; they probably take about half an hour, and the root tar that I used to retrieve my system is only 6GB. Would highly recommend starting to do them now if you aren't already.
About this post
- Posted
- Archived
- Score
- 11 · 100% up
- Kind
- Text
- ID
- cbx2dc
7 comments
Couldn't you just have booted a live usb, chroot into your installation and do the rest of the upgrade?
You really shouldn't need to bomb out your install or restore from a backup in this situation. Unbootable doesn't mean unfixable. Boot off the arch ISO, chroot into your system and you're in. Upgrade/remove packages, reinstall GRUB, whatever you need.
What script do you use to make your root tarballs?
Rsnapshot is a fantastic backup tool. Not right for all scenarios, but very powerful.
Good message, questionable fix but who am I to question the method?
https://restic.net/
Great backup solution. I use it on my workstations and on other production environments including k8s and just general aggregation from s3 buckets and other places. It's been flexible and reliable for me
Timeshift package (aur) is great also, with the autosnap package it automatically takes a full snapshot of your system before running any upgrade via Pacman