@startuml
'https://plantuml.com/sequence-diagram

autonumber



"uos-recovery-gui" -> RecoveryService : Request获取根分区uuid
RecoveryService -> Device: 获取根分区uuid
RecoveryService <- Device

"uos-recovery-gui" <- RecoveryService :

"uos-recovery-gui" -> RecoveryService : 存放备份文件的uuid
RecoveryService -> RecoveryService: 读取/etc/uos-recovery/uos-recovery.ini
"uos-recovery-gui" <- RecoveryService :

"uos-recovery-gui" -> "uos-recovery-gui" : 构造SystemBackupRequest数据
"uos-recovery-gui" -> RecoveryService : 系统备份
RecoveryService -> RsyncSystem : 系统备份
RsyncSystem --> RsyncTask : 执行备份任务
RsyncTask -> RsyncTask : 设置备份参数
RsyncTask -> RsyncTask : 开始备份
RsyncTask -> RsyncTask : 写入备份信息到备份位置
RecoveryService <- RsyncSystem : 系统备份返回
"uos-recovery-gui" <- RecoveryService : 系统备份

RsyncTask --> RsyncSystem : 进度上报
RsyncSystem --> RecoveryService : 进度上报
RecoveryService --> "uos-recovery-gui" : 进度上报




@enduml