Как изменить расположение резервной копии iTunes

обновленный
Cover image for: Как изменить расположение резервной копии iTunes

В качестве места резервного копирования iTunes по умолчанию задан основной диск ПК или Mac, а в macOS 10.15 резервные копии iOS, созданные Finder, хранятся в одном месте. Многие пользователи имеют большие резервные копии или резервные копии с ряда устройств iOS, и, как следствие, им не хватает места на диске.

Можно настроить компьютер таким образом, чтобы iTunes выполняла резервное копирование на дополнительный жесткий диск или на внешний жесткий диск или NAS.

Проще говоря, это делается путем замены папки резервного копирования iTunes символической ссылкой на нужное место. Это легко обратимое изменение, поэтому можно восстановить расположение резервной копии по умолчанию в ее исходный каталог.

Обратите внимание, что если хранилище резервных копий iTunes будет изменено на том, который не доступен постоянно, процесс резервного копирования iTunes завершится неудачно, когда новое хранилище будет недоступно.

Что вам нужно

Чтобы изменить расположение резервной копии iTunes по умолчанию на вашем компьютере, необходимо следующее:

  • Средняя компетентность с ПК или Mac
  • 10 минут
  • Понимание желаемого нового пути к резервной копии
  • Mac под управлением MacOS 10.7 или новее, или ПК под управлением Windows Vista или новее
  • Служба поддержки Reincubate всегда готова помочь и проконсультировать клиентов, как это сделать.

Изменение папки резервного копирования iTunes iOS автоматически

Бесплатная версия iPhone Backup Extractor автоматически покажет вам место резервного копирования iTunes по умолчанию на вашем компьютере - и позволит вам изменить его.

  1. Загрузите и установите iPhone Backup Extractor .
  2. Выберите « Preferences в главном меню.
  3. ВыбратьBackupsотPreferencesокно
    The "Preferences" pane showing backup locations
    Панель «Предпочтения», показывающая расположение резервных копий
  4. Нажмите кнопку « Change , чтобы начать процесс изменения папки резервного копирования iTunes по умолчанию.

Изменение папки резервного копирования iTunes iOS в Windows вручную

  1. Open the default Backup location in Explorer using the Windows Run command. Press ⊞ Win + R and the Run window should appear. For Windows 7, 8 and Windows 10 iTunes Apple version, enter %APPDATA%\Apple Computer\MobileSync and press ⏎ Enter. For iTunes Microsoft Store version, enter \Users\[USERNAME]\Apple\MobileSync\Backup, where [USERNAME] is your Windows user name.
  2. В открывшемся окне проводника появится папка с именем «Backup». Это содержит любые резервные копии iTunes, которые уже присутствуют на компьютере. Чтобы изменить расположение папки резервной копии, эту папку необходимо переименовать, переместить или удалить. Например, можно переименовать его в «Резервная копия (старая)».
  3. После того как папка «Резервная копия» была переименована, перемещена или удалена, можно создать символическую ссылку на нужное место резервной копии. Для этого необходимо открыть командное окно. Удерживая ⇧ Shift и щелкнув правой кнопкой мыши в недавно открытом окне MobileSync Explorer, пользователи увидят меню с опцией «Открыть окно команд здесь» или «Открыть окно PowerShell здесь». Нажмите это.
  4. Используйте следующую команду mklink /d Backup "[desired-new-backup-path]" . После ввода этой команды нажмите ⏎ Enter и изменение будет завершено.
  5. После перезапуска Windows iTunes сохранит свои резервные копии в новом месте.

Изменение папки резервного копирования iTunes iOS вручную на macOS

  1. Запустите приложение MacOS Terminal. Это можно найти с помощью Finder в разделе « Applications / Utilities / Terminal . Кроме того, его можно запустить с помощью Spotlight, нажав ⌘ Cmd +. и набрав «Терминал» перед нажатием ⏎ Enter .
  2. Попросите Терминал сменить папку резервного копирования iTunes по умолчанию, введя cd ~/Library/Application\ Support/MobileSync и нажав ⏎ Enter .
  3. Откройте текущую резервную копию папки в Finder, введя open . и затем нажмите ⏎ Enter .
  4. В открывшемся окне Finder появится папка с именем «Backup». Это содержит любые резервные копии iTunes, которые уже присутствуют на компьютере. Чтобы изменить расположение папки резервной копии, эту папку необходимо переименовать, переместить или удалить. Например, можно переименовать его в «Резервная копия (старая)».
  5. После того как папка «Резервная копия» была переименована, перемещена или удалена, можно создать символическую ссылку на нужное место резервной копии. Используйте следующую команду: ln -s [desired-new-backup-path] ~/Library/Application\ Support/MobileSync/Backup . После ввода этой команды нажмите ⏎ Enter и изменение будет завершено.
  6. После перезагрузки Mac iTunes сохранит свои резервные копии в новом месте.

