v2.7: 排除/etc/pam.d避免SSH认证问题

This commit is contained in:
mango
2026-02-02 10:02:20 +08:00
parent 1f6c5f1e7c
commit 056363a35d

View File

@@ -258,6 +258,7 @@ create_snapshot() {
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"
if [ "$BACKUP_DIRS" = "/" ]; then
tar $excludes -czf "$snapshot_path" / 2>/dev/null || true