On iOS, there's an iCloud Backup feature that will automatically make a daily copy of an app's documents and store it in the user's iCloud drive. The backup size is limited only by the space available in the user's iCloud account. My app uses an SQLite database that will probably end up storing something like 100 - 200MB for the average user.
I found some documentation on Android Backup but it says:
Auto Backup can store up to 25 MB of file-based data per app.
That's not enough for my needs. What do Android apps do to back up their local SQLite data if they need more than 25MB?
Am I supposed to use Google Drive to store application data?
The comment you made in your question is quite correct. In addition I agree with @Robert comment.
For a custom solution with Google Drive.
Using the
Google Drive API, you can develop a custom solution to back up database specific dataOAuth 2.0Client - To access the google drive API via Google Cloud Console.ScheduledTasks -WorkManagerAutomatic backup varies depending on certain reasons.
You can make a backup by checking these scenarios or every time the application is opened.
Remember, we do not use automatic backup, which is a feature of the system.
Sample code for periodic backup
Sample Worker
WorkManager
Note;
Finally, using firebase may be the healthiest way. Just a suggestion.