自动备份点还原后有问题
This commit is contained in:
parent
c59d2f3f4c
commit
71049c3e2b
|
@ -1038,7 +1038,7 @@ restoreAuto() { #还原
|
|||
exit 7 #备份文件不存在,不能还原系统
|
||||
fi
|
||||
|
||||
if [ "$uuid" = "$auto_uuid" ]; then
|
||||
if [ "$uuid" = "{$auto_uuid}" ]; then
|
||||
m_isRetainUserData=true
|
||||
fi
|
||||
|
||||
|
|
|
@ -332,6 +332,10 @@ void MyBackupManager::autoBackUpForSystemUpdate_noreturn(const QString& autoback
|
|||
}
|
||||
backupWrapper.m_backupPaths << "/";
|
||||
backupWrapper.m_backupExcludePaths = Utils::getFromExcludePathsFile();
|
||||
backupWrapper.m_backupExcludePaths << "/home";
|
||||
backupWrapper.m_backupExcludePaths << "/root";
|
||||
backupWrapper.m_backupExcludePaths << "/data/home";
|
||||
backupWrapper.m_backupExcludePaths << "/data/root";
|
||||
backupWrapper.m_type = BackupType::BACKUP_SYSTEM;
|
||||
backupWrapper.m_iPosition = BackupPosition::LOCAL;
|
||||
backupWrapper.m_frontUserName = frontUserName;
|
||||
|
|
|
@ -299,7 +299,7 @@ void ParseBackupList::getCustomizePaths(QStringList &customizePaths)
|
|||
|
||||
QDomElement elePrefixPath = node.firstChildElement(PREFIXDESTPATH);
|
||||
if (!elePrefixPath.isNull()) {
|
||||
customizePaths << elePrefixPath.text();
|
||||
customizePaths << elePrefixPath.text() + BACKUP_SNAPSHOTS_PATH;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue