this post was submitted on 14 Nov 2025
-14 points (20.8% liked)

Linux

10111 readers
593 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
 

I got fed up with spending weekends redoing themes, fixing package breakage, and hunting lost dotfiles whenever I swapped laptops. If you care about uptime and reproducibility more than distro-faith, stop treating your desktop like an altar and treat it like infrastructure: encrypt the disk, snapshot the root, manage dotfiles as code, and back up everything that matters. Do that and a dead SSD or a new laptop becomes a 30-minute restore, not a week-long grief spiral.

Do this in order: 1) Install with LUKS full-disk encryption and Btrfs subvolumes for @ and @home so snaps are atomic. 2) Enable automatic snapshots with Timeshift or snapper. 3) Export your package lists: Debian/Ubuntu: dpkg --get-selections > packages.txt; Arch: pacman -Qqe > pkglist.txt; also flatpak list --app > flatpaks.txt. 4) Put your dotfiles under version control and manage them with chezmoi or GNU Stow. 5) Use Flatpak for GUI apps, containerized toolchains (podman) for dev environments, and keep only system-critical packages in the distro manager. 6) Back up with Borg: borg init --encryption=repokey /path/to/repo ; borg create repo::$(date +%F) /home /etc --stats ; borg prune --keep-daily=7 --keep-weekly=4 --keep-monthly=6. 7) Keep a small, bootable USB with the exact kernel/tools you use so you can unlock LUKS and mount Btrfs snapshots. 8) Test restores quarterly: restore a snapshot to a spare partition and boot it. Do that for a year and tell me reinstalling is fun again.

Yes, it takes a few hours up front, but imagine swapping a motherboard or recovering from ransomware and having a known-good snapshot plus a package list and borg repo waiting. Stops the doomscrolling and gets you back to actually using Linux.

OC by @Bagel@lemmings.world

top 7 comments
sorted by: hot top controversial new old
[–] onlinepersona@programming.dev 5 points 12 hours ago

Every year? What in the world are you doing with your hardware and software?

[–] nyan@lemmy.cafe 1 points 9 hours ago* (last edited 9 hours ago)

Seems awfully elaborate for something I can accomplish by backing up a few text files and directories of same. The only real issue I had with spinning up the new laptop this spring was due to an underdocumented and partially broken UEFI BIOS that I had to figure out how to work around. Once I got past that, transferring other packages and settings was trivial.

[–] 30p87@feddit.org 3 points 15 hours ago* (last edited 14 hours ago)

Easy:

  1. Swap MB
  2. reinstall Bootloader
  3. You're done

Bonus for switching devices:

  1. Liveboot on receiving device, do nc -lp 42069 > /dev/sda (or whatever disk you want)
  2. Liveboot on original device, do dd if=/dev/sda | nc 42069
  3. Reinstall bootloader, maybe change fstab

Problems I had:

  • Had to uninstall old drivers (eg. Nvidia)
  • Had to redo systemd-creds, as the receiving server had no TPM
[–] ImgurRefugee114@reddthat.com 8 points 20 hours ago* (last edited 20 hours ago)

NixOS users over here like

look at what they need just to mimic a fraction of our power

(75% joking; you'd still need to set up / do a lot of this)

[–] y0kai@lemmy.dbzer0.com 8 points 20 hours ago (1 children)
[–] Zozano@aussie.zone 1 points 16 hours ago

*preferably

[–] illusionist@lemmy.zip 1 points 17 hours ago

How to do that with distrobox?