News for hackers. Stuff that matters.
Re:Libimobiledevice – Open-source library to communicate wit... by balu_ on Wednesday July 07, 2021 @07:21AM (#27759752)
Has anyone a solution to use this to backup the iPhone to a linux pc (raspi) automaticaly?
Re:Libimobiledevice – Open-source library to communicate wit... by pabs3 on Wednesday July 07, 2021 @10:06PM (#27767803)
libimobiledevice has a command-line tool to initiate a backup, you should be able to run it on the RPi.
Re:Libimobiledevice – Open-source library to communicate wit... by pabs3 on Wednesday July 07, 2021 @10:12PM (#27767834)
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

Re:Libimobiledevice – Open-source library to communicate wit... by swiley on Wednesday July 07, 2021 @07:45AM (#27759949)
Does anyone even have a solution for automated scheduled script execution on the iPhone?
Re:Libimobiledevice – Open-source library to communicate wit... by balu_ on Wednesday July 07, 2021 @05:01PM (#27765685)
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).

Re:Libimobiledevice – Open-source library to communicate wit... by hansel_der on Wednesday July 07, 2021 @08:04AM (#27760130)
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

Re:Libimobiledevice – Open-source library to communicate wit... by swiley on Wednesday July 07, 2021 @08:24AM (#27760281)
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.

Re:Libimobiledevice – Open-source library to communicate wit... by tritones on Wednesday July 07, 2021 @11:26AM (#27762182)
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
Re:Libimobiledevice – Open-source library to communicate wit... by hansel_der on Wednesday July 07, 2021 @09:03AM (#27760633)
> 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.

Re:Libimobiledevice – Open-source library to communicate wit... by swiley on Wednesday July 07, 2021 @09:19AM (#27760789)
Most things are, in fact, files. It's just a massive pain to do anything with them.
Re:Libimobiledevice – Open-source library to communicate wit... by chewmieser on Wednesday July 07, 2021 @08:09AM (#27760174)
Jailbroken you used to be able to use LaunchDaemons to handle this. Not sure if this is still the case.