I’m a heavy user of iCloud Drive to synchronise my files across my iOS and Mac devices. It works well, but I’d also like to have an automatic way to maintain offline backups of my iCloud data. This is partially to not be dependent on Apple's servers but also to have backups of iCloud in case I delete something accidentally and it gets removed everywhere.
Since iCloud is only available on Mac, I have an old Mac Mini acts as a server and continuously sync with iCloud and back it self up every hour using time machine. This way (in an ideal world) I’d have hourly time machine backs up of my iCloud Drive and photo library without intervention. That’s way I can make a change on my phone and it automatically gets synced via iCloud and backed up offline by the mac mini.
Currently I have optimised storage disabled on the Mac mini so that it stores everything locally. However the Mac mini frequently doesn’t sync. For example the photo library only syncs when the Photos app is open and sometimes files aren't synced until I actually manually take a look at them. Is there a way to, on a regular schedule, or even better programatically, force iCloud to sync? I know there isn't an official feature but I'm looking for a kludge like keeping Photos app open or iterating through the files?
Or perhaps a better idea to automatically make offline backups of iCloud all-together?