this post was submitted on 20 Jul 2024
374 points (100.0% liked)
Technology
67536 readers
7476 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related news or articles.
- Be excellent to each other!
- 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, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
- Check for duplicates before posting, duplicates may be removed
- Accounts 7 days and younger will have their posts automatically removed.
Approved Bots
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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.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.
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.