Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce iCloud backup to zero and cover with tests #5558

Open
Anderas opened this issue Feb 11, 2022 · 0 comments
Open

Reduce iCloud backup to zero and cover with tests #5558

Anderas opened this issue Feb 11, 2022 · 0 comments
Labels
A-Backups A-Startup S-Minor Impairs non-critical functionality or suitable workarounds exist T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements

Comments

@Anderas
Copy link
Contributor

Anderas commented Feb 11, 2022

iCloud backup

A previous issue noticed that some data was being backed up, both to iCloud as well as to manual iTunes backups. Whilst the local side have been resolved so that no data is backed up at all, iCloud still reports 200-300kb of data, not present in the local backup.

From the application and API perspective, there is no difference between local and iCloud backups, meaning the difference in size is likely some undocumented disparity on Apple's side. It could for example be the size of empty directories for SiriIntents, extensions etc, but it isn't any of the application data.

One possible way to find out what is being backed up in iCloud is to restore a device from that backup and then manually backup via iTunes to observe the content.

Tests

We would like to ensure there are no future regressions with files being backed up to iCloud. Writing tests item-by-item is not robust enough, because future items that are not excluded will clearly not have any tests written either.

A better approach might be to launch the application inside a newly setup UI tests and itterate through the entire file structure (or top level directories) via FileManager. For each of these items, we can use resourceValues method to check that .isExcludedFromBackupKey value is set to false.

@Anderas Anderas added T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements A-Startup S-Minor Impairs non-critical functionality or suitable workarounds exist labels Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Backups A-Startup S-Minor Impairs non-critical functionality or suitable workarounds exist T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements
Projects
None yet
Development

No branches or pull requests

1 participant