Com apple timemachine plist

Snow Leopard и Time Machine на сетевом диске (AFP, SMB)

Подготовлено по материалам на www.macosxhints.com

После выхода Snow Leopard у Time Machine «отвалилась» давно известная возможность работать с сетевыми дисками. Как выяснилось, причиной тому была появившаяся привязка резервной копии к UUID компьютера. Здесь приводятся простые инструкции, позволяющие исправить ситуацию.

Для начала, надо включить в системе поддержку сетевых дисков. Выполним в терминале такую команду:

Создадим файл резервной копии (это .sparsebundle). Снова терминал:

В результате, в вашей домашней директории будет создан файл с именем backup.sparsebundle и максимальным размером в 500 гигабайт. Это не означает, что мы сразу же получим файл в 500G (образ будет расти по мере создания резервных копий), это, всего лишь, ограничивает отведенное под резервное копирование дисковое пространство (имя файла и его размер произвольны).

Дальше надо узнать UUID вашего компьютера. Для этого откройте «Сведения о системе» (Программы > Служебные программы > Сведения о системе) и в разделе «Аппаратные средства» найдите UUID (UUID аппаратного обеспечения).

После этого, создадим файл с именем com.apple.TimeMachine.MachineID.plist и с таким содержимым:

Только YOUR_UUID надо заменить на ваш реальный UUID.

Создать такой файл можно и в TextEdit. Для этого надо использовать простой текст (Формат > Конвертировать в простой текст), при сохранении задать нужное имя файла (com.apple.TimeMachine.MachineID.plist) и подтвердить заданное расширение (оставить .plist).

Подготовленный таким образом файл .plist надо скопировать в заранее созданный файл .sparsebundle (сделать это лучше с помощью терминала). Делается это так:

Если вы поменяли имя «backup» на другое, то тогда, естественно, его и указываете.

(не для знатоков терминала) Если оба файла (и .plist и .sparsebundle) лежат в вашей домашней папке, то все пройдет как надо, если же нет… Открываем терминал, набираем cp (латиница), ставим пробел, находим в Finder файл «com.apple.TimeMachine.MachineID.plist» и перетягиваем его в окно терминала (отобразится его адрес), находим файл «backup.sparsebundle» (ну или как вы его назвали) и тоже перетягиваем его в окно терминала, запускаем команду (Enter).

Можно проверить результат. Если все прошло как надо, то выделив ваш .sparsebundle и выбрав из контекстного меню (правая клавиша) команду «Показать содержание пакета», вы должны увидеть внутри свой файл .plist (в принципе, можно именно сейчас его сюда и перетащить).

Дальше осталось переместить готовый .sparsebundle в корень нужного сетевого диска (хоть терминалом, хоть файндером) и подключить его к Time Machine.

Подключаем сетевой диск (именно сетевой диск где .sparsebundle лежит, а не сам .sparsebundle), открываем Time Machine и, нажав клавишу «Выбрать диск», в появившемся списке выбираем нужный. Все.

Еще пару советов. Во избежание ошибок, имя сетевого диска должно быть уникальным. Не пренебрегайте функцией исключения файлов из процесса архивирования (свободного места при работе Time Machine много не бывает). А вот частоту создания резервных копий удобно настроить программой TimeMachineEditor.

Источник

Question: Q: Can’t read com.apple.TimeMachine.plist in Mojave

