Send and receive backup over network using QR code

This adds functionality to send and receive a backup over the network
using a QR code.

The sender or provider prepares the backup, sets up a server that
waits for clients.  It provides a ticket in the form of a QR code
which contains connection and authentication information.

The receiver uses the QR code to connect to the provider and fetches
backup, restoring it locally.
This commit is contained in:
Floris Bruynooghe
2023-02-01 16:45:09 +01:00
parent e318f5c697
commit 6044e5961b
9 changed files with 1265 additions and 77 deletions

View File

@@ -64,6 +64,9 @@ pub enum Qr {
Account {
domain: String,
},
Backup {
ticket: sendme::provider::Ticket,
},
WebrtcInstance {
domain: String,
instance_pattern: String,