Backups for Android devices
What to back up
- Two Factor Authentication tokens
- emails
- SMS/MMS
- photos, videos and other user media
Seedvault
Available for LineageOS and GrapheneOS, Seedvault can:
- Backup application data to a flash drive.
- Restore application data from a flash drive.
- Do user-friendly encryption using a mnemonic phrase (BIP39).
- Do automatic daily backups that run in the background.
adb
adb devices adb backup -all -shared -f `date -I`.ab
Flag | Result |
---|---|
-f <file> | Write to <file>, else backup.ab |
-apk |-noapk | enable/disable backup of the .apks themselves |
-obb |-noobb | enable/disable backup of any installed apk expansion (aka .obb) files associated with each application |
-shared |-noshared | enable/disable backup of the device's shared storage / SD card contents |
-all | back up all installed applications |
-system |-nosystem | toggles whether -all automatically includes system applications |
<packages…> | list of applications to be backed up. If -all or -shared flags are passed, package list is optional. |