Offline storage of all data

I have made a offline app and want to put a button in app to backup the data to phone so that if the user changes the phone then he can just transfer this file to the new phone and retrieve the complete data. How to go about this.
Request for steps
Thanks in anticipation

make data in the form of csv or json, store it in local storage.

If the user sync his app or phone with Google drive are the tiny db are are also synchronised as these are storing data. If that will be the case i might not require to do that

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.