this post was submitted on 16 Jul 2025
58 points (98.3% liked)

Linux

56466 readers
1338 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

Hello there! Here's the thing: I got some old HDD for my Debian home server, and now that I have plenty of disk space I want to keep a backup of the OS, so that if something accidentally breaks (either SW or HW) I can quickly fix it.

now the question is: which directory should I include and which should I exclude from the backup? I use docker a lot, is there any docker-specific directory that I should back up?

you are viewing a single comment's thread
view the rest of the comments
[–] bjoern_tantau@swg-empire.de 4 points 2 days ago (2 children)

I back up all user data, for me that's some folders in /var, all of /etc (don't need everything, but it's small enough), mysqldumps and pgsqldumps of my databases and the output of dpkg --get-selections. And the backup script itself.

Everything is rsynced to a server in another location.

I want to switch to Borg backup but haven't found the time yet.

[–] Cricket@lemmy.zip 2 points 1 day ago

I want to switch to Borg backup but haven’t found the time yet.

Since you haven't switched yet, perhaps consider restic too. I looked into Borg when I was trying to decide which backup software to use, but ended up deciding on restic instead and using resticprofile to ease implementation.

[–] TurboLag@lemmings.world 6 points 2 days ago (1 children)

I recommend Borgmatic, a declarative way to set up borg backups. I find it much nicer than a having a backup.sh script and the configuration is really straight-forward.

[–] tubbadu@lemmy.kde.social 3 points 2 days ago

This is actually very interesting! I'll gladly look into it, thank you very much!