Skip to content

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.

11 points7 comments
Open on Reddit
About this post
Posted
Archived
Score
11 · 100% up
Kind
Text
ID
cbx2dc

Author

3
posts
19
comments
1
media
View profile

7 comments

Couldn't you just have booted a live usb, chroot into your installation and do the rest of the upgrade?

26 points

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.

17 points

Rsnapshot is a fantastic backup tool. Not right for all scenarios, but very powerful.

1 points

Good message, questionable fix but who am I to question the method?

1 points

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

1 points

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

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.