Oh interesting, I didn't know that. Hmm, is it possible to store some 
databases in different locations than other databases? Can I have my user 
database in Application Support/Couchbase, but the other databases in 
Application Support/Other and mark the Other directory as to be excluded? 

Do I have to create different CBLManagers, one for each directory, or can I 
used the sharedInstance CBLManager to manage databases in different 
directories?

On Thursday, July 10, 2014 12:45:13 PM UTC-7, Jens Alfke wrote:
>
>
> On Jul 10, 2014, at 12:15 PM, Ragu Vijaykumar <[email protected] 
> <javascript:>> wrote:
>
> I know this thread is a bit old, but I thought I would resurrect it. I 
> also just submitted my app to the app store, and was rejected for the same 
> reason. The app comes with a couple of databases, and on launch uses the 
> CBLManager move mechanism and places those databases in the Application 
> Support directory where all the CBL databases are. I store no data in my 
> Documents directory during the lifetime of the app.
>
>
> The App Support directory is backed up too.
>
> There are three things you can do:
>
>    - Store your databases in some other location that isn’t backed up. 
>    CBLManager has an initializer method that lets you override what directory 
>    it uses.
>    - Mark the manager’s directory as not to be backed up, by setting 
>    the NSURLIsExcludedFromBackupKey attribute.
>    - Cherry-pick commit 4d96a8b and set the CBLManager.excludedFromBackup 
>    property to YES.
>
>
> —Jens
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/2850a356-397e-4f4b-9fba-d2053149921f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to