question

BrianKramer-3128 avatar image
0 Votes"
BrianKramer-3128 asked LeonLu-MSFT commented

Why isn't a SQLite db in system.environment.specialfolder.personal backed up?

Why isn’t a SQLite db in system.environment.special folder.personal backed up in android? Where should it be stored to insure backup? A user got a new phone and lost all their data.

dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LeonLu-MSFT avatar image
0 Votes"
LeonLu-MSFT answered LeonLu-MSFT commented

Hello,​

For Xamarin.forms, you can Store and Access Data in Azure Storage from Xamarin.Forms.
For android native platform, you can use android back up to upload your sqlite db to Google drive, then restore app data to use transfer data using sync adapters or Google Drive Android API.


Best Regards,

Leon Lu



If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks on iOS is there any setup to backup or is it automatic?

0 Votes 0 ·
LeonLu-MSFT avatar image LeonLu-MSFT BrianKramer-3128 ·

You can back up and retore by iTunes. You can save your SQLite DB in the Documents/ folder, your DB file will not be cleaned even device runs critically low on disk space.

https://docs.microsoft.com/en-us/xamarin/ios/app-fundamentals/file-system#backup-and-restore


0 Votes 0 ·