From e2a349876417ae20dd145859a219fd78f61325f1 Mon Sep 17 00:00:00 2001 From: mango Date: Mon, 2 Feb 2026 10:11:03 +0800 Subject: [PATCH] =?UTF-8?q?v2.8:=20=E6=8E=92=E9=99=A4=E6=95=B4=E4=B8=AA/et?= =?UTF-8?q?c=E7=9B=AE=E5=BD=95=E9=81=BF=E5=85=8DSSH=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vps-snapshot.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/vps-snapshot.sh b/vps-snapshot.sh index 2fc8ff4..35bcfcd 100755 --- a/vps-snapshot.sh +++ b/vps-snapshot.sh @@ -255,10 +255,7 @@ create_snapshot() { excludes+=" --exclude=/run --exclude=/tmp --exclude=/mnt" excludes+=" --exclude=/media --exclude=/lost+found" excludes+=" --exclude=${LOCAL_DIR} --exclude=/var/cache" - excludes+=" --exclude=/etc/ssh --exclude=/root/.ssh" - excludes+=" --exclude=/etc/shadow --exclude=/etc/passwd" - excludes+=" --exclude=/etc/hostname --exclude=/etc/hosts" - excludes+=" --exclude=/etc/pam.d" + excludes+=" --exclude=/etc" if [ "$BACKUP_DIRS" = "/" ]; then tar $excludes -czf "$snapshot_path" / 2>/dev/null || true