无备份分区时,需要可以备份到U盘,故改造备份到U盘的逻辑
This commit is contained in:
parent
7e4d5d9689
commit
7e5c48b638
|
@ -239,7 +239,7 @@ QStringList SystemRestoreProxy::getRsyncArgs(SystemRestoreScene scene)
|
||||||
args << "--exclude=/data/home";
|
args << "--exclude=/data/home";
|
||||||
args << "--exclude=/data/root";
|
args << "--exclude=/data/root";
|
||||||
|
|
||||||
// 云桌面背景路径属于用户数据
|
// 云图片作为桌面背景的路径属于用户数据
|
||||||
args << "--exclude=/var/lib/AccountsService";
|
args << "--exclude=/var/lib/AccountsService";
|
||||||
// 此处不要break,因为还需要排除SYSTEM_RESTORE中的项
|
// 此处不要break,因为还需要排除SYSTEM_RESTORE中的项
|
||||||
|
|
||||||
|
|
|
@ -52,8 +52,8 @@ bool UDiskSystemBackupProxy::checkEnvEx()
|
||||||
// 1、检查/backup分区是否挂载上(不管是本地磁盘还是u盘设备,都得保证/backup挂载上); 若没挂载,挂载
|
// 1、检查/backup分区是否挂载上(不管是本地磁盘还是u盘设备,都得保证/backup挂载上); 若没挂载,挂载
|
||||||
MyMountProxy mountProxy;
|
MyMountProxy mountProxy;
|
||||||
if ( MountResult::MOUNTED != mountProxy.mountBackupPartition() ) {
|
if ( MountResult::MOUNTED != mountProxy.mountBackupPartition() ) {
|
||||||
emit checkResult(int(BackupResult::BACKUP_PARTITION_MOUNT_FAIL));
|
// emit checkResult(int(BackupResult::BACKUP_PARTITION_MOUNT_FAIL));
|
||||||
return false;
|
// return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString backupPath(m_backupWrapper.m_prefixDestPath);
|
QString backupPath(m_backupWrapper.m_prefixDestPath);
|
||||||
|
|
Loading…
Reference in New Issue