@startuml Android -> Android: Take wakelock note right of rsync The borg and rsync servers can be the server. ""BORG_REPO"" and ""REMOTE_HOST"" are configurable. end note Android -> "Rsync Server" as rsync: rsync data to temporary location rsync --> Android: rsync complete Android -> rsync: nohup spawn borg backup rsync -> "Borg Server" as borg: borg backup temporary directory borg --> rsync: borg complete rsync --> Android: borg complete Android -> Android: Show success notification Android -> Android: Release wakelock @enduml