Room Backup
MIT License
Copyright (c) 2023 Raphael Ebner
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Functions
Set file encryption to true / false can be used for backup and restore
Set you backup location. Available values see: BACKUP_FILE_LOCATION_INTERNAL, BACKUP_FILE_LOCATION_EXTERNAL, BACKUP_FILE_LOCATION_CUSTOM_DIALOG or BACKUP_FILE_LOCATION_CUSTOM_FILE
Set a custom file where to save or restore a backup. can be used for backup and restore
Set custom Backup File Name, default = "$dbName-$currentTime.sqlite3"
Set custom backup encryption password
Set custom log tag, for detailed debugging
Set custom Restore Dialog Title, default = "Choose file to restore"
Set RoomDatabase instance
Set LogDebug enabled / disabled
Set max backup files count if fileCount is maxFileCount the oldest backup file will be deleted is for both internal and external storage
Set onCompleteListener, to run code when tasks completed
Set Intent in which to boot after App restart