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?
Yes, these files will be also ignored by the iTunes backup, as mentioned in the iOS Data Storage Guidelines.