this post was submitted on 19 Oct 2023
5 points (85.7% liked)

Linux

48072 readers
1 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
 

I am not exactly well versed in the ways of backing up an entire Arch install and was hoping you wonderful folks here could help.

Background info:

So I installed Arch on my Lenovo Yoga 7i, after a bunch of mishaps, so that prompted me to want to create a backup image of my machine

So far I have arch with kde setup, Snapper and automatic snapshots for when installing and upgrading, and I have them accessible in my grub menu for recovery that way.

I am mildly a data hoarder I suppose, so I have tons of space.

What I am looking for is a way to backup the entire disk as an image. I have made an image with DD and a live distro.

Though I'm not 100% confident it would be an adequate full backup.

How do you all recommend making an entire system backup? Bonus points for being able to live boot it for testing

Any suggestions?

top 6 comments
sorted by: hot top controversial new old
[–] qwesx@kbin.social 6 points 2 years ago (1 children)

If you're using Snapper does that mean that you're using btrfs? If so, you can use btrfs send and btrfs receive to respectively save or restore a snapshot to/from a file. Well copied from zfs ;-)

[–] hellmo_luciferrari@lemmy.world 1 points 2 years ago

I am not familiar with btrfs send and receive. But I have a new rabbit hole to venture down. I don't have any ZFS storage setup, but I can expand! Thank you for the tip!

[–] magmaus3@szmer.info 3 points 2 years ago (1 children)

clonezilla can backup whole drives/partitions, but it doesn't allow booting from an image directly (by itself), but (with some tools) it's possible to mount a partition to a directory.

[–] hellmo_luciferrari@lemmy.world 2 points 2 years ago

May have to give Clonezilla a try. I have tried to use my medicat USB to backup to external HDD and it wasn't playing nicely with Macrium Reflect or the other backup tools on there.

[–] knobbysideup@lemm.ee 3 points 2 years ago* (last edited 2 years ago)

I would back up data (ie /home, /var, /etc) with Borg. If things break, just do a fresh install and restore data.

If a server, run it as a proxmox guest and snapshot the image on a schedule.

There are also things you could maybe do with ZFS.

[–] dr_jekell@lemmy.world 1 points 2 years ago

Timeshift is what you are looking for if you want a functional backup system.