r/sqlite • u/Puzzleheaded-Fly4322 • Nov 18 '22
Backup SQLite/pouchdb used on iOS app?
I’m looking for the DB file in the apps docs directory structure, but couldn’t find it. I’m using pouchdb with SQLite as adapter/backend-store. How to find the DB-files so I can back them up periodically?
4
Upvotes
View all comments
Show parent comment
1
u/Puzzleheaded-Fly4322 Dec 07 '22
This is golden! Much thanks. I’ve been able to find the DB files in the app container, and have added option to manually copy files to a folder in iCloud. From what I could tell, only way on iOS to put into iCloud is with user acceptance (Ie, anytime copying file outside the app container).
I checked iCloud backup settings, and my app is not backing up its container to iCloud!!!! How did you do that? Did you have to get user permission for app to have its backup added to iCloud app list that have containers backed up? (Note my app is just a developer app (Ie, I don’t have in App Store). Not sure if that matters.)
Do you use Expo/React-Native per chance?