Full System Backup
I'm looking to backup the entire contents of my Arch Linux filesystem. I haven't done many backups in my time as a Linux user, so I'm quite unfamiliar with the process, though I've heard it isn't difficult.
I have a 1TB external SSD that I can temporarily move it to. When I installed this system, I was a complete computer science noob, so I made my root partition (206GiB) much larger than my home partition (28GiB). I have 100GiB used in my root partition and 12GiB used in my home partition. The only major differences I want between this instance of my OS and the new version is obviously an altered partition table, but I want the type to be an encrypted LVM system. I'm familiar with all of the necessary utilities to complete this end, and will only be needing advice performing a backup.
Any utilities or article references that I could use to store all of my important config files to a single location would be much appreciated. If there's any information that I left out that would be useful in giving me recommendations I can supply those upon request. Thanks all!
Edited 26 Jul 2021. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 2 · 75% up
- Kind
- Text
- ID
- orp8ob
6 comments
I’m not exactly sure of what you’re looking for in your question (specifically the second paragraph), but for some recommendations and information for backing up a Linux system see this thread.
Personally, for automated backups of essential system information, I currently use Timeshift.
Thank you for your input. All I'm looking for information on is backing up a Linux system, so the reference is very useful.
If you have a big enough drive, you can clone your disk byte for byte with dd. To operate at a file system level, look at using rsync. For rsync, start on a small folder until you’ve got your arguments right. Remember that symlinks will still point to the same path, which may not exist if you only backup a portion of your drive.
Once you’ve successfully backed up your files, verify the backup by inspecting key files, check your permissions/ownership, and attempt a restore in a VM. Also, double check your dotfiles (e.g. .bashrc) were successfully backed up too. If you need a specific subset of files, backup those up manually with cp just in case before you repartition or reinstall.
The Arch wiki has some solid info too: https://wiki.archlinux.org/title/System_backup
this is not what "backup" means
You should provide more context to statements such as these.
So then it would be more of a migration? I don't need help with redesigning the filesystem structure, I just want to make sure I have a way to preserve all of my documents, binaries, necessary startup scripts, etc on an external device.
A quick google search returns: "A system backup is the process of backing up the operating system, files and system-specific useful/essential data.Backup is a process in which the state, files and data of a computer system are duplicated to be used as a backup or data substitute when the primary system data is corrupted, deleted or lost."
My goal is to do exactly that, then restore my system state when I've wiped my laptop and reinstalled with my new design parameters.