异机还原不能还原/etc/fstab和/etc/.bootinfo两个文件,为了保留UUID

This commit is contained in:
zhaominyong 2022-05-19 16:54:40 +08:00
parent b3178da4b5
commit f078dde013
1 changed files with 6 additions and 0 deletions

View File

@ -308,6 +308,12 @@ QStringList UDiskSystemRestoreProxy::getRsyncArgs(SystemRestoreScene scene)
args << QString("--exclude=") + item;
}
// 异机还原
if (m_backupWrapper.m_isOtherMachine) {
args << "--exclude=/etc/.bootinfo";
args << "--exclude=/etc/fstab";
}
args << "--exclude-from" << m_excludeUserFile;
args << "--files-from" << m_userFile;