How to permanently disable local TimeMachine backups?

Hi,
I have disabled the local TimeMachine using:
  sudo tmutil disablelocal
That all works fine but after a reboot, the local backups are back again. For some reason this setting doesn't survives a reboot.
Can nayone give me some advise on how to permanently disable local TimeMachine backups?
Dennis

Here's how I permanently disable TM local snapshots:
1. create  ~/Library/LaunchAgents/com.wfiveash.disable_tmlsnaps.plist containing:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.wfiveash.disable_tmlsnaps</string>
    <key>ProgramArguments</key>
    <array>
        <string>/Users/willf/bin/disable_tmlsnaps.ksh</string>
    </array>
    <key>WatchPaths</key>
    <array>
        <string>/Library/Preferences/com.apple.TimeMachine.plist</string>
    </array>
</dict>
</plist>
2. create a shell script ~/bin/disable_tmlsnaps.ksh:
#!/bin/ksh -p
# This script is supposed to be run via launchd (see
# ~/Library/LaunchAgents/com.wfiveash.disable_tmlsnaps.plist) when launchd
# detects a change to the TimeMachine.plist file.  This script will determine
# if TM local snapshots has been enabled via the MobileBackups property and if
# it has it will run the setuid disable_tmlsnaps binary.
# prevent launchd throttling respawn warning, must wait 10s before this script exits
sleep 10
integer lsnaps=-1
lsnaps=$(defaults read /Library/Preferences/com.apple.TimeMachine.plist MobileBackups)
if [[ $lsnaps -eq 1 ]]
then
    exec "${HOME}/bin/i386/disable_tmlsnaps"
elif [[ $lsnaps -eq -1 ]]
then
    # there was an error running defaults
    exit 1
else
    exit 0
fi
3. Lastly compiled this C program and named it ~/bin/i386/disable_tmlsnaps.  I set the permissions so it was owned by root and setuid:
* To build: gcc -o disable_tmlsnaps disable_tmlsnaps.c
* sudo chown root:wheel disable_tmlsnaps
* sudo chmod u+s disable_tmlsnaps
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
int
main (int argc, char *argv[])
    int rc;
    rc = setuid(0);
    if (rc == 0)
        rc = system("/usr/bin/tmutil disablelocal");
    return rc;
=================================================================
Now when /Library/Preferences/com.apple.TimeMachine.plist is modified (which happens when TM is enabled or disabled) launched will run my disable_tmlsnaps.ksh script which will check to see if it needs to disable TM local snapshots.