Как восстановить резервную копию папки iTunes в ее исходное местоположение

Если вы предприняли шаги, описанные выше, и хотите отменить изменение, процесс будет простым:

  1. Перейдите в папку резервного копирования iTunes .
  2. Удалите Backup символическую ссылку, которая появится там.
  3. Перетащите исходную папку Backup обратно, переименовав ее, если необходимо, в соответствии с ее первоначальным именем.

Другие проблемы?

У нас было несколько пользователей, которые уже переместили свою папку резервных копий iTunes в другое место - просто перетаскивая ее, - и теперь у нас нет необходимой символической ссылки, чтобы iTunes могла видеть резервную копию.

Это легко решить, и есть два варианта:

  1. Перетащите папку туда, где вы изначально находились. Если вы забыли, он должен называться Backup и находится в ~/Library/Application Support/MobileSync .

  2. Создайте символическую ссылку, указывающую на нее - так же, как описано выше. Если вы находитесь на этом этапе, вы должны открыть терминал и сделать это:

cd [location of the folder which now has "Backup" in it]
ln -s Backup ~/Library/Application\ Support/MobileSync

Это должно быть так просто.

Есть ситуации, когда это невозможно?

Этот метод работает на каждом Mac, но он не будет работать на ПК с Windows, созданных до 2000 года. До выпуска Windows 2000 Windows по умолчанию использовала файловые системы в формате FAT , и они не могли создавать символические ссылки. Любая сборка Windows PC с тех пор почти наверняка будет использовать диски в формате NTFS, и они прекрасно поддерживают символические ссылки. Если вы используете FAT и пытаетесь создать ссылку, вы можете увидеть эту ошибку: Local volumes are required to complete the operation.

К счастью, Microsoft предоставляет некоторые инструкции по обновлению диска с FAT до NTFS . Это немного более технически, но это возможно.

Как мы можем помочь?

Наша служба поддержки здесь, чтобы помочь!

Наш офис работает с понедельника по пятницу с 9:00 до 17:00 по Гринвичу. Время в настоящее время 1:06 ДП с GMT.

Мы стремимся отвечать на все сообщения в течение одного рабочего дня.

Наша отличная команда поддержки

Комментарии (26)

Bonjour,

J'essaie tant bien que mal de déplacer ce Backup et de créer un lien symbolique. Cependant, la seule réponse que j'ai est: illegal option -- /

Je vous laisse le chemin que j'utilise et si une âme charitable veut bien m'aiguiller. Merci :)

ln -s/Volumes/VERBATIM\ HD/SAUVEGARDE\ IPHONE/ ~/Library/Application\ Support/MobileSync/Backup ln: illegal option -- / usage: ln [-Ffhinsv] source_file [target_file] ln [-Ffhinsv] source_file ... target_dir link source_file target_file

Salut Gael, merci d'avoir écrit! Le problème ici est l'espace ("") entre votre chemin et les barres obliques.

Il doit s'agir de ln -s /Volumes/VERBATIM\ HD/SAUVEGARDE\ IPHONE/ ~ /Library/Application\ Support/MobileSync/Backup, et non deln -s / Volumes / VERBATIM \ HD / SAUVEGARDE \ IPHONE / ~ / Library / Application \ Support / MobileSync / Backup

Faites-nous savoir si vous avez besoin d'aide! 🙂

Backing up to remote Synology server (not local). All you need:

mkdir /Volumes/Backup
mount  -t afp  afp://username:password@[address to yourserver]/homes/[destination to your backup folder]/Volumes/Backup
#  (below w/o backup folder inside )
ln -s /Volumes/backup/ ~/Library/Application\ Support/MobileSync/Backup

thanks

Exactly what I needed. I don't want to store on my MacBook as it takes 200GB. This allows me to move to a Time Capsule. I don't use Time Machine but I use Time Capsule as a network drive and another copy of the whole Time Capsule to another network drive.

Glad it helped!

I've got the symbolic link created, but my iPhone back up still goes to the original C: drive location. When I look on my k: drive, I do not see the symbolic link file subdirectory even though it said it was created.

Hi Rick: the symlink should be in your C: drive, in MobileSync, and called Backups. It'd be that that points to the K: drive in your case. If you get stuck, why not use the functionality in iPhone Backup Extractor? It can do it for you, and it's in the free edition.

How do I figure out the my desired new backup location path? I want to use an external drive.

Hi Colleen, thanks for commenting. If you use the functionality in iPhone Backup Extractor to change location, you can make the change simply by browsing to the folder you want. That might be easier! 🙂

A fix to the insufficient permissions error--

