Coder Social home page Coder Social logo

autobackup's Introduction

AutoBackup

Launch daemon to trigger backups via tmutil startbackup when Time Machine automatic backups stop working.

This daemon is setup to run a backup every hour from 6:00am to 8:00pm. This works well if you are running backups on Macs in a business environment. Feel free to fork and add backup intervals as needed.

Prerequisites

Make sure you meet these requirements before installing the daemon.

  • A Mac

  • An external hard drive

  • The external hard drive is setup as your backup drive

Installation

  1. Fork and download the repository to your Mac

  2. Make any interval changes (see instructions below) to the .plist file in your favorite text editor

  3. On your Mac, open a new Terminal window and type the following command:

    $ open ~/Library/LaunchAgents

  4. Drag a copy of the .plist into the window you opened

  5. Open System Preferences, select the Time Machine pane and disable "automatic backups"

  6. Close all open applications and reboot your Mac

Interval Format

The following example would add a backup at midnight. Change the hour and minute integer according to your desired backup requirements.

<dict>
  <key>Hour</key>
  <integer>0</integer>
  <key>Minute</key>
  <integer>0</integer>
</dict>
Note: This daemon requires you to use military time for hours and minutes.
Special thanks to kainjow on the MacRumors Forum who wrote the basis for this code. It can be found here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.