diff --git a/backup-daemon/systembackupproxy.cpp b/backup-daemon/systembackupproxy.cpp index 61954f5..1daf0f0 100755 --- a/backup-daemon/systembackupproxy.cpp +++ b/backup-daemon/systembackupproxy.cpp @@ -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;