还原后仍然保持系统激活状态,推广到主线
This commit is contained in:
parent
10cfaf263a
commit
d81fbd0a72
|
@ -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";
|
||||
|
||||
|
|
|
@ -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
|
||||
#这两行要一致
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in New Issue