Sync backups to icloud instead of google drive

Hello,

At the moment, my daily backups are sync’d to google drive. I’d like to switch that to icloud if there’s a way to do that in HA.

Has anyone achieved that and could tell me how?

Cheers,

Paul

4 Likes

Up until recently, I was able to do that with the following, relatively involved, setup:

  • Samba share add-on running on HA host, exposing the backup directory
  • Files app on iOS connecting to the SMB share
  • Shortcut (from iOS Shortcuts app) running on a daily basis, getting the content of the backup directory, copying any *.tar file, then deleting the files from HA afterwards.

However, something broke this, and I can’t quite pinpoint what did. It might be a combination of updates, including iOS 16 and Samba Share Add-on 10.0.

My current, semi-automated way to handle this now, is via a macOS shortcut, which copies backup files via SCP into my iCloud folder, but I still need to run this manually while logged in, because of permissions related to SSH. I think there might be a way to configure a crontab job with a specific user/ssh key to automate this even more. In any case, all this complex setup is less than ideal, and I’d love to find a more seamless way to approach this.

1 Like

Thanks for the idea!
Could you please share the shortcut you are using to copy the file to iCloud?

I came up with the following workaround:

  • Run Tailscale on both HA server AND on some old Mac that can keep running 24/7
  • Mount an iCloud folder on this Mac through the TailScale network (can be mounted as a local SMB folder on the 100.x.x.x net)

- don’t forget to enable and then disable “Userspace networking mode” through the config of the Tailscale Add-On - restart add-on after every change

I centralised all my backups like this for about 15 HA servers to one backup server