v2.7: 排除/etc/pam.d避免SSH认证问题
This commit is contained in:
@@ -258,6 +258,7 @@ create_snapshot() {
|
|||||||
excludes+=" --exclude=/etc/ssh --exclude=/root/.ssh"
|
excludes+=" --exclude=/etc/ssh --exclude=/root/.ssh"
|
||||||
excludes+=" --exclude=/etc/shadow --exclude=/etc/passwd"
|
excludes+=" --exclude=/etc/shadow --exclude=/etc/passwd"
|
||||||
excludes+=" --exclude=/etc/hostname --exclude=/etc/hosts"
|
excludes+=" --exclude=/etc/hostname --exclude=/etc/hosts"
|
||||||
|
excludes+=" --exclude=/etc/pam.d"
|
||||||
|
|
||||||
if [ "$BACKUP_DIRS" = "/" ]; then
|
if [ "$BACKUP_DIRS" = "/" ]; then
|
||||||
tar $excludes -czf "$snapshot_path" / 2>/dev/null || true
|
tar $excludes -czf "$snapshot_path" / 2>/dev/null || true
|
||||||
|
|||||||
Reference in New Issue
Block a user