How to automatically disable Time Machine during a BRU Server backup.

Disable the autobackup of Time Machine during a BRU Server backup.

If you use Time Machine in conjunction with BRU Server on Mac OS X then it is a good idea to turn off Time Machine for the duration of the BRU Server backup.  This process can either be automated or performed manually.  In either case, these steps demonstrate how to turn off Time Machine for the duration of a BRU Server backup on a system where Time Machine is running.

Important Note: These steps are to be done by the system administrator.  If you are not the system administrator, please contact your system administrator to have them perform these steps.

10.4 and Earlier Note: These steps do not need to be performed on any machines running Mac OS X 10.4 and earlier as they do not have Time Machine.  This applies to 10.5 or later systems only.

We will use the BRU Server "pre" and "post" scripts to pause the Time Machine operations while the BRU Server backup or restore operations are running.  The pre script will stop the Time Machine service and the post script will start it running as normal.  This will allow you to automate the process.

Part One:

  1. On the BRU Server Agent machine, open the Applications folder.
  2. Open the Utilities folder.
  3. Double-click on the "Terminal" application.
  4. Once the Terminal application appears, copy and paste the following command:

  5. sudo pico /usr/local/bru-server/pre

  6. At the password prompt, type the user password.  You must be a system administrator to create this file.
  7. A command line word processor called PICO will load, simply copy and paste the following command:

    tmutil disablelocal

    Note: If this file is a blank or new file, make sure you add the Hash Bang to the top, usually: #!/bin/bash

  8. You can paste by typing command-v (⌘ v), by right-clicking and choosing "Paste," or by choosing "Paste" from the "Edit" menu.  You may also simply type the full command above into the PICO window.
  9. Once the command above has been added to the file, press CTRL-O (control-O -- Not zero). Note that it's the CONTROL key and not the command key.
  10. It will prompt you for the file name, just press [ENTER] (a.k.a. [RETURN]).
  11. Exit PICO by pressing CTRL-X (control-x). Note that it's the CONTROL key and not the command key.
  12. The final step is to make sure that the file is executable for BRU Server to be able to execute this command. The following command will accomplish this:

    sudo chmod +x /usr/local/bru-server/pre

The first part - stopping the Time Machine service is complete.  Also, you have successfully created a pre-script and made it executable for BRU Server to execute on the client system prior to BRU Server running a backup. Part two will show you how to make a post script.

Part Two:

  1. If you closed the Terminal window already, then you'll need to open it again.
    1. On the BRU Server Agent machine, open the Applications folder.
    2. Open the Utilities folder.
    3. Double-click on the "Terminal" application.
  2. In the Terminal window, copy and paste the following command:

    sudo pico /usr/local/bru-server/post

  3. At the password prompt, type the user password.  You must be a system administrator to create this file.
  4. A command line word processor called PICO will load, simply copy and paste the following command:

    tmutil enablelocal
  5. Note: If this file is a blank or new file, make sure you add the ShaBang to the top, usually: #!/bin/bash

  6. You can paste by typing command-v (⌘ v), by right-clicking and choosing "Paste," or by choosing "Paste" from the "Edit" menu.  You may also simply type the full command above into the PICO window.
  7. Once the command above has been fully entered, press CTRL-O (control-O -- Not zero). Note that it's the CONTROL key and not the command key.
  8. It will prompt you for the file name, just press [ENTER] (a.k.a. [RETURN]).
  9. Exit PICO by pressing CTRL-X (control-x). Note that it's the CONTROL key and not the command key.
  10. As with the pre script, the post script file needs to be executable for BRU Server to be able to execute this command. The following command accomplishes this:

    sudo chmod +x /usr/local/bru-server/post

The combination of pre and post can be used to control other system operations that should be performed before and/or after a BRU Server job is run.  Refer to the BRU Server Admin Guide for more information about these files.

Legal Note: These commands are provided as-is and TOLIS Group assumes no liability if you choose to attempt to run either of these commands, nor does TOLIS Group Technical Support offer support for these commands.. These commands are provided as a options and are not required to be run in order to use any TOLIS Group product. Please see the Legal Restrictions & Terms and Conditions for Use of Web Site for more information.