Update & backup strategies

hello,

so, i finally took the step and installed eos (kde) as a daily driver on my laptop. while i am not entirely new to “arch”, things turn out a bit different on eos in comparison to manjaro.

thus i will start with a very basic question here:

on manjaro, once a stable update was avaiable, i used to

  • check the forum thread

  • update in tty2 only, so to lower the risk of a breakage

  • reboot

  • backup with clonezilla later on

now i am a little uncertain which concept to follow with the frequent updates under eos/arch?

2 Likes

My personal strategy is:

Check Arch linux news page for warnings about an update. It is available as an RSS feed to make it easier.

Update in TTY only

However I also use these additional tools:

I have created an alias called “update” that runs the update command and also deletes all but the three newest versions of a package in the cache automatically.

I use the automatic mirror updater available for EndeavourOS (search these forums for it, it’s great)

I also run Timeshift to take daily snapshots of my install to an external drive. Please note that you have to manually configure it to back up your home folder.

Also, you don’t have to update every day. Once a week is more than enough.

3 Likes

you also got the pacman timeshift hook ?

thanks for replying.

now this is what i did already :wink:

that sounds interesting, mind to share some more details with a newbie?

you mean reflector-auto?: https://endeavouros.com/docs/pacman/rank-mirrorlist/

i heard of it before, but actually never used it. what is the benefit of timeshift in regards to a workflow like this:

backup all partitions with clonezilla except for /home (usb stick)
sync /home to an external drive

Timeshift is a backup program in the aur is also a timeshift pacman hook/extention after every update it backup the old packags automatical, if a package get issues you downgrade by your previous… its different then clonezilla, it backup the whole system is also time consuming :slight_smile:

personal i dont update right away, also dont wait to long depend on which update i got i update… like linux kernel or systemd can for me wait a bit longer, i always keep a fresh usb beside to chroot and fix it manually…im used to it personally… but most issuesn it came i do experimenting sometimes on my own system and mess things up and i dont do backup personally…

but if you want to backup, timeshift gives a snapshot of your system that is currently working, if you use also the pacman hook, it makes a snapshot right away you dont have to do it after it…until you said you do it manually later on again :slight_smile:

1 Like

Yes I mean reflector-auto
The command to clean the cache except the three latest is

sudo paccache -r 

So my alias is just

yay -Syyu && paccache -r

Timeshift does incremental backups according to a schedule. Monthly, weekly, daily or at boot.

2 Likes

Reflector-auto is one good possibility to keep mirrors updated without user intervention.
An alternative way (but not automatic) is reflector-simple which is a GUI app around reflector. It helps you rank the best mirrors based on selecting nearest mirror countries.

The tip with the mirrorlist is to have more than a very small number of mirrors (because a mirror can temporarily fail). For example, I’d recommend having about 5 to 10 different mirrors in file /etc/pacman.d/mirrorlist. Depending on your country, you may need to select some additional countries to have enough mirrors.
Well selected mirrors are essential to a great updating experience.

Updating in terminal is a good idea, since pacman is the most reliable package manager in the Arch world.

3 Likes

I use a 20 mirror long list with all Scandinavia + Germany + Poland in theory. Mostly it’s just German and Swedish mirrors since they’re fastest from my location (1 hour drive from Stockholm).

1 Like

Nah, I run timeshift at boot, it saves the three latest boots.

Edit: full timeshift setup is all directories including /home with 1 weekly, 1 daily and 3 boot snapshots.

thank you all for answering :wink:

to sum it up a bit, i can perfectly live with a one week update cycle. no need to rush things.

i am addicted to minimalism (in most cases) – still trying to trim down eos ram usage after boot so to match with the prior manjaro installation…

seems i better go with nonautomatic reflector-simple, then :wink: thanks for pointing me to it, @manuel.

i guess, it is best to run this once manually, before initializing the tty2 update, right?

thank you also for that hint, so you stick with yay all the way :wink:

2 Likes

Well I have several AUR packages including timeshift and spotify so…

1 Like

you also got these ? https://aur.archlinux.org/packages/timeshift-autosnap/

Again nah. Taking snapshots at boot is good enough.

It is good to run it before updating, but most probably not every time. Maybe once a month for a mirror update is a reasonable frequency. But if you notice many differences in the mirror list every time you update the list, then maybe twice a month is better. On the other hand, if the mirror list is not changing at all, then mirror update can be done less frequently.

Usually the mirrors hold their position for weeks or months without issues. But that may depend quite a lot on the country and mirror, so can’t say any absolute truth here.

The reflector-auto runs weekly by default. But with reflector-auto you need to write a config file, see details at the reflector-auto wiki page.

1 Like