this post was submitted on 20 Jul 2024
366 points (96.9% liked)
Technology
59495 readers
3114 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related content.
- Be excellent to each another!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, to ask if your bot can be added please contact us.
- Check for duplicates before posting, duplicates may be removed
Approved Bots
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Windows 7 was my last windows. Since then it's been Linux on all machines. It was easy to see where Microsoft were going. And they will continue to go down this route.
When you run windows, it's not your computer.
I'm getting tired of Microsoft reading my data. What's you backup strategy on linux?
Not OP but:
Separate the system and home partition, first of all. The strategies are usually different.
Many distros integrate Timeshift out of the box to create system partition snapshots before every update, and to be able to restore them from the boot menu. Using BTRFS for the system partition makes this even better.
This is usually all that people need in regards to the system, but you can also take regular backups (see below) of things like /etc, the list of installed packages and things like that.
For personal files I prefer Borg Backup because it is incremental, does compression, deduplication, encryption, checksums & recovery.
Borg works with repositories, which can be on local disk, on a removable disk, or remote. If remote, they are tunneled over SSH. It can also export/import tarballs for more exotic scenarios like moving snapshots between different repositories or backing up data to optical discs.
You can use Borg from the CLI and there are also UI apps that make it easier. Pika Backup is a simpler one, Vorta is a more advanced one. I've set up family members with Pika and after preparing it for them all they have to do is plug in the backup HDD, open Pika, and hit the big "backup now" button.
There are also online services that support Borg repositories specifically, and for anything that doesn't you can export tarballs and back them up as regular files, completely transparently from the service.
rclone
is a cli tool that supports a large number of online storage services. You can use it with borg snapshots or you can use it to back up your files directly — it resembles rsync somewhat and can also do encryption iirc.Good writeup.
But why separate /home?
I get that it makes it easy to just grab the home partition in full, but grabbing just your own home folder isn't any more difficult than grabbing a home partition.
And it makes it really fucking annoying to manage storage between / and /home. You have to pick how much disk space you want for your own things and how much you want for installing things, and changing it later is a giant PIA. The one time I did it I kept running out of space on one or the other.
Separate root fs makes it easier for timeshift. Snapshots are a different beast from backups.
Also makes it easy to install another distro and pick up where you left off with the old home.
If you alocate 50-60 GB for system it should be ok. Things like Flatpak or Steam can put their files in home.
How? I use timeshift. I don't see what you mean.
Sure, but how often do you distrohop? Not worth the trouble to have to potentielly mess with partitions during everyday use.
When I do reinstall, I've just copied my home folder over to a secondary drive, then back again.
That's the entire boot drive on some of my machines. Not to mention that I have gone well beyond that for root on some systems. You just can't know the numbers in advance, and when you want to just use a system for something, it's really annoying to have extra steps.
Making home a separate partition makes it really hard to use the full capacity of the drive, should you need to. Which people do need to do sometimes, even if only temporarily.
Doing this might make sense if you have terabytes of storage to throw around, enough to never fill any of your volumes. It has benefits, but not enough to make it good advice across the board, which is why I question it.
I don’t see real advantages for partitioning this way that outweigh the negatives - for desktop usage. For servers having separate home (and/or other dirs) partitions is great, as user fluff won’t kill the ability tor ‘more important processes’ to store stuff. If everything is kept on a single partition, the user is essentially able to DoS the system by filling up space.
There's etckeeper too.
Btw, etc is for system/default settings.
I don't store any data on my home machines. Anything important is on my NAS which then gets backed up to Backblaze, and to a NAS as my parents house.
I can wipe my laptop and have apps set up again in an hour, and my desktop mainly stores games I can just redownload from Steam.
simply timeshift backing up the system on ssd. random important stuff, tv shows etc on hdd and backup of the hdd on an external hdd. pictures and other important files also on phone storage.
Automatic system snapshots via BTRFS. Backup to external disk via rsync.
I have a synology NAS with two disks in raid config, where I store backups from the other machines over the home network. So one disk can fail without issues. And I backup the Nas to a hetzner storage box as well. They are pretty cheap. :)
Windows2000 was my last. After having managed to work in IT and using Linux on my desktop, I started a new job last year which required me to use Windows11. I find it quite awkward.
Luckily WSL is a thing.