this post was submitted on 14 Aug 2023
21 points (92.0% liked)

Selfhosted

37811 readers
507 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

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 21 comments
sorted by: hot top controversial new old
[–] fireshaper@social.belowland.com 5 points 10 months 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.

[–] deleted@lemmy.world 3 points 10 months ago (1 children)

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?

[–] scroll_responsibly@lemmy.sdf.org 2 points 10 months 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.

[–] deleted@lemmy.world 2 points 10 months ago

Iphone can do wireless backup if both the iphone and pc are connected to the same network.

[–] schmurian@lsmu.schmurian.xyz 2 points 10 months ago* (last edited 10 months ago) (1 children)

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

[–] deleted@lemmy.world 1 points 10 months ago

Could you please elaborate more about your setup?

Like what software you used with raspberry pi to backup your data.

I have no problem using windows to restore though.

[–] melchiorbv@lemm.ee 4 points 10 months ago* (last edited 10 months ago) (1 children)

I think you can do this by mounting a macos VM: https://www.wikihow.com/Install-Macos-on-a-Virtual-Machine New macOS versions do not require iTunes and you can back up directly through the finder window. Your backup will be located there: /Users//Library/Application Support/MobileSync/Backup

[–] deleted@lemmy.world 4 points 10 months ago (1 children)

Interesting

I will give it a shot

[–] Moonrise2473@feddit.it 1 points 10 months ago (1 children)

without a dedicated GPU it will be unbearably slow

[–] deleted@lemmy.world 1 points 10 months ago

I’ll set it once and thats it. It’ll automatically backup.

[–] Krafting@lemmy.world 4 points 10 months ago (1 children)

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

[–] deleted@lemmy.world 1 points 10 months ago

Good to know.

I’m so excited to go home and try it.

[–] cow@lemmy.world 3 points 10 months ago

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

[–] Jmr@lemmy.world 3 points 10 months ago (2 children)

There's the windows version. Run it through WINE or something

[–] valkyre09@lemmy.world 3 points 10 months ago (2 children)

Would wine work for detecting the iPhone and allowing the data sync? I feel like it’s a big ask

[–] Jmr@lemmy.world 2 points 10 months ago

I would test it but the only Apple stuff I have is a MacBook.

[–] deleted@lemmy.world 2 points 10 months ago

Ill test it and update this post later.

[–] deleted@lemmy.world 2 points 10 months ago (1 children)

I see. I found a wine docker container but it seems to be abandoned.

Is there more efficient way other than Debain -> wine (on a vm) -> iTunes?

[–] Jmr@lemmy.world 1 points 10 months ago (1 children)

Unless there is something that can do it that runs on Linux. As far as I know, there's only iTunes for MacOS and Windows.

[–] deleted@lemmy.world 1 points 10 months ago

I was thinking of something like this:

What if we can run a lightweight wine version tailor made to be compatible with iTunes on a container?