Since I got the permissions insufficient in both cmd and powershell. First you search cmd and then right click the command prompt app and run as admin. Navigate to the directory using the cd command ex.(cd c:\users\youruser\apple\mobilesync). once in the directory you can use the (mklink /d backup [new directory]) command listed in the article. That worked for me.

As a side note, when using the cd command to navigate remember that you will likely have to put any folders with a space in the name inside quotation marks ex.(cd c:\users\"this user"\apple\mobilesync). hopefully this helps some avoid the hassle of having to figure out this process if you get that persistent insufficient permissions response.

Hello Aidan!

So I'm trying to change the backup path on Windows, and of course get the "insufficient privilege" error in the regular Powershell. So I ran it as administrator by typing it in the search bar and it said it created the symbolic link to the location, so I restarted my PC & tried updating iOs but the backup still went through to the original location (my hard drive, while I wanna change it to an external one simply 'cause I don't have enough space left on the former, lol).

So I guess my question is: how do I run Powershell in the MobileSync window as admin/how do I get the one I open through the search bar as admin to go to the MobileSync folder location so I can properly create the symbolic link & switch it up? :/

P.S. I did skip step one if I'm being honest, but only did so 'cause I already found the location manually, then proceeded to follow the instructions w/ renaming the folder, etc. Might this be the reason why it's not working? If so, shall I re-rename it to its original "Backup" name and try it again with the 1st step? I doubt it since I can't get the Powershell to go to the MobileSync location while I run it as admin to begin with/can't change it without running it as admin in the aforementioned window...Then again what do I know, lol.

P.P.S. Does the admin-run Powershell not need the MobileSync path to be put in and can successfully render the switcheroo by typing the featured command right after the "system32" path? If so, what seems to be the problem?

I was hoping to update my iOS tonight, and am getting more & more frustrated as we speak. Sorry for the post being so jumbled, hope all's clear. Thanks for the help!

Hi Aaron, thanks for the comment.

Yes, if you skipped step 1 your Powershell will be looking in the wrong folder, so it won't have created the symbolic link in the right place.

If you've already got a Powershell or command window open, you can make it change folder with this command:

cd %APPDATA%\Apple Computer\MobileSync

(If it's looking at the wrong drive, you'll have to change drive by typing C:.)

We've reached out to you directly to help, but if anyone else runs into the same problem, we'd recommend undoing the steps you took, starting over, and making sure to include the first step. 🙂

I tried it, the following error popped up .. Plz advise

PS C:\Users\EC\AppData\Roaming\Apple Computer\MobileSync> mklink /d Backup "[G:\MD\I phone 7 Backup files]"

