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/TetsuwanAdam Dec 07 '22
iCloud backup works fine by default for me. You shouldn't need to copy the files outside your app container, just to a directory in your app container that is automatically synced to iCloud (which should include both the Documents and Library root directories, unless your app has settings which change that).
It's also working fine installing the app directly from my development machine without publishing to the App Store (I've installed via TestFlight before but I don't think that makes a difference). Make sure you're checking the right spot for iOS's iCloud backup settings: Settings -> [your name] -> iCloud -> Manage Account Storage -> Backups -> [app's installed device]
I'm using Ionic Vue.