You can probably use icloudpd [1] to consolidate that on just a Linux machine, as I'm (more or less) doing now. I'm saying more or less because we ran out of iCloud space, I still don't want to delte forever old photos from iCloud but I should probably do it.
[1] https://github.com/icloud-photos-downloader/icloud_photos_do...