系统升级自动备份逻辑排除用户数据逻辑错误
This commit is contained in:
parent
77e4e98c1e
commit
c59d2f3f4c
|
@ -297,14 +297,14 @@ QStringList SystemBackupProxy::getRsyncArgs(SystemBackupScene scene)
|
|||
// 系统更新备份不再备份用户数据目录
|
||||
if (AUTO_BACKUP_UUID == m_curUuid) {
|
||||
if (Utils::isHuawei990()) {
|
||||
args << "/data";
|
||||
args << "--exclude=/data";
|
||||
} else {
|
||||
args << "/data/usershare";
|
||||
args << "--exclude=/data/usershare";
|
||||
}
|
||||
args << "/home";
|
||||
args << "/data/home";
|
||||
args << "/root";
|
||||
args << "/data/root";
|
||||
args << "--exclude=/home";
|
||||
args << "--exclude=/data/home";
|
||||
args << "--exclude=/root";
|
||||
args << "--exclude=/data/root";
|
||||
}
|
||||
|
||||
return args;
|
||||
|
|
Loading…
Reference in New Issue