还原后仍然保持系统激活状态,推广到主线

This commit is contained in:
赵民勇 2023-03-01 15:55:34 +08:00
parent 10cfaf263a
commit d81fbd0a72
4 changed files with 20 additions and 0 deletions

View File

@ -270,6 +270,12 @@ QStringList CustomizeSystemRestoreProxy::getRsyncArgs(CustomizeSystemRestoreScen
args << "--exclude=/usr/share/initramfs-tools/hooks/kybackup-hooks"; args << "--exclude=/usr/share/initramfs-tools/hooks/kybackup-hooks";
args << "--exclude=/usr/share/initramfs-tools/scripts/local-bottom/kybackup"; args << "--exclude=/usr/share/initramfs-tools/scripts/local-bottom/kybackup";
// 还原后仍然保持激活状态
args << "--exclude=/etc/LICENSE";
args << "--exclude=/etc/.kyinfo";
args << "--exclude=/etc/.kyactivation";
args << "--exclude=/etc/.kyhwid";
// 文件安全箱 // 文件安全箱
args << "--exclude=/data/security-dir"; args << "--exclude=/data/security-dir";

View File

@ -1145,6 +1145,8 @@ restoreAuto() { #还原
excludes="${excludes} --exclude=/var/log" excludes="${excludes} --exclude=/var/log"
excludes="${excludes} --exclude=*/backup/snapshots" excludes="${excludes} --exclude=*/backup/snapshots"
excludes="${excludes} --exclude=/data/security-dir" excludes="${excludes} --exclude=/data/security-dir"
# 还原后仍然保持激活状态
excludes="${excludes} --exclude=/etc/LICENSE --exclude=/etc/.kyinfo --exclude=/etc/.kyactivation --exclude=/etc/.kyhwid"
#yi jian huan yuan #yi jian huan yuan
if [ ! -e "${restoreDir}/data/data" ]; then if [ ! -e "${restoreDir}/data/data" ]; then
#这两行要一致 #这两行要一致

View File

@ -285,6 +285,12 @@ QStringList SystemRestoreProxy::getRsyncArgs(SystemRestoreScene scene)
args << "--exclude=/usr/share/initramfs-tools/hooks/kybackup-hooks"; args << "--exclude=/usr/share/initramfs-tools/hooks/kybackup-hooks";
args << "--exclude=/usr/share/initramfs-tools/scripts/local-bottom/kybackup"; args << "--exclude=/usr/share/initramfs-tools/scripts/local-bottom/kybackup";
// 还原后仍然保持激活状态
args << "--exclude=/etc/LICENSE";
args << "--exclude=/etc/.kyinfo";
args << "--exclude=/etc/.kyactivation";
args << "--exclude=/etc/.kyhwid";
// 文件安全箱 // 文件安全箱
args << "--exclude=/data/security-dir"; args << "--exclude=/data/security-dir";

View File

@ -288,6 +288,12 @@ QStringList UDiskSystemRestoreProxy::getRsyncArgs(SystemRestoreScene scene)
args << "--exclude=/usr/share/initramfs-tools/hooks/kybackup-hooks"; args << "--exclude=/usr/share/initramfs-tools/hooks/kybackup-hooks";
args << "--exclude=/usr/share/initramfs-tools/scripts/local-bottom/kybackup"; args << "--exclude=/usr/share/initramfs-tools/scripts/local-bottom/kybackup";
// 还原后仍然保持激活状态
args << "--exclude=/etc/LICENSE";
args << "--exclude=/etc/.kyinfo";
args << "--exclude=/etc/.kyactivation";
args << "--exclude=/etc/.kyhwid";
// 文件安全箱 // 文件安全箱
args << "--exclude=/data/security-dir"; args << "--exclude=/data/security-dir";