News for hackers. Stuff that matters.
Re:Canonical shows ads in the Ubuntu CLI by pooper on Wednesday October 12, 2022 @06:58AM (#33175195)
What you should be able to do but I have never tried in practice is to keep your home directory. Most "novice" computer users like me, would only need one user anyway although this should work for multiple users as well?

I think in theory at least if your username is anthropodie, you should be able to copy /home/anthropodie to an external hard disk just for backup, install your new distro, set up your new user and copy your user home directory back. Anyone tried this?

Re:Canonical shows ads in the Ubuntu CLI by mikro2nd on Wednesday October 12, 2022 @07:14AM (#33175295)
The approach I've followed for many years is to have /home mount on a separate partition from anything else. Then when you do any kind of fresh install or upgrade, you only have to make sure that partition doesn't get touched (and usually that's the default) and all is well with the world.

It would be slightly more work involving parted (or whatever partition manager you prefer) to create a new partition, resize existing partitions, etc., but quite doable (if tedious and time consuming).

Re:Canonical shows ads in the Ubuntu CLI by anthropodie on Wednesday October 12, 2022 @08:01AM (#33175695)
By clean setup I mean, reinstalling /

/home is kept intact. After installation of apps on new setup I don't even have to configure them most of times because they can find their config directories in /home/myuser/

Re:Canonical shows ads in the Ubuntu CLI by pooper on Wednesday October 12, 2022 @09:13AM (#33176446)
but debian iirc has only one partition by default, no?
Re:Canonical shows ads in the Ubuntu CLI by anthropodie on Thursday October 13, 2022 @02:02AM (#33187772)
That is not true. I have configured /home on Debian.
Re:Canonical shows ads in the Ubuntu CLI by tbran on Wednesday October 12, 2022 @10:36AM (#33177618)
I used to keep my home dir on a separate partition, but I was always worried I'd wipe it out during the OS install.

Instead I backup my home dir with borg backup to drives/cloud.

I have a script to borg mount my most recent borg backup, so when I set up a new OS install, I just run the script and copy my files over from my backup to my computer's SSD.

I love this method because I can easily install a different SSD, switch to a new computer, or just do a clean OS installation very easily.