系统升级自动备份逻辑排除用户数据逻辑错误

This commit is contained in:
zhaominyong 2022-07-27 10:48:47 +08:00
parent 77e4e98c1e
commit c59d2f3f4c
1 changed files with 6 additions and 6 deletions

View File

@ -297,14 +297,14 @@ QStringList SystemBackupProxy::getRsyncArgs(SystemBackupScene scene)
// 系统更新备份不再备份用户数据目录 // 系统更新备份不再备份用户数据目录
if (AUTO_BACKUP_UUID == m_curUuid) { if (AUTO_BACKUP_UUID == m_curUuid) {
if (Utils::isHuawei990()) { if (Utils::isHuawei990()) {
args << "/data"; args << "--exclude=/data";
} else { } else {
args << "/data/usershare"; args << "--exclude=/data/usershare";
} }
args << "/home"; args << "--exclude=/home";
args << "/data/home"; args << "--exclude=/data/home";
args << "/root"; args << "--exclude=/root";
args << "/data/root"; args << "--exclude=/data/root";
} }
return args; return args;