Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Has anyone a solution to use this to backup the iPhone to a linux pc (raspi) automaticaly?


libimobiledevice has a command-line tool to initiate a backup, you should be able to run it on the RPi.


For restoring a backup to a Linux filesystem, libimobiledevice requires the iOS device to be present, so you will probably want ideviceunback instead, which doesn't have this issue:

https://github.com/libimobiledevice/libimobiledevice/issues/... https://github.com/inflex/ideviceunback


Does anyone even have a solution for automated scheduled script execution on the iPhone?


There doesn’t have to run anything special on the IPhone. In the early days iTunes could make backups on the local pc when the iPhone was connected via usb. Later on apple extended this to wifi: so if you had an iTunes running in your wifi and the iPhone joined a backup was done at the iTunes side.

I‘m not sure if this feature is still there, but I would have found this very useful if it would have been possible with the computer that is running anyways (as in the pi).


have a look at the 'shortcuts' app[1]. the automation thing has conditional triggers inluding time of day and actions like ssh-rpc.

[1] https://apps.apple.com/us/app/shortcuts/id915249334


Those are extremeley limited and I don't think it's possible to run any kind of interesting scripts locally.

I did look at it when I still had an iPhone and it's one of those "almost usable but fundamentally broken" things that are par for iOS. It works well enough that I could spend a weekend or two making stuff that almost works with it.


Jailbroken devices have this ability. At one point I had rclone daemon syncing iCloud files to Seafile through the terminal. You can also run scripts through Shortcuts by local ssh


> I don't think it's possible to run any kind of interesting scripts locally.

it has the ability to run pythonista scripts amog others... but yea, it's not a fully exposed unix where most things are files.


Most things are, in fact, files. It's just a massive pain to do anything with them.


Jailbroken you used to be able to use LaunchDaemons to handle this. Not sure if this is still the case.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: