From cc06215319b977afc6459491cf77ce8d67286d7b Mon Sep 17 00:00:00 2001 From: Carlos Tello Date: Mon, 21 Sep 2026 10:17:42 -0300 Subject: [PATCH] Avoid backing up environment secret values --- backup_ubuntu_config.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backup_ubuntu_config.sh b/backup_ubuntu_config.sh index b417d58..a6b46ef 100755 --- a/backup_ubuntu_config.sh +++ b/backup_ubuntu_config.sh @@ -103,7 +103,8 @@ capture_shell disks 'df -hT; echo; findmnt' capture_shell network 'ip -brief address; echo; ip route; echo; resolvectl status 2>/dev/null || true' capture_shell users 'getent passwd | awk -F: '\''$3 >= 1000 || $1 == "root" {print $1 ":" $3 ":" $4 ":" $6}'\''' capture_shell mounts 'mount' -capture_shell environment 'printenv | sort' +# Registrar nombres, no valores que puedan contener credenciales. +capture_shell environment 'printenv | cut -d= -f1 | sort -u' capture_shell nvidia 'command -v nvidia-smi && nvidia-smi -q || true' capture_shell ollama 'command -v ollama && ollama list || true' capture_shell versions 'command -v node && node --version || true; command -v npm && npm --version || true; command -v python3 && python3 --version || true; command -v ollama && ollama --version || true; command -v openclaw && openclaw --version || true'