mklink : The term 'mklink' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ mklink /d Backup "[G:\MD\I phone 7 Backup files]"
+ ~~~~~~
    + CategoryInfo          : ObjectNotFound: (mklink:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Hi Mohamed, it looks like you're using PowerShell to run the command. If that's the case, you must prefix you command with cmd /c, so it's like cmd /c mklink, etc.

I'm trying to do this on Mac OS 10.14.6 (Mohave), but when I try Step 5, I receive a "Operation Not Permitted" message. Any ideas...?

Hi Sean, thanks for commenting. On macOS Mojave and newer, you'll need to grant "Full Disk Access" to your Terminal in order to make the change. There's a how-to on how to do this for iPhone Backup Extractor here, I hope that helps!

Thank you for the article. Here are a few notes to help somebody.

  • Run CMD or PowerShell as admin (right click)
  • Change directory CD (include space). Example: CD C:\Users\Username (change this)\AppData\Roaming\Apple Computer\MobileSync
  • Command (this is from this article). Example: mklink /d Backup "L:\Users\XYZ"

I'm still having trouble with permissions, when I open up powershell in admin I get a command line PS C:\Windows\System32> I don't seem to be able to open it in admin mode from the file path of the itunes back up.

Hey Joe, you can change directory using the cd command. Try this:

cd %APPDATA%\Apple Computer\MobileSync

Thanks for this assistance! I too got stuck on the "you do not have sufficient privilege to perform this operation." I then followed your advice in the comments above and ran Powershell as an administrator, but the Powershell window that opens from the MobileSync folder doesn't seem to recognize that and keeps giving me the same message. What do I do from here? Thanks!

Hey Jess, thanks for writing. It's the same privilege error you're getting? If you drop us a note I'm sure we can guide you through it.

У меня выдает ошибку в PowerShell mklink : Имя "mklink" не распознано как имя командлета, функции, файла сценария или выполняемой программы. Проверьте правильность написания имени, а также наличие и правильность пути, после чего повторите попытку. строка:1 знак:1 + mklink /d Backup "[desired-new-backup-path]" + ~~~~~~ + CategoryInfo : ObjectNotFound: (mklink:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

Привет Андрей, попробуй cmd /c mklink и так далее 🙂

Hi Aidan, Thanks for your amazing instructions!

I have run them on my Mac but got an error saying "Library/Application Support/MobileSync/Backup: No such file or directory". I guess this happened because I have renamed the old "Backup" file. Actually, it also confuses me a lot when u say "Once the 'Backup' folder has been renamed.../Backup", as the original "Backup" file doesn't exist anymore(right?)

Looking forward to your further clarification. Thanks :)

Hi Hogan, thanks for your kind words. That second "Backup" reference is assuming you didn't change the folder's name, but simply moved it elsewhere. If you did rename it, you'd want to change it in that command. I hope this is clear. If it's not, do drop us a note. (Or use iPhone Backup Extractor to move it for you, as the free version can automate this process.)

hi i get this message when i try and finalize the path: "You do not have sufficient privilege to perform this operation." It's my computer and i understand it has to do with admin rights but how do i run windows powershell as admin?

Hey Luna! No problem: on Windows, you'd click on the "Start" button, then type "powershell". You'll see the menu search eventually shows you the PowerShell icon. If you right-click on that, you'll see there's a "Run as Administrator" option. Good luck -- I've asked our support team to drop you an email directly in case you need further help. 🙂

If I were to delete the backup symlink in the itunes MobileSync folder,how will that affect the backup folder i used for the symlink in my other drive? Will the files inside the backup folder in my other drive be unusable?

Hi, thanks for stopping by. Removing the symlink is safe: it will effectively just remove the pointer to the backup folder on your other drive. The files will still be usable, but iTunes (or Finder) won't know where to look for them.

You could then move the files back to where they were originally -- or create another symlink.

Great work. How do you come up with this stuff? Did the manual method on Windows 10 using the command prompt with admin privilges and am now backing up my iphones etc to my NAS drive. Saving about 4Gb on my SSD on my laptop. Thank you.

Really pleased it worked out for you. 👍 Don't be a stranger if you need help in future!

You do not have sufficient privilege to perform this operation. It's my computer, who is not letting me change things on it?

Michael -- if you're on a Windows machine, trying running these commands in a Windows Command that has been launched with "Run as Administrator".

Works like a charm! I followed the instructions for manually changing the iTunes iOS backup folder on Windows (through PowerShell). It is exactly what I was looking for to free up space on my C: drive. Thank you so much Aidan!

Our pleasure, we're glad it helped!

Thank you for this

Hi thanks for this. I get an error saying:

Local volumes are required to complete the operation.

How can I fix this please? Thanks

Hi Kalveer, this message suggests your filesystem is FAT-based. I've updated the article to include a mention of why it's not possible to create links on FAT. I've also included a link to instructions on upgrading to NTFS. Good luck!

Awesome instructions, thank you! I think there is a typo on step 5 for Mac. The command line is written as -s [desired-new-backup-path] ~/Library/Application\ Support/MobileSync/Backup but the folder "Support/MobileSync/Backup" doesn't exist since we moved/deleted it. I had to change it to "Support/MobileSync" and then the folder I linked to was called "Backup".

Howdy Greg! Having "Backup" in the path should be correct, as it'll ensure the link that gets created is called "Backup". Makes sense?

We've got something up our sleeves to make this a little easier in future. Keep an eye on the release notes. 😏

hi ! i did all the steps but i kinda don't get where is the new backup location now ?

Hi Salma -- the new location will be the folder you created the link to!

Firstly Aidan - thank you very much for this.

My main drive is a (relatively) small SSD and I would like to be able to save my iTunes backups to the NAS setup instead. You have provided a fantastic workaround!

One thing I wasn't sure about was at step 3 (Windows) - when you right-click (to choose "Open PowerShell window here"), is that in the Explorer window of the now renamed Backup folder? Eg, in the now-named "BackupOld" folder window?

Hi Clint, thanks for your kind words. I've updated the article to make it crystal clear: the window you right-click in is the one you opened at %APPDATA%\Apple Computer\MobileSync.

And how do you reverse it on Windows PC ? Thx

Hugues, thanks for your comment. I've updated the article to explain that!

Aidan, I don't understand your instructions in How to change the iTunes backup location. What do you mean by prefix your command in PowerShell with cmd /c, like mklink /J Backup "[desired-new-backup-path]".

Hey Fred, thanks for asking. Just like this:

cmd /c mklink /J Backup "[desired-new-backup-path]"

I'll tweak the explanatory text to make it clearer.


Можем ли мы улучшить эту статью?

Нам нравится слышать от пользователей: почему бы не написать нам электронное письмо, оставить комментарий или написать в Твиттере @reincubate?

© 2008 - 2024 Reincubate Ltd. Все права защищены. Зарегистрировано в Англии и Уэльсе #5189175, VAT GB151788978. Reincubate® и Camo® являются зарегистрированными товарными знаками. Политика конфиденциальности & условия.