I use a wonderful little, free, still-in-beta app called TimeTracker (https://www.charlessoft.com/). It doesn’t work in Mojave because it can’t read com.apple.TimeMachine.plist.

Читайте также:  Включается экран при уведомлениях айфон

There is something very strange about the permissions of this file, which I don’t understand. The permissions look perfectly normal, but I am blocked from reading the file (here output from bash):

$ ls -l -@ com.apple.TimeMachine.plist

-rw-r—r— 1 root wheel 1965 Oct 20 08:18 com.apple.TimeMachine.plist

wc: com.apple.TimeMachine.plist: open: Operation not permitted

cat: com.apple.TimeMachine.plist: Operation not permitted

I would like to change something so that read access to this file can be restored, but (a) I can’t figure out why I don’t have read access, and (b) I am in over my depth in trying change the permissions.

Is it normal to not have read permission for this file? Any thoughts about how to (and whether I should) restore it?

iMac with Retina 5K display, macOS High Sierra (10.13.2)

Posted on Oct 20, 2018 8:33 AM

It appears that Mojave extended SIP ( System Integrity Protection ) further into users home directory. There are many files and directories that are no longer readable even to root. The only way is to disable SIP which is not a real solution. I am not sure why they find the need for this as this going to create more problem than what it actually solves.

Here are some I found and there are not readable and there could be more.

/Library/Application Support/CallHistoryTransactions: Operation not permitted

/Library/Application Support/com.apple.TCC: Operation not permitted

/Library/Application Support/CallHistoryDB: Operation not permitted

/Library/IdentityServices: Operation not permitted

/Library/Messages: Operation not permitted

/Library/HomeKit: Operation not permitted

/Library/Mail: Operation not permitted

/Library/Safari: Operation not permitted

/Library/Suggestions: Operation not permitted

/Library/Containers/com.apple.VoiceMemos: Operation not permitted

/Library/Containers/com.apple.Home: Operation not permitted

/Library/Containers/com.apple.Safari: Operation not permitted

/Library/Containers/com.apple.iChat: Operation not permitted

/Library/Containers/com.apple.mail: Operation not permitted

/Library/Containers/com.apple.news: Operation not permitted

/Library/Containers/com.apple.stocks: Operation not permitted

/Library/PersonalizationPortrait: Operation not permitted

/Library/Metadata/CoreSpotlight: Operation not permitted

Источник

Question: Q: Impossible To Delete Corrupted .plist File

After various manipulations done to try to solve Time machine issues after intalling Mac Os 10.7.2,

I have two «com.apple.TimeMachine.plist» files in /Library/Preferences.

one is normal and the other one is corrupted and I cannot get rid of it.

Apple technical support suggested to reload Mac Os 10.7.2 what I did and didn’t make the corrupted file disappear.

They now suggest to reload my entire system what I really prefere to avoid !

isn’t there another solution to delete this file ?

I can’t move it to trash or any other action.

when I click on get info I get this:

Please can any one help me ?

IMac Intel Core 2 Duo 2,66Ghz 20, Mac OS X (10.7.2), Iphone 3G S 32 Go IOS 5.0

Posted on Oct 17, 2011 2:32 PM

Helpful answers

Hmmmm. Can’t have two files with same name, but looks like you do.

What do you see in Terminal with:

ls -l /Library/Preferences/com.apple.TimeMachine.*

Why do you think you have a corrupt file?

Anyway, to delete all three files, enter:

sudo rm -i /Library/Preferences/com.apple.TimeMachine.*

To delete only one, replace .* with *.plist, or whatever ext of the file to delete

Oct 17, 2011 3:18 PM

the terminal shows only one com.apple.TimeMachine.plist

and one com.apple.TimeMachine.plist.lockfile

Then that’s all there is (2 not 3)

I had a similar problem and it turrned out to be a spotlight issue.

Читайте также:  Как отвязать айпад от айфона если один

Oct 17, 2011 3:47 PM

There’s more to the conversation

Loading page content

Page content loaded

Two with the same name?

Can you post a screenshot of what you see in Finder (list view)

Oct 17, 2011 2:47 PM

Oct 17, 2011 2:51 PM

I have two «com.apple.TimeMachine.plist» files in /Library/Preferences.

one is normal and the other one is corrupted and I cannot get rid of it.

Try to move both out of the Users/Library/Preferences folder and onto the desktop

Select both of them and «Get Info» from the Finder menu and change their permissions to yourself and everyone to read and write.

Reboot the machine and open TimeMachine to remake the .plist file again in the Users/Library/Preferences folder reappear, reset your TM preferences.

Trash the two desktop files, by holding command key and dragging to the trash and deleting.

Источник

How to Delete com.apple.TimeMachine.localsnapshots Folder

maserluv

macrumors member

After upgrading from Mojave to Catalina. Everything works except that there is an «com.apple.TimeMachine.localsnapshots» folder residing in the Macintosh HD just beside the Applications, Library, System and Users folders.

& inside the com.apple.TimeMachine.localsnapshots folder, there is Backup.backup folder. The size is zero though.

I tried deleting it but it is only System Read & Write Privilege.

Call me paronoid, it look annoying.

rumormiller

macrumors regular

maserluv

macrumors member

I had backup via time machine drive after the Catalina was installed for a day. Still the folder still appear. Anyway to delete it?

weaztek

macrumors 6502

Weaselboy

Moderator

Same thing happened to me OP. This is not the usual local snapshots, this appears to be some random left over local snapshots from several days before I did the upgrade.

I was able to delete it by doing a command-r boot to recovery then entering csrutil disable in Terminal to disable SIP then reboot to command-r recovery again. Then I was able to remove the folder with rm -rf followed by the folder name.

Then do csrutil enable and reboot to turn SIP back on.

In recovery you can access Terminal in the Utilities menu.

maserluv

macrumors member

Thank You Weaselboy,

I will try it tonite!

Same thing happened to me OP. This is not the usual local snapshots, this appears to be some random left over local snapshots from several days before I did the upgrade.

I was able to delete it by doing a command-r boot to recovery then entering csrutil disable in Terminal to disable SIP then reboot to command-r recovery again. Then I was able to remove the folder with rm -rf followed by the folder name.

Then do csrutil enable and reboot to turn SIP back on.

In recovery you can access Terminal in the Utilities menu.

macrumors regular

After upgrading from Mojave to Catalina. Everything works except that there is an «com.apple.TimeMachine.localsnapshots» folder residing in the Macintosh HD just beside the Applications, Library, System and Users folders.

& inside the com.apple.TimeMachine.localsnapshots folder, there is Backup.backup folder. The size is zero though.

I tried deleting it but it is only System Read & Write Privilege.

Читайте также:  Safari как настроить домашнюю страницу iphone

Call me paronoid, it look annoying.

maserluv

macrumors member

i tried
1. command-r boot to recovery
2. csrutil disable in Terminal to disable SIP
3. reboot to command-r recovery again
4. rm -rf /com.apple.TimeMachine.localsnapshots
5. «i observed the return command nothing happen though»
6. csrutil enable in Terminal to enable SIP
7. reboot

The file is still there. Is my command «rm-rf /com.apple.TimeMachine.localsnapshots» WRONG?

Weaselboy

Moderator

maserluv

macrumors member

I tried cd (change directory) commands and ls (list) commands to find the right directory as you suggested.

I couldn’t find the right folder in Catalina. Sign. have to give up!

Thanks for the help!

gcarey

macrumors newbie

For Catalina the steps should be:

1. command-r boot to recovery
2. csrutil disable in Terminal to disable SIP
3. reboot to command-r recovery again
4. in Terminal cd /Volumes/Macintosh\ HD (or whatever your normal boot drive is named)
5. rm -rf /com.apple.TimeMachine.localsnapshots
6. csrutil enable in Terminal to enable SIP
7. reboot

razorme

macrumors regular

For Catalina the steps should be:

1. command-r boot to recovery
2. csrutil disable in Terminal to disable SIP
3. reboot to command-r recovery again
4. in Terminal cd /Volumes/Macintosh\ HD (or whatever your normal boot drive is named)
5. rm -rf /com.apple.TimeMachine.localsnapshots
6. csrutil enable in Terminal to enable SIP
7. reboot

gcarey

macrumors newbie

ssls6

macrumors 6502a
macrumors regular

This can be done much easier:
Open Terminal and run «tmutil listlocalsnapshots /». Then run «tmutil deletelocalsnapshots X» and replace X with the timestamp shown from listlocalsnapshots. Run the delete command for each snapshot.

Ex.: tmutil deletelocalsnapshots 2020-04-17-002312

larob

macrumors newbie

For Catalina the steps should be:

1. command-r boot to recovery
2. csrutil disable in Terminal to disable SIP
3. reboot to command-r recovery again
4. in Terminal cd /Volumes/Macintosh\ HD (or whatever your normal boot drive is named)
5. rm -rf /com.apple.TimeMachine.localsnapshots
6. csrutil enable in Terminal to enable SIP
7. reboot

I just tried this and couldn’t get command #4 to work from Catalina 10.15.4. When I did a ‘ls’ on /Volumes/ they only thing in there was the recovery volume, not Macintosh HD. Disk Utility could «see» Macintosh HD, but it was grayed out.

Any help is appreciated as I would like to get rid of this directory.

ric_d

macrumors newbie

I just tried this and couldn’t get command #4 to work from Catalina 10.15.4. When I did a ‘ls’ on /Volumes/ they only thing in there was the recovery volume, not Macintosh HD. Disk Utility could «see» Macintosh HD, but it was grayed out.

Any help is appreciated as I would like to get rid of this directory.

ric_d

macrumors newbie
macrumors member

@me55 your proposed solution failed. I used tmutil listlocalsnapshots then tmutil deletelocalsnapshots with all the dates. Until listlocalsnapshots listed no more snapshots. Nevertheless com.apple.TimeMachine.localsnapshots/ prevailed.

@gcarey your solution to disable SIP, then remove the leftover com.apple.TimeMachine.localsnapshots/ worked. Took me 5min max. Instead of likely 2h of a full re-install.

macrumors regular

sunef

macrumors newbie

I «discovered» today that it is no longer necessary to specify each local snapshot date
when deleting snapshots.

Источник

Оцените статью