diff --git a/backup-daemon/customizesystemrestoreproxy.cpp b/backup-daemon/customizesystemrestoreproxy.cpp index 7273cca..146be35 100755 --- a/backup-daemon/customizesystemrestoreproxy.cpp +++ b/backup-daemon/customizesystemrestoreproxy.cpp @@ -270,6 +270,12 @@ QStringList CustomizeSystemRestoreProxy::getRsyncArgs(CustomizeSystemRestoreScen args << "--exclude=/usr/share/initramfs-tools/hooks/kybackup-hooks"; 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"; diff --git a/backup-daemon/data/backup-auto-efi b/backup-daemon/data/backup-auto-efi index e8d4dbb..9416104 100755 --- a/backup-daemon/data/backup-auto-efi +++ b/backup-daemon/data/backup-auto-efi @@ -1145,6 +1145,8 @@ restoreAuto() { #还原 excludes="${excludes} --exclude=/var/log" excludes="${excludes} --exclude=*/backup/snapshots" excludes="${excludes} --exclude=/data/security-dir" + # 还原后仍然保持激活状态 + excludes="${excludes} --exclude=/etc/LICENSE --exclude=/etc/.kyinfo --exclude=/etc/.kyactivation --exclude=/etc/.kyhwid" #yi jian huan yuan if [ ! -e "${restoreDir}/data/data" ]; then #这两行要一致 diff --git a/backup-daemon/systemrestoreproxy.cpp b/backup-daemon/systemrestoreproxy.cpp index 742e4dc..b3376e8 100755 --- a/backup-daemon/systemrestoreproxy.cpp +++ b/backup-daemon/systemrestoreproxy.cpp @@ -285,6 +285,12 @@ QStringList SystemRestoreProxy::getRsyncArgs(SystemRestoreScene scene) args << "--exclude=/usr/share/initramfs-tools/hooks/kybackup-hooks"; 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"; diff --git a/backup-daemon/udisksystemrestoreproxy.cpp b/backup-daemon/udisksystemrestoreproxy.cpp index e2e7567..94c9f50 100755 --- a/backup-daemon/udisksystemrestoreproxy.cpp +++ b/backup-daemon/udisksystemrestoreproxy.cpp @@ -288,6 +288,12 @@ QStringList UDiskSystemRestoreProxy::getRsyncArgs(SystemRestoreScene scene) args << "--exclude=/usr/share/initramfs-tools/hooks/kybackup-hooks"; 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";