Option to exclude media files from iCloud backup

Would it be possible to add an option to exclude downloaded media files from iCloud backup? Many of the medical school decks have 5+GB in media, and backing them up via iCloud adds additional user cost (for those without extra storage), has adverse environmental impacts, and generally isn’t necessary given AnkiWeb has a copy. Although you can disable iCloud backup for Anki, that also means the Anki app settings wouldn’t be backed up.

Ideally there could just be a setting like “Include downloaded files in iCloud Backup.” Existing users could keep the current behavior, while new installs could default to excluding them.

I don’t know exactly how the app currently handles these files, but iOS lets you keep files in persistent local storage while excluding them from backup by setting their isExcludedFromBackup property to true (or simply just their parent directory). Apple Documentation is here.

Then if the files aren’t present after moving to a new device, the app could just download them from AnkiWeb again as it normally would during a sync.

I’ll make a ticket to explore more robust / flexible sync options and reference this thread. I can’t promise when / if this will make it into the roadmap, but it’s a good idea and I’m logging it for further review. Thanks!