r/linuxquestions • u/Interesting_Shoe3959 • 7h ago
Advice Back-up under root password[Arch]
/r/archlinux/comments/1ycl8cq/backup_under_root_password/
1
Upvotes
r/linuxquestions • u/Interesting_Shoe3959 • 7h ago
2
u/ipsirc 7h ago
Encrypt it, (and btw. there is no sudo password at all).
3
u/Dry_Action5905 7h ago
A root password won't really protect it, because anyone with sudo can just become root and delete or read the backup anyway. What works better is making the backup unreachable from the running system. Keep it on an external drive that stays unplugged except when you run the backup, or on another machine. If it has to stay attached, encrypt the repository with a passphrase only you know. Restic or borg are good for that and they also give you snapshots with deduplication. Locking a directory with chmod 700 as root is fine against accidents, but not against someone who has your user password.