this post was submitted on 10 May 2024
1 points (100.0% liked)

Debian operating system

3216 readers
1 users here now

Debian is a free operating system (OS) for your computer. An operating system is the set of basic programs and utilities that make your computer run. Debian provides more than a pure OS: it comes with over 59000 packages, precompiled software bundled up in a nice format for easy installation on your machine.

founded 5 years ago
MODERATORS
 

What is the best way to back up as much as possible of Debian 12 on my laptop to a server that has SSH available? I am currently backing up my users /home/ folder, but I would like to be able to nuke and restore the system from a backup.

I have ventoy on an external drive if that helps any.

P.S. I would like to be able to do incremental backups too.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 0 points 1 year ago (4 children)

The standard answer: don't backup the system, automate its deployment instead. Backup only data.

[–] [email protected] 0 points 1 year ago* (last edited 1 year ago) (1 children)

Even for a home system? Not a fleet of data center servers. I am currently using rsync to backup /home/<>/ to the ssh server. I tend to make a lot of changes to the base Debian/KDE install.

[–] [email protected] 0 points 1 year ago (1 children)

What kind of changes? Package installation, removal and configuration? Use apt-mark showmanual to save list of manually installed packages, dpkg --get-selections | grep 'deinstall$' to save list of removed packages, debconf --get-selections to save debconf package settings, backup files that you edited in /etc. This should be enough for restoration, wouldn't take a long time for backup and avoid risk of filesystem inconsistency.

[–] [email protected] 0 points 2 months ago (1 children)

Installing specific things both from the repo and from elsewhere (Minecraft), Minor UI tweaks - move the panel to the left side (wide monitor), Konsole settings for colors, font(dotted zero), font size (bigger), 80x25 window. Probably others but that's all I remember for now.

[–] [email protected] 1 points 2 months ago

User settings are stored in the home directory, so you already have them backed up with rsync. If you didn't omit dotfiles, of course.

load more comments (2 replies)