# Backup/Restore apps and data

[Seedvault](https://github.com/seedvault-app/seedvault) can be used to taking backup and restore it. It is preinstalled on Waydroid.

## Backup:

### 1. Choose Seedvault as backup provider

Go to Settings > System > Backup > Change backup provider. And choose Seedvault,

![](https://3668080922-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiYFr8anWJnZu5dVlhr%2Fuploads%2Fgit-blob-aca32ed83a93fd911bf2f35aae4c666feaae127d%2Fbackup-provider.png?alt=media)

### 2. Note down passphrase

A passphrase is shown. This is used for encrytion. It wil asked on restoration.

![](https://3668080922-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiYFr8anWJnZu5dVlhr%2Fuploads%2Fgit-blob-826aa728d930c44dfc34a38e0be334de9815fbe1%2Fbackup-passphrase-copy.png?alt=media)

### 3. Take backup

Tap on 'Backup' from three-dots menu.

![](https://3668080922-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiYFr8anWJnZu5dVlhr%2Fuploads%2Fgit-blob-a5912eede3082866ffec8a20b77b7418cd00b51d%2Fbackup-backup-now.png?alt=media)

Successfully backed up. The backup data will be at `~/.local/share/waydroid/data/media/0/.SeedVaultAndroidBackup`

## Restore

### 1. Copy backup contents

Copy the `.SeedVaultAndroidBackup` to `~/.local/share/waydroid/data/media/0/`

### 2. Start restore activity.

You need to run `am start com.stevesoltys.seedvault/.restore.RestoreActivity` in shell inorder to start the restoration activity. You can this either on `waydroid shell` or `adb shell`.

![](https://3668080922-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiYFr8anWJnZu5dVlhr%2Fuploads%2Fgit-blob-0f60d2385c79bd0784a1cdf53894a5b1c1a74263%2Fbackup-restore-storage.png?alt=media)

You will be asked to choose storage.

### 2. Enter passphrase for decryption

You need to enter the passphrased there was shown while setting up Seedvault

![](https://3668080922-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiYFr8anWJnZu5dVlhr%2Fuploads%2Fgit-blob-7f914e7c2deb7889bd4855ee8266739231b57372%2Fbackup-restore-passphrase.png?alt=media)

### 3. Restore

Click on restore.
