Live data from Hacker News

Cleaning up my 200GB iCloud with some JavaScript

andykong.org

131–140 of 192 posts

Re: Cleaning up my 200GB iCloud with some JavaScript

#131
I’ve been on a similar hunt. My devices are littered with copies of videos that were shared via iMessage, WhatsApp, and other means. Each of these apps then store the copy locally which then gets backed up in iCloud.

Unfortunately I haven’t found a way to automatically delete all the videos/photos that I send which still have the original in the photo stream. It would be awesome to be able to automate that.

Re: Cleaning up my 200GB iCloud with some JavaScript

#132
post #67

I've tried iCloud, Onedrive, Google Photos. Out of all these three, I stuck with Google Photos on my Iphone. iClouds bad pricing and storage issues led me to switch to Google Photos, It's way better. The lack of native support on iOS can be a little cumbersome though. The only thing I wish these cloud providers offered was a way to deduplicate photos / videos. That would make my life so much easier.

iCloud Photos has deduplication

Yeah I ran it and shrunk my library by half. It was kinda scary since I had 100000 photos, I couldn’t really inspect the process

Re: Cleaning up my 200GB iCloud with some JavaScript

#133

Photos.app doesn't show file size… so I thought, why not build a little Photos.app extension or a separate app that queries for large files? Turns out that the API doesn't expose "file size", at least I didn't find a straight-forward way. I think that all "photos" or "videos" are just a view of the underlying "photo or video object". If you crop a video, the full-size video will remain. Only if you export the video,…

> I think that all "photos" or "videos" are just a view of the underlying "photo or video object". If you crop a video, the full-size video will remain. Only if you export the video, it will be cropped and the smaller file size will manifest.

Yup, the Photos app keeps the unmodified original file, and then any edits/crops are stored separately. You can always revert to the original file and redo your edits. So they might be storing multiple copies of the same image, with and without edits.

Which API were you looking at for "file size"?

I was able to get the size data from Photos.app with the PhotoKit API [1]. I've only tested it with my library of ~26k items, but it was useful for getting an indicator of the biggest items. (Although I didn't think to check whether exporting a 1GB video caused my iCloud usage to drop by 1GB.)

[1]: https://alexwlchan.net/2023/finding-big-photos/

Re: Cleaning up my 200GB iCloud with some JavaScript

#134
post #117

Slightly off topic: anyone know how to backup iCloud data (mainly photos and videos, but also notes) to an outside platform? I’m an Apple fan, but still don’t like the idea of having all my digital life on iCloud only.

Disclaimer I haven't tried this yet, but I found this project recently that supposedly downloads all iCloud photos (e.g. to a NAS for local backup). https://github.com/icloud-photos-downloader/icloud_photos_do...

I've been using a version of this for Unraid for over a year. Downloads everything from my iCloud storage to my home server.

You need to re-authenticate every 90 days due to 2fa restrictions but it works great.

Re: Cleaning up my 200GB iCloud with some JavaScript

#135

Earlier quoted context omitted.

> For the downvoters, consider this: If I were to manage all this myself, I would need at least three storage mediums with one being a different form factor to satisfy the 3-2-1 backup scheme. I would also need to procure arrangements for that third backup copy in the 3-2-1 scheme. And I would need to spend time managing it all. > That is going to cost me more than a Franklin per year. Life is short, my time is preci…

> Three Franklins and three Jacksons per year + whatever for an external drive for your offsite backups. I know you're just following the theme set by the parent commenter, but there are a bunch of us folk on HN who aren't US residents, and have no idea how much those presidents mean in terms of currency.

A Franklin is more or less two Turings and a Jackson is just less than a Turner.

Re: Cleaning up my 200GB iCloud with some JavaScript

#136

The thing I detest the most is the weird tier that jumps from 200GB to 2TB. There’s no way to pay for incremental storage for 500GB or 1TB, which would be perfect for many families. In today’s age where storage is a commodity, this ought to be priced per GB used.

That way they can subsidize the free tier

The free tier is 5gb which nearly grows on trees these days

Re: Cleaning up my 200GB iCloud with some JavaScript

#137

Earlier quoted context omitted.

> For the downvoters, consider this: If I were to manage all this myself, I would need at least three storage mediums with one being a different form factor to satisfy the 3-2-1 backup scheme. I would also need to procure arrangements for that third backup copy in the 3-2-1 scheme. And I would need to spend time managing it all. > That is going to cost me more than a Franklin per year. Life is short, my time is preci…

> What comes after the 6TB option? Well, 12TB. And if you are head of household and share storage, you can combine storage plans. Mine currently shows “2.3TB of 14TB used”.

Thanks. I overlooked the 12 TB. I'm not sure doubling the capacity and doubling the cost is really ideal for many, but it's nice to know it's there.

Re: Cleaning up my 200GB iCloud with some JavaScript

#138

Earlier quoted context omitted.

> For the downvoters, consider this: If I were to manage all this myself, I would need at least three storage mediums with one being a different form factor to satisfy the 3-2-1 backup scheme. I would also need to procure arrangements for that third backup copy in the 3-2-1 scheme. And I would need to spend time managing it all. > That is going to cost me more than a Franklin per year. Life is short, my time is preci…

> Three Franklins and three Jacksons per year + whatever for an external drive for your offsite backups. I know you're just following the theme set by the parent commenter, but there are a bunch of us folk on HN who aren't US residents, and have no idea how much those presidents mean in terms of currency.

I'm sorry. I use the currency and had to think about what the values were. I was trying to follow the theme by the previous author, but I can definitely see how that'd be hard for others to follow. It's $360 USD (Franklin = $100 USD, Jackson = $20 USD).

Re: Cleaning up my 200GB iCloud with some JavaScript

#140
post #64

Earlier quoted context omitted.

>> There is not an easy, straight-forward way to download your archive from iCloud. Let me revolutionize your life: https://github.com/icloud-photos-downloader/icloud_photos_do...

Thanks! That tool is what I was looking for. I think you saved me hours of frustration.

AFAIK, it doesn’t support shared iCloud libraries but https://github.com/steilerDev/icloud-photos-sync does.

Edit: Seems like it has gotten support since I’ve last looked: https://github.com/icloud-photos-downloader/icloud_photos_do...

Post reply on HN