From f078dde013e157ad81d4429556179bec08d0c3de Mon Sep 17 00:00:00 2001 From: zhaominyong Date: Thu, 19 May 2022 16:54:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=82=E6=9C=BA=E8=BF=98=E5=8E=9F=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E8=BF=98=E5=8E=9F/etc/fstab=E5=92=8C/etc/.bootinfo?= =?UTF-8?q?=E4=B8=A4=E4=B8=AA=E6=96=87=E4=BB=B6=EF=BC=8C=E4=B8=BA=E4=BA=86?= =?UTF-8?q?=E4=BF=9D=E7=95=99UUID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backup-daemon/udisksystemrestoreproxy.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backup-daemon/udisksystemrestoreproxy.cpp b/backup-daemon/udisksystemrestoreproxy.cpp index 310a8cf..62d7e08 100755 --- a/backup-daemon/udisksystemrestoreproxy.cpp +++ b/backup-daemon/udisksystemrestoreproxy.cpp @@ -308,6 +308,12 @@ QStringList UDiskSystemRestoreProxy::getRsyncArgs(SystemRestoreScene scene) args << QString("--exclude=") + item; } + // 异机还原 + if (m_backupWrapper.m_isOtherMachine) { + args << "--exclude=/etc/.bootinfo"; + args << "--exclude=/etc/fstab"; + } + args << "--exclude-from" << m_excludeUserFile; args << "--files-from" << m_userFile;