Full system backup
Is there anyway to backup my arch install with all my packages, my settings, wm, my whole UI setup?
Something that i can restore later to make a clone of my UI and everything else when I freshly install arch again
About this post
- Posted
- Archived
- Score
- 13 · 88% up
- Kind
- Text
- ID
- 115iktp
15 comments
rsyncworks for mehttps://wiki.archlinux.org/title/Rsync#Full_system_backup
Rescuezilla/clonezilla would likely be the easiest.
There are many ways to do that. You can use the "dd" command to create an image of your entire disk and then use it again to flash it to another disk.
Is there any guide for this. How do I create an image and flash it. I'm new to linux
There is a section for disk cloning in the archwiki
It is very simple, when use dd you choose an input file (if) and an output file (of, the output file doesn't need to exist because it will be created if it doesn't). All the content of the input file will be cloned to the output file. So basically you can use your original disk as input file and your new disk as the output file and everything will be cloned. Or you could use your original disk as input file and a regular file as the output file then get your new disk and use the file you created and stored somewhere as input and the new disk as output file.
Your disks are represented as a file in Linux in the /dev directory usually as /dev/sda, /dev/sdb, /dev/sdc and so on. The partitions are /dev/sda1, /dev/sda2, /dev/sdb1 and so on. Ignore the partitions and clone the entire disk if you want all the contents of the disk cloned.
Borg/borgmatic?
Borgmatic is the way
I've used dd through 3 laptops, 2 analog hard drives and now on my 2nd SSD - with the same system.
It's a little advanced but very powerful.
Please note ; I've also accidentally wiped out the entire system. Be careful.
How did you wipe it. Asking to avoid
If memory serves me correctly, I had cleaned the old drive of data using dd... I fat fingered - even though I have small hands for a guy - my bash history recall and well that's not the command from history I meant to run....
Now..... DD.....at the prompt means.... Slow the f**k down.
use Timeshift for / (systemfiles) and BackInTime for /home. After a new install use the applications to "update" to the saved settings.
Deleted before we saved it.