this post was submitted on 29 Jul 2023
16 points (86.4% liked)
Linux
48655 readers
403 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
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
After all the posts about backups, I started looking at mine with a more critical eye and discovered ways that it's lacking. I am using duplicity because of the number of backends (I'm using rsync), my ancient NAS has a module for an rsync server, it can do incremental, it can encrypt the backups and it is available on all my distros' package managers.
I am excluding files from packages that haven't changed and other things that can be downloaded, like Docker images. I've used it a few times to restore a misplaced "sudo rm -rf . " in a subdir of home with success! But, I realized that a full restore will be time consuming and difficult because I don't know my LVM structure, installed packages, etc.
I call duplicity with a script via cron, so I am updating it to dump installed packages, LVM info, sfdisk structure, LUKS headers and fstab into a "config" backup. I'll have another backup of everything else in another backup archive. My plan is to boot from a USB disk, restore the config backup to a RAM disk, format the drives, apply the LVM structure, set up LUKS from the saved config info, mount the disks to restore via the saved fstab, then use the package manager to install the packages from the config file, then restore the backup on top of that.
It's a little more work, but I'm hoping that the backups will he small enough that I don't need to buy more drives to keep my backups.
I do have a mysql database that I dump to a backup file which gets scooped up in the drive backup, so I don't need to take the DB offline and I have my containers' volumes on a btrfs disk, so I can just take a snapshot and back that up. I haven't updated the script for that yet, but it's currently working with LVM snapshots.
HTH, pray you never really need the backup!