I’ve an iPhone and Id like to backup my phone to my server running Debain 11 with docker installed.

So, is there a way to install and run iTunes either on the os it self or in a container?

all 14 comments

sorted by: hot top controversial new old
[–] 4 points 2 years ago (2 children)

I don't think it's possible. iTunes requires a full OS install, so you'll have to just run it on a VM. And Apple has things locked down so much that the only way to do full iPhone/iPad backups is through iTunes.

  • source
  • hideshow 4 child comments
  • [–] [S] 3 points 2 years ago (1 child)

    I totally understand. However, I stumbled upon this repository https://github.com/shield007/wine-itunes-docker

    But last commit was 9y so 100% abandoned.

    Then I asked myself what if we can run on a container a lightweight wine version tailor made to be compatible with iTunes?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 2 years ago (2 children)

    iTunes requires usb drivers to sync with an iPhone. Wine does not support windows usb drivers so even if you get iTunes to work in wine, connecting to the iPhone with it won’t work. You might be able to use libimobiledevice to do a backup.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 2 points 2 years ago* (1 child)

    I use libimobildevice on my raspberry and it works in terms of backups. I haven‘t tried to restore it though. Hope this works too… :D

  • source
  • parent
  • hideshow 2 child comments
  • [–] 4 points 2 years ago (1 child)

    There is libimobiledevice for interavting with ios devices, you might want to check it out

  • source
  • hideshow 2 child comments
  • [–] 3 points 2 years ago* (1 child)

    I think you can do this by mounting a macos VM: link

    New macOS versions do not require iTunes and you can back up directly through the finder window. Your backup will be located there: /Users/{USERNAME}/Library/Application Support/MobileSync/Backup

  • source
  • hideshow 2 child comments
  • [–] 2 points 2 years ago

    Not iTunes, but you can use libimobiledevice to backup an Apple device on Linux https://docs.mvt.re/en/latest/ios/backup/libimobiledevice/

  • source