From 78f249c1b192adf6eec6e70724274942df3f2ee2 Mon Sep 17 00:00:00 2001 From: zhaominyong Date: Fri, 27 May 2022 17:20:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E9=87=8F=E5=A4=87=E4=BB=BD=E7=9A=84?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backup-daemon/systembackupproxy.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backup-daemon/systembackupproxy.cpp b/backup-daemon/systembackupproxy.cpp index 6ecf8cb..8fbbd43 100755 --- a/backup-daemon/systembackupproxy.cpp +++ b/backup-daemon/systembackupproxy.cpp @@ -131,11 +131,15 @@ bool SystemBackupProxy::isIncBackup() return false; backupPath = Utils::getSysRootPath() + BACKUP_SNAPSHOTS_PATH + "/" + point.m_uuid + "/data"; } else { + QString xmlPath = Utils::getSysRootPath() + BACKUP_XML_PATH; + xmlPath.replace("//", "/"); + ParseBackupList parse(xmlPath); + m_backupPoint = parse.findBackupPointByUuid(m_backupWrapper.m_uuid); backupPath = Utils::getSysRootPath() + BACKUP_SNAPSHOTS_PATH + "/" + m_backupWrapper.m_uuid + "/data"; } backupPath.replace("//", "/"); - if (Utils::isDirExist(backupPath)) { + if (Utils::isDirExist(backupPath) && !m_backupPoint.m_backupName.isEmpty()) { m_backupWrapper.m_baseUuid = point.m_uuid; m_backupWrapper.m_bIncrement = true; m_backupWrapper.m_type = BackupType::INC_BACKUP_SYSTEM;