Similar Messages

  • How to permanently disable this message: "Press Esc to exit full screen." (by Adobe Flash Player) in Mac's Safari Browser?

    Hello everyone,
    I have been searching for sometime (without any success) for a solution to permanently remove this annoying message: "Press Esc to exit full screen."
    Whenever I go to full screen mode, watching any video on YouTube, BBC, CNN (or many other websites which use Adobe Flash Player for streaming video) I have to bare seeing this message for several seconds until it fades away. Seeing this message once or twice would have been okay, but as we all watch many videos on a daily basis on internet, after weeks, months and now years seeing this message over and over again many times every day, it becomes very annoying, and I find myself rewinding many videos to their beginning after this message fades away to be able to watch it from the beginning without anything obstructing it!
    Does anyone know how to "permanently" disable this message from appearing?
    I am using the latest version of Safari 6.0 on the latest version of OS X (Mountain Lion 10.8.1), and have the latest version of Adobe Flash Player (Plug-in version 11.4.402.265) installed on my new MacBook Pro 15" with Retina Display.
    Thanks,
    Ally
    Thursday, September 13th, 2012

    Thanks Carolyn,
    I am attaching a screenshot here for you to see that this setting was already set to what you suggested. I didn't need to change it as it was like this even before I post this message.
    So the problem still presists and unfortunately your suggestion is not a solution to this probelm.
    Last night I did more reseach and found a discussion in Adobe website, it seems a lot of other people have the same issue, and even started a discussion in Adobe website about it. But unfortunately Adobe refuses to address it and enable the end user at least to have an option to turn this message off from displaying permanently on his/her computer.
    I am writing down the url links for the two posts regarding this issue on Adobe's website:
    Link #1: http://forums.adobe.com/thread/921270
    Link #2: https://bugbase.adobe.com/index.cfm?event=bug&id=3058752
    Hopefully more people will get involved and ultimately we will either get Adobe's attention, or someone will find a "hack" and post it here for all of us. I have found some suggested "hacks" for Windows environment (you can simply google it, I am sure you will find them too). But so far I haven't seen anything for Mac's Safari browser.
    Cheers,
    Ally
    Thursday, September 13th, 2012

  • How to permanent disable the touchpad for dv6-1245dx

    i can't find anything to permanently disable the touchpad.
    I disabled  the item in the control panel, but still it turns during bootup or after standby.
    how to permanently disable that touchpad?
    ps. also uninstalled the driver, but it's still working.

    Hi,
    Go to Control Panel -> Devices Manager -> Mouse and other pointing devices
    Click with right button of Your mouse on Touchapd abd choose switch off.
    ** Say thanks by clicking the "Thumb up" icon which is on the left. **
    ** Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue. **

  • I'm doing a timemachine backup of my current MBPro. The MBPro has aproximately 250 GB of content that is being "timemachine'd". My new SSD is only 128 GB, how do I restore the timemachine backup, when my old drive was larger than the new drive?

    I'm doing a timemachine backup of my current MBPro. The MBPro has aproximately 250 GB of content that is being "timemachine'd". My new SSD is only 128 GB, how do I restore the timemachine backup, when my old drive was larger than the new drive? Is there a way to pick what you want to restore or am I completely f***ed? I tried googling the answer but all i got was how to move the timemachine backup to another HDD. Sorry for the ******** question, thought I'd try here.
    Thanks for the help.

    I'm doing a timemachine backup of my current MBPro. The MBPro has aproximately 250 GB of content that is being "timemachine'd". My new SSD is only 128 GB, how do I restore the timemachine backup, when my old drive was larger than the new drive? Is there a way to pick what you want to restore or am I completely f***ed? I tried googling the answer but all i got was how to move the timemachine backup to another HDD. Sorry for the ******** question, thought I'd try here.
    Thanks for the help.

  • How to permanently disable programs running in Activity Monitor?

    Considering the Activity Monitor being able to manually disable programs running in the background. How do I permanently disable programs running in the background ?
    Not all these programs appear in the System Preferences >> Users & Groups >> Login Items
    System details:

    jojojona wrote:
    Considering the Activity Monitor being able to manually disable programs running in the background. How do I permanently disable programs running in the background ?...
    You might want to make a full clone backup of your boot drive before you start disabling processes unless you know what software those processes support since you may break software you need. For example, Creative Cloud is Adobe software; do you use any Adobe software which might depend on Creative Cloud running?

  • How to copy a networked TimeMachine backup to an external drive and restore from it?

    Hi,
    I backup my MacBook Air with TimeMachine to my QNAP NAS which offers a TimeMachine backup service and I can restore data from it OK.
    Working in IT, and being a bit paranoid about important data loss, I am concerned that if I was robbed or my house burnt down I would most likely lose both the MacBook and the TimeMachine Backup on my NAS :-(
    To protect against this I have backup my (linux based) NAS to an external drive that I keep offsite. This drive is encrypted to keep my data secure with a Linux form of encryption (cryptsetup) and hence can't be plugged into a MacBook to try and restore from it - I doubt this would work either as the TimeMachine data is not located in the root of the drive.
    So what I have done to test my restore process is to mount the encrypted NAS backup that include the TimeMachine backup folders on a Linux machine and then copy the TimeMachine data to the root of an HFS+ formatted external USB drive.
    But, now I am stuck as how to try and restore something from this to my MacBook to see if the copy of the TimeMachine backup is good. If I press the Alt key on the TimeMachine icon, I can select an alternate backup device and when I enter TimeMachine to browse the data, I can browse the structure but there is no option to go back in time !! It seems like it is not possible to restore from this copy of the TimeMachine backup.
    Does anyone know if this should be possible, and if so, what am I doing wrong here?
    Rgds
    Gary

    Try un-mounting the drive from the Linux computer and see if you can access it as NAS.

  • How to copy a networked TimeMachine backup to a USB drive and restore from it?

    Hi,
    I backup my MacBook Air with TimeMachine to my QNAP NAS which offers a TimeMachine backup service and I can restore data from it OK.
    Working in IT, and being a bit paranoid about important data loss, I am concerned that if I was robbed or my house burnt down I would most likely lose both the MacBook and the TimeMachine Backup on my NAS :-(
    To protect against this I have backup my (linux based) NAS to an external drive that I keep offsite. This drive is encrypted to keep my data secure with a Linux form of encryption (cryptsetup) and hence can't be plugged into a MacBook to try and restore from it - I doubt this would work either as the TimeMachine data is not located in the root of the drive.
    So what I have done to test my restore process is to mount the encrypted NAS backup that include the TimeMachine backup folders on a Linux machine and then copy the TimeMachine data to the root of an HFS+ formatted external USB drive.
    But, now I am stuck as how to try and restore something from this to my MacBook to see if the copy of the TimeMachine backup is good. If I press the Alt key on the TimeMachine icon, I can select an alternate backup device and when I enter TimeMachine to browse the data, I can browse the structure but there is no option to go back in time !! It seems like it is not possible to restore from this copy of the TimeMachine backup.
    Does anyone know if this should be possible, and if so, what am I doing wrong here?
    Rgds
    Gary

    For anyone else that may be in a similar situation, I can confirm that this does actually work.
    I am unsure why I was not able to mount the original sparseimage that I copied to the USB drive before, but I have gone through the entire process again and I could successfully mount the TM sparseimage onto my MacBook and restore files from within it using TimeMachine to my Mac.
    This is a Disaster Recovery solution only needed for if both my NAS and Macbook get stolen or damaged so I am happy with this solution for now.
    I will try the restore process several more times from my monthly backups to reassure myself that the first failure to mount the sparse image was an anomaly.
    This is the process that I have tested:
    Configure MacBook to backup to TimeMachine Service running on QNAP NAS device.
    Perform regular backup of QNAP NAS Device (Linux) including the TimeMachine backup data to an external USB drive with encryption enabled and store this device safely off-site
    In time of loss of both NAS and MacBook, Time Machine data can be recovered to another Mac without the need of the NAS  using the following process:
    Mount the external drive containing the backup of the NAS filesystem (ext4) which is encrypted onto a Linux host so it is readable - use the cryptsetup luksOpen options to access the encrypted filesystem then mount it.
    Mount a n empty HFS+ formatted USB drive  on the Linux host
    Use Rsync to copy the sparsebundle from the external NAS drive backup disk to the root of the USB Drive
    Insert the HFS+ formatted USB containing the sparesbundle into the Mac's USB port
    Double click the sparsebundle to mount it onto the Mac as a Volume
    Using Alt button and the TimeMachine icon, select use alternative backup disk and you should see the TM backup in the sparsebundle
    Enter TimeMachine and you should be able to restore any/all files
    Hope that helps someone else and thanks to LaPastenague for pointing me in the direction of some of the answers I needed.
    Rgds
    Gary

  • How to permanently disable comment popup hint in Adobe Reader X?

    I wish to permanently disable the popup that says  "Click on Comment and Share to create, mark-up and send PDF files.":
    It is getting annoying having to always click it to remove it when viewing a new PDF file in Fullscreen mode.
    How can I acheive this?
    Is there a setting in the preferences or a key in the registry that I can modify?

    You're right. I've tested on a couple of computers now and the problem seems to be isolated to one computer with a particular software setup. On the others it works as you describe.
    You would'nt by any chance know where this "don't show the bubble"-setting is stored after clicking the cross for the first time? Is it in the registry?
    Edit:
    Received a helpful tips: HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\10.0\AVGeneral\bShowTaskButtonInfoBubble

  • How to permanently disable the Shared Photo Stream on a windows pc

    I've got the Icloud control panel installed on a windows7 pc. On this specific pc I only want My Photostream running. I've tried to disable the Shared Photo Stream - but when I log off my windows user account an then log in again, the checkmark next to the Shared photo Stream is back, and iCloud starts again downloading the shared stream. How can I stop this behavior? I want to permanently disable the Shared Photo Stream.

    Try this method of duplication:
    <font "size=+1">Duplicate a CD or DVD
    1. Insert the DVD/CD;
    2. Open Disk Utility, and select the DVD/CD from the left side list (select the DVD/CD icon on top);
    3. from the DU File menu select New | Disk Image from Disk 1;
    4. Choose to format the disk image as DVD/CD Master, name the disk image and click Save;
    5. When the .cdr file is finished select it with mouse and press COMMAND-I to open the Get Info and check the box to lock the file;
    6. Choose the .cdr file from the left side list, click Burn, and insert a new, blank DVD or CD.

  • How to permanently disable click-to-run "feature" on all plug-ins

    How can I permanently disable the click-to-run "feature" for all plug-ins *including* ones that are unsafe, exploitable, etc.?
    I know that this is "unsafe", "inadvisable", a "security risk", etc. however this question has been asked many times and I have not yet found an answer. My reason for wanting to do so is not important and there is no point in questioning it; this is a simple question with what should be a simple answer, and does not require the bickering and arguing that always ensues when someone asks this extraordinarily basic question.
    I want to permanently disable any and all forms of click-to-run for any and all plugins, so that all plugins run without having to be clicked first and show absolutely no warnings whatsoever of any kind. If I don't want to run a plug-in I will disable it.
    How can I do this very simply thing?

    Some outdated plugins (e.g. Flash plugins) are blocked via click-to-play and can be enabled when required.<br />
    It is best to update such a plugin to the latest version to be protected against security vulnerabilities.
    You would have to disable blocklisting to circumvent this and that is not recommended.

  • How to PERMANENTLY disable auto-run write trials of qttask.exe and outbound

    I installed QuickTime player on my WinXP.
    As I found out my firewall pops up frequently since then informing me that qttaks wants to write itself in the auto-start folder.
    Furthermore I observed several internet connection attempts.
    So QT want to call come to Moms server at apple?, eh?
    This is nasty and really annoying similar to MS.
    How can I disable both PERMANENTLY?
    I did not found options for that.
    Peter

    It is probably trying to load the "Content Guide" and you can turn this off in the Player Preferences.

  • HT2966 I changed a repeating event and this ****** DELETED 10 events. How to restore this from timemachine backup?

    On the iPhone you can change how many times an event is repeated. I changed that number from 10 to 11 and it automatically deleted all my 10 events and replaced the valuable notes with *nothing*.
    I do daily backups with timemachine, but cant seem to find a way to restore the events - since I already made a lot of changes today.
    next question: is there an ical alternative, which is actually safe to use for business?

    For anyone else that may be in a similar situation, I can confirm that this does actually work.
    I am unsure why I was not able to mount the original sparseimage that I copied to the USB drive before, but I have gone through the entire process again and I could successfully mount the TM sparseimage onto my MacBook and restore files from within it using TimeMachine to my Mac.
    This is a Disaster Recovery solution only needed for if both my NAS and Macbook get stolen or damaged so I am happy with this solution for now.
    I will try the restore process several more times from my monthly backups to reassure myself that the first failure to mount the sparse image was an anomaly.
    This is the process that I have tested:
    Configure MacBook to backup to TimeMachine Service running on QNAP NAS device.
    Perform regular backup of QNAP NAS Device (Linux) including the TimeMachine backup data to an external USB drive with encryption enabled and store this device safely off-site
    In time of loss of both NAS and MacBook, Time Machine data can be recovered to another Mac without the need of the NAS  using the following process:
    Mount the external drive containing the backup of the NAS filesystem (ext4) which is encrypted onto a Linux host so it is readable - use the cryptsetup luksOpen options to access the encrypted filesystem then mount it.
    Mount a n empty HFS+ formatted USB drive  on the Linux host
    Use Rsync to copy the sparsebundle from the external NAS drive backup disk to the root of the USB Drive
    Insert the HFS+ formatted USB containing the sparesbundle into the Mac's USB port
    Double click the sparsebundle to mount it onto the Mac as a Volume
    Using Alt button and the TimeMachine icon, select use alternative backup disk and you should see the TM backup in the sparsebundle
    Enter TimeMachine and you should be able to restore any/all files
    Hope that helps someone else and thanks to LaPastenague for pointing me in the direction of some of the answers I needed.
    Rgds
    Gary

  • How to permanently disable hyperlink autopopup views?

    How do I permanently disable the annoying feat of viewing a preview of a hyperlink, everytime the mouse hovers over a hyperlink?
    It's really gad damn annoying!

    Welcome to Apple Communities
    Settings > Safari

  • HOW to permanently disable Tap to Click? Keeps re-enabling !@$#@&# HP 2000 Notebook PC Windows 7

    I sincerely hope whoever implemented this featurehas [edited comment by moderator].  I was so tempted to just throw this machine out, or donating it to a homeless person though the latter could possibly be considered an act of cruelty.
    Anyway, no matter how many times I disable tap to click, before long my laptop is clicking everything against my will, again. Is there a way to permanently disable this without permanently destroying the whole of the physical machine (which is growing increasingly tempting)?
    My drivers are all up to date. So far I could only find a vague suggestion to edit the registry without details as to how and where.

    Hi @hypgnosis ,
    I have brought your issue to the attention of an appropriate team within HP. They will likely request information from you in order to look up your case details or product serial number. Please look for a private message from an identified HP contact. Additionally, keep in mind not to publically post ( serial numbers and case details).
    If you are unfamiliar with how the Forum's private message capability works, you can learn about that here.
    Regards,
    George
    I work for HP

  • How to permanently disable Windows Defender?

    Windows Defender won't stay disabled.  I searched through the threads and saw several others have had this problem but the issue has apparently never been resolved.  I removed Windows Defender from startup using MSCONFIG, disabled it from the GUI
    that's accessible through the Control Panel, and disabled the service through the Administrative Services > Services panel, yet the program is still re-enabling itself after every reboot.  
    I searched around but saw no "Fix-It" articles or anything suggesting that Microsoft has any interest whatsoever in trying to resolve this issue.  Does anyone know of a registry hack or a third-party tool that will knock out Windows Defender
    permanently? 

    As per the link provided by
    Cyber_Defend_Team it should be disabled... 
    But in rare case it wont completely disabled.. At this point you can do a registry trick and reboot.. Beforeo ahead backup the registry key ... 
    1)Then change directory to the location where you have extracted the PSTools.zip
    (Mine it is C:\Users\araa\Desktop\PSTools )
    (2) open registry editor with psexec  with following parameters.. -s -i -d 
    The command should be psexec -s -i -d regedit
    Then registry editor will be opened and navigate to this path
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender]
    Double click on REG_DWORD  "DisableAntiSpyware" and
    make that value to 1.
    http://www.windowstechinfo.com/2013/10/solved-application-failed-to.html
    Reboot

Maybe you are looking for

  • My Nike sensor is not working in ipod touch

    My Nike + Ipod sensor is not working in Ipod touch. I tab on it and it opens up saying walk around to activate the sensor, I walked couple of times, jogged, ran, but the sensor is not activating..Any settings to be changed or what should I do to get

  • Alpha Channel Settings keep reverting back to "Ignore"

    Hey All, Just diving into FCPX and I had a question about the alpha channel. After finding the Alpha setting in the inspector, I switched to it premultiply. However, upon clicking out of it, the inspector reverts back to "ignore alpha." It does this

  • ZEN V PLUS ISNT RECOGNIZ

    Media Source or Media Explorer says its not connected when it is. I tried almost everything, here a few symtoms - I dont have a MTP category under device manager - MP3 is only half way charged (could that be the reason?) - I have USB . - Windows reco

  • Purchase requisition's Workflow :

    Hi all, i must implement the standard workflow for purchase requisition, i use the number 20000077 - Workflow for overall release of requisition. I would like to know if it's possible to have many responsibles for a code release in release strategy o

  • Widget problem in IE. Please Help!

    Hello, I have a page the utilizes the "Phatfusion Multibox" widget found in the extensions through Adobe.  After inserting the widget armed with advise from a previous thread I started, everything seemed to be going just fine... that is until I looke