fix(backup): elevate sudo in Makefile and guard mkdir after root check
- `make backup` now invokes `sudo tools/cmd/railiance-backup-s2` directly - Move `mkdir -p` in railiance-backup-s2 to after the root check so the script emits a clear error instead of a raw permission-denied failure Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
7e28399f69
commit
4e1a90032b
2 changed files with 3 additions and 2 deletions
2
Makefile
2
Makefile
|
|
@ -5,7 +5,7 @@ INVENTORY ?= ansible/hosts.ini
|
|||
##@ Safety Net
|
||||
|
||||
backup: ## Backup k3s etcd + Helm values + kubeconfig (age-encrypted, root required)
|
||||
tools/cmd/railiance-backup-s2
|
||||
sudo tools/cmd/railiance-backup-s2
|
||||
|
||||
restore: ## List available backups and print restore guide
|
||||
tools/cmd/railiance-restore-s2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue