XKCDY / app

💥 a modern xkcd iOS client
https://xkcdy.com
GNU General Public License v3.0
39 stars 3 forks source link

Exclude the cache from iCloud backup. #113

Open laserjay opened 1 year ago

laserjay commented 1 year ago

I suspect XKCDY is including Cache Data within the iCloud Backup.

Therefore

Could you please consider changing that?

As I've briefly researched, there are quite a few possibilities, like

What you could store though are favourites/liked comic strips, preferences and such. Then I suspect the backup size could shrink to Kilobytes or single digit Megabytes, instead of hundreds of Megabytes as it is right now.

codetheweb commented 1 year ago

How much is a large amount? It's using 75MB for me which is maybe slightly high, but Amazon uses around the same amount (as does WeChat, which I've never actually used).

Based on what I've read I'm not entirely convinced that cached images are being included. If you're able to download your backup and confirm that images are included I'm happy to debug further.

I think Realm (the database library) tends to create large blobs.

laserjay commented 1 year ago

My iPhone device backup is ~ 1GB in total, of which XKCDY takes up about 300 MB. Another app backing up cache data (offline maps) is approx. the same amount, so two apps of approx. 80 account for ~50% of backup data. All others seem to backup settings and smaller chunks only.

Do you have an idea how I could download my device backup to investigate further? As far as I'm aware, it's not easily visible within the iCloud folder structure. Only thing I can do on my Mac and iPhone when browsing the device backups from settings is to delete it and view the data amounts sorted by app.

bbb651 commented 5 months ago

The app does indeed take up ~350MB in the worst case (I intentionally scrolled through all comics to make them available offline, would be nice to have as a feature):

image

But I think you're wrong about it being stored in iCloud backups, I've done a backup since and it barely takes up save at all:

image

laserjay commented 5 months ago

Then I suppose something is off with my installation. I might have to delete the local and iCloud data and re-download it from the App Store – even though that's going to delete my favourited comics.

In the meantime since I reported the issue I got another iPhone, therefore there isn't as much local data as previously stated:

Screenshot 2024-06-12 at 19 55 54

However, the iCloud backup remains at almost 300 MB and is still the largest backed up app:

Screenshot 2024-06-12 at 19 57 14

laserjay commented 5 months ago

I was able to reproduce the issue with a fresh install:

  1. Delete the app from the iPhone and iCloud backup.
  2. Re-download
  3. Within a week of casual use, the app is ~50 MB
  4. iCloud backup version is ~85 MB