143496 【江西银行】【备份还原】一键还原之后,开始菜单、任务栏、桌面不应该存在需求要求之外的图标图标

This commit is contained in:
赵民勇 2023-01-10 17:51:15 +08:00
parent be7bfcc405
commit de6e2bf9f4
5 changed files with 19 additions and 11 deletions

View File

@ -251,6 +251,11 @@ QStringList CustomizeSystemRestoreProxy::getRsyncArgs(CustomizeSystemRestoreScen
args << "--exclude=/etc/NetworkManager";
args << "--exclude=/var/lib/pam";
// 安装kylin
args << "--exclude=/usr/share/applications/kylin-os-installer.desktop";
args << "--exclude=*/.local/share/applications/kylin-os-installer.desktop";
args << "--exclude=/etc/xdg/autostart/kylin-os-installer.desktop";
// 此处不要break因为还需要排除SYSTEM_RESTORE中的项
case CustomizeSystemRestoreScene::SYSTEM_RESTORE :
@ -267,9 +272,6 @@ QStringList CustomizeSystemRestoreProxy::getRsyncArgs(CustomizeSystemRestoreScen
// 文件安全箱
args << "--exclude=/data/security-dir";
// 安装kylin
args << "--exclude=/usr/share/applications/kylin-os-installer.desktop";
args << "--exclude=*/.local/share/applications/kylin-os-installer.desktop";
for (const QString& item : excludes) {
args << QString("--exclude=") + item;

View File

@ -1109,6 +1109,9 @@ restoreAuto() { #还原
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/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 --exclude=/etc/NetworkManager --exclude=/var/lib/pam"
excludes="${excludes} --exclude=/usr/share/applications/kylin-os-installer.desktop"
excludes="${excludes} --exclude=*/.local/share/applications/kylin-os-installer.desktop"
excludes="${excludes} --exclude=/etc/xdg/autostart/kylin-os-installer.desktop"
#如果是990排除/data否则排除/data/usershare
if [ x${is_990_9a0} == x"true" ]; then
@ -1142,8 +1145,6 @@ restoreAuto() { #还原
excludes="${excludes} --exclude=/var/log"
excludes="${excludes} --exclude=*/backup/snapshots"
excludes="${excludes} --exclude=/data/security-dir"
excludes="${excludes} --exclude=/usr/share/applications/kylin-os-installer.desktop"
excludes="${excludes} --exclude=*/.local/share/applications/kylin-os-installer.desktop"
#yi jian huan yuan
if [ ! -e "${restoreDir}/data/data" ]; then
#这两行要一致

View File

@ -266,6 +266,11 @@ QStringList SystemRestoreProxy::getRsyncArgs(SystemRestoreScene scene)
args << "--exclude=/etc/NetworkManager";
args << "--exclude=/var/lib/pam";
// 安装kylin
args << "--exclude=/usr/share/applications/kylin-os-installer.desktop";
args << "--exclude=*/.local/share/applications/kylin-os-installer.desktop";
args << "--exclude=/etc/xdg/autostart/kylin-os-installer.desktop";
// 此处不要break因为还需要排除SYSTEM_RESTORE中的项
case SystemRestoreScene::SYSTEM_RESTORE :
@ -282,9 +287,6 @@ QStringList SystemRestoreProxy::getRsyncArgs(SystemRestoreScene scene)
// 文件安全箱
args << "--exclude=/data/security-dir";
// 安装kylin
args << "--exclude=/usr/share/applications/kylin-os-installer.desktop";
args << "--exclude=*/.local/share/applications/kylin-os-installer.desktop";
// 以前的出厂备份和grub备份没有备份/data还原时需要判断/data是否存在如不存在需要屏蔽掉不然会将主机上的/data删除造成问题
// 此为兼容以前备份的老数据而改,等以后老的备份估计不存在了可已去掉

View File

@ -269,6 +269,11 @@ QStringList UDiskSystemRestoreProxy::getRsyncArgs(SystemRestoreScene scene)
args << "--exclude=/etc/NetworkManager";
args << "--exclude=/var/lib/pam";
// 安装kylin
args << "--exclude=/usr/share/applications/kylin-os-installer.desktop";
args << "--exclude=*/.local/share/applications/kylin-os-installer.desktop";
args << "--exclude=/etc/xdg/autostart/kylin-os-installer.desktop";
// 此处不要break因为还需要排除SYSTEM_RESTORE中的项
case SystemRestoreScene::SYSTEM_RESTORE :
@ -285,9 +290,6 @@ QStringList UDiskSystemRestoreProxy::getRsyncArgs(SystemRestoreScene scene)
// 文件安全箱
args << "--exclude=/data/security-dir";
// 安装kylin
args << "--exclude=/usr/share/applications/kylin-os-installer.desktop";
args << "--exclude=*/.local/share/applications/kylin-os-installer.desktop";
// 以前的出厂备份和grub备份没有备份/data还原时需要判断/data是否存在如不存在需要屏蔽掉不然会将主机上的/data删除造成问题
// 此为兼容以前备份的老数据而改,等以后老的备份估计不存在了可已去掉

View File

@ -10,4 +10,5 @@ backup-daemon/data/initramfs-tools/hooks/kybackup-hooks usr/share/initramfs-too
backup-daemon/data/initramfs-tools/scripts/local-bottom/kybackup usr/share/initramfs-tools/scripts/init-bottom
backup-daemon/data/initramfs-tools/conf-hooks.d/kybackup usr/share/initramfs-tools/conf-hooks.d
kybackup/yhkylin-backup-tools.desktop usr/share/applications/
backup-daemon/backup-daemon.desktop usr/share/applications/
data/kybackup/* usr/share/kylin-user-guide/data/guide/kybackup