域用户保留用户数据还原时再屏蔽一些文件

This commit is contained in:
赵民勇 2022-10-09 16:50:33 +08:00
parent f61c7c94bb
commit 93e9082f24
4 changed files with 14 additions and 1 deletions

View File

@ -244,6 +244,10 @@ QStringList CustomizeSystemRestoreProxy::getRsyncArgs(CustomizeSystemRestoreScen
args << "--exclude=/etc/hedron"; args << "--exclude=/etc/hedron";
args << "--exclude=/etc/kcm"; args << "--exclude=/etc/kcm";
args << "--exclude=/usr/hedron/hedronagent"; args << "--exclude=/usr/hedron/hedronagent";
args << "--exclude=/etc/.kyinfo";
args << "--exclude=/etc/LICENSE";
args << "--exclude=/etc/ssl/certs";
args << "--exclude=/usr/share/ca-certificates";
// 此处不要break因为还需要排除SYSTEM_RESTORE中的项 // 此处不要break因为还需要排除SYSTEM_RESTORE中的项

View File

@ -1101,7 +1101,8 @@ restoreAuto() { #还原
#下面是域用户相关信息,保留用户数据还原后不退域 #下面是域用户相关信息,保留用户数据还原后不退域
excludes="${excludes} --exclude=/etc/sssd --exclude=/var/lib/sss --exclude=/usr/share/sssd --exclude=/etc/ipa --exclude=/etc/krb5.keytab" excludes="${excludes} --exclude=/etc/sssd --exclude=/var/lib/sss --exclude=/usr/share/sssd --exclude=/etc/ipa --exclude=/etc/krb5.keytab"
excludes="${excludes} --exclude=/etc/krb5.conf --exclude=/var/lib/ipa-client --exclude=/etc/nsswitch.conf --exclude=/etc/pam.d --exclude=/etc/hosts" excludes="${excludes} --exclude=/etc/krb5.conf --exclude=/var/lib/ipa-client --exclude=/etc/nsswitch.conf --exclude=/etc/pam.d --exclude=/etc/hosts"
excludes="${excludes} --exclude=/etc/hedron --exclude=/etc/hedron --exclude=/etc/kcm --exclude=/usr/hedron/hedronagent" excludes="${excludes} --exclude=/etc/hostname --exclude=/etc/hedron --exclude=/etc/kcm --exclude=/usr/hedron/hedronagent --exclude=/etc/.kyinfo --exclude=/etc/LICENSE"
excludes="${excludes} --exclude=/etc/ssl/certs --exclude=/usr/share/ca-certificates"
#如果是990排除/data否则排除/data/usershare #如果是990排除/data否则排除/data/usershare
if [ x${is_990_9a0} == x"true" ]; then if [ x${is_990_9a0} == x"true" ]; then

View File

@ -259,6 +259,10 @@ QStringList SystemRestoreProxy::getRsyncArgs(SystemRestoreScene scene)
args << "--exclude=/etc/hedron"; args << "--exclude=/etc/hedron";
args << "--exclude=/etc/kcm"; args << "--exclude=/etc/kcm";
args << "--exclude=/usr/hedron/hedronagent"; args << "--exclude=/usr/hedron/hedronagent";
args << "--exclude=/etc/.kyinfo";
args << "--exclude=/etc/LICENSE";
args << "--exclude=/etc/ssl/certs";
args << "--exclude=/usr/share/ca-certificates";
// 此处不要break因为还需要排除SYSTEM_RESTORE中的项 // 此处不要break因为还需要排除SYSTEM_RESTORE中的项

View File

@ -262,6 +262,10 @@ QStringList UDiskSystemRestoreProxy::getRsyncArgs(SystemRestoreScene scene)
args << "--exclude=/etc/hedron"; args << "--exclude=/etc/hedron";
args << "--exclude=/etc/kcm"; args << "--exclude=/etc/kcm";
args << "--exclude=/usr/hedron/hedronagent"; args << "--exclude=/usr/hedron/hedronagent";
args << "--exclude=/etc/.kyinfo";
args << "--exclude=/etc/LICENSE";
args << "--exclude=/etc/ssl/certs";
args << "--exclude=/usr/share/ca-certificates";
// 此处不要break因为还需要排除SYSTEM_RESTORE中的项 // 此处不要break因为还需要排除SYSTEM_RESTORE中的项