Description
Android-Room-Database-Backup is a Kotlin library that backs up and restores the Room database of an Android app. The README describes it as a simple tool for that job. Backups can be encrypted with AES. The library can generate a random key and store it in EncryptedSharedPreferences, or you can use a password or key of your own, and encrypted backups get a .aes suffix. Backups can be saved to any type of storage, and the README marks some storage types as beta. You can set a maximum number of backup files, after which the oldest ones are deleted, and turn on logging with a custom log tag for debugging. The library is published to Maven Central, and you add it as a dependency in your app-level build.gradle file. The README includes usage notes for activities and fragments in both Kotlin and Java, a sample app and a changelog with upgrading notes. It also warns that the recent Gradle and Kotlin DSL changes may cause problems, so it asks users to get in touch if they hit any.…
Highlights
- Backup and restore for Room databases
- AES encryption with a generated or custom key
- Save backups to internal, external or other storage
- Keep a set number of backups, deleting the oldest
- Available from Maven Central
Ratings & Reviews
No ratings yet
Be the first to rate Android-Room-Database-Backup.
People also visit
Open Android Backup
Back up your device without vendor lock-ins, using insecure software or root
Android-Room-Database-Backup FAQ
What does it do?
It backs up and restores the Room database of an Android app, using a small library you add to your project.
Can backups be encrypted?
Yes. The README describes AES encryption with a random key stored in EncryptedSharedPreferences, or with a password or key of your own. Encrypted backups get a .aes suffix.
How do I add it to my app?
Add the dependency from Maven Central to your app-level build.gradle file. The README includes usage examples for activities and fragments in Kotlin and Java.
Can it delete old backups?
Yes. Set maxFileCount and the oldest backup files are deleted once the count is exceeded. The default is infinity, so nothing is deleted.
What are the best Android-Room-Database-Backup alternatives?
Popular alternatives to Android-Room-Database-Backup include Open Android Backup, Android-DataBackup and Restic Android. See all Android-Room-Database-Backup alternatives

