r/archlinux • u/Interesting_Shoe3959 • 1d ago
QUESTION Back-up under root password
I want to make a snapshot/back-up of my system, and lock it under root password that i had set during archinstall. So that not even people who know my sudo password could harm/delete it. Is there any way to keep it safe from anything?
2
Upvotes
14
u/cinaed666 1d ago
A back-up on the same system is not a backup. It's also pointless on a non-encrypted disk.
13
u/JohnSane 1d ago
Print it and put it into an underwater vault.
6
u/anxious_and_stupid 1d ago edited 1d ago
Edit: I misread the question
For backup I think it be better to just make a copy and put it in a LUKS partition on seperate drive/external drive or whatever along with the checksum
And of course... don't lock LUKs with your root password... use different password
5
u/dumbasPL 1d ago edited 1d ago
Root password isn't saved, only the hash is. Furthermore, you can't save the password anywhere on the system, as anyone who has sudo password can read EVERYTHING. So you do have to type it every time, or use a dedicated key management system (aka cli password manager)
What you really want are just classic encrypted backups. Something like Borg backup. You would have to type the password for the backup each time, because again, anyone with root access (including via sudo) can read everything on the system.
Edit: and regarding "harm or delete it", you need off site backups for that, also access controlled, without a saved password (and preferably in append only mode, but then you have to clean old backups manually). Anything that's on this machine can be deleted by someone with sudo access.
0
u/[deleted] 1d ago
[deleted] — view deleted comment