上次修改未修改完整

This commit is contained in:
zhaominyong 2022-07-05 17:07:17 +08:00
parent 4673cc8243
commit 6d7db3db56
1 changed files with 7 additions and 2 deletions

View File

@ -552,8 +552,9 @@ void GhostImage::on_checkEnv_start()
prePath = prePath.replace("//", "/");
if (m_iPosition != BackupPosition::CUSTOMIZE && m_prefixDestPath.startsWith(prePath)) {
backupWrapper.m_iPosition = BackupPosition::UDISK;
} else {
backupWrapper.m_iPosition = m_iPosition;
}
backupWrapper.m_iPosition = m_iPosition;
backupWrapper.m_prefixDestPath = m_prefixDestPath;
backupWrapper.m_frontUid = getuid();
backupWrapper.m_frontUserName = qgetenv("USER");
@ -849,7 +850,11 @@ void GhostImage::on_ghost_start()
backupWrapper.m_uuid = m_uuid;
backupWrapper.m_type = BackupType::GHOST_IMAGE;
backupWrapper.m_backupName = createGhostImageName(m_backupName);
backupWrapper.m_iPosition = m_iPosition;
if (m_iPosition != BackupPosition::CUSTOMIZE && m_prefixDestPath.startsWith(prePath)) {
backupWrapper.m_iPosition = BackupPosition::UDISK;
} else {
backupWrapper.m_iPosition = m_iPosition;
}
backupWrapper.m_prefixDestPath = m_prefixDestPath;
backupWrapper.m_frontUid = getuid();
backupWrapper.m_frontUserName = qgetenv("USER");