diff --git a/backup-daemon/data/backup-auto-efi b/backup-daemon/data/backup-auto-efi index b4caa18..094e67a 100755 --- a/backup-daemon/data/backup-auto-efi +++ b/backup-daemon/data/backup-auto-efi @@ -1038,7 +1038,7 @@ restoreAuto() { #还原 exit 7 #备份文件不存在,不能还原系统 fi - if [ "$uuid" = "$auto_uuid" ]; then + if [ "$uuid" = "{$auto_uuid}" ]; then m_isRetainUserData=true fi diff --git a/backup-daemon/mybackupmanager.cpp b/backup-daemon/mybackupmanager.cpp index bb5a071..a2d521c 100755 --- a/backup-daemon/mybackupmanager.cpp +++ b/backup-daemon/mybackupmanager.cpp @@ -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; diff --git a/backup-daemon/parsebackuplist.cpp b/backup-daemon/parsebackuplist.cpp index 6208c58..e5cbbb7 100755 --- a/backup-daemon/parsebackuplist.cpp +++ b/backup-daemon/parsebackuplist.cpp @@ -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; } } }