0
votes

We are creating folders and files in the Documents directory that can't be recreated, but it's a lot of data so we don't want these to be backed up in any way.

I know if we set this attribute "com.apple.mobilebackup" it will prevent iCloud backup, does it do the same when connecting to iTunes?

1
why not use the Cache directory? - Michael Dautermann
If it can't be re-created Cache would be bad since the system can empty it. On the other hand I would say if it really cannot be re-created, why on earth not let the system back it up? What happens when the user gets a new phone or a replacement for a broken one? - Kendall Helmstetter Gelner
"Programmatically"—do you mean at runtime or compile-time? - JoePasq

1 Answers

1
votes

Yes, these files will be also ignored by the iTunes backup, as mentioned in the iOS Data Storage Guidelines.