From c59d2f3f4cd8cd954330d33ae1244a183820a06f Mon Sep 17 00:00:00 2001 From: zhaominyong Date: Wed, 27 Jul 2022 10:48:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E5=8D=87=E7=BA=A7=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=A4=87=E4=BB=BD=E9=80=BB=E8=BE=91=E6=8E=92=E9=99=A4?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=95=B0=E6=8D=AE=E9=80=BB=E8=BE=91=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backup-daemon/systembackupproxy.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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;