Skip to content

A collections of commands and scripts to control time machine on macOS

Notifications You must be signed in to change notification settings

awildeone/TimeMachine-Commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Time Machine Terminal Controls

This is a collection of commands that can be used to control Time Machine on macOS

Current List (in Progress):

  • Schedule TimeMachine interval (CronTab)

Time Machine Scheduler

  1. Create tm_scheduler.sh under any directory you want to keep the file.

    vim tm_scheduler.sh

    Add script:

    #!/bin/sh
    /usr/bin/tmutil startbackup
    
  2. Create a crontab to run the command

    crontab -e

  3. In the crontab editor (Default VIM), add the following template in the repo

crontab example.txt

  1. As a new line, add your crontab command using the template as a guide. To run a shell script, you will need to add /bin/sh in the line. The following command will run at minute 0 of every hour, every day.

0 * * * * /bin/sh /path/to/schedule.sh

  1. Exit out of Vim while saving on quit (:wq)
  2. Check the status of the backup at the top of the hour.

Time Machine Log

This was a log file that Jim Randell posted on a Stackexchange post. I wanted to put it here for reference in the future.

  1. Create a file called tm-log.sh
  2. Paste the contents from the tm-log.sh file in the repo
  3. Run it

It will continue to monitor for TM status after reporting the last 12 hours of log info.

About

A collections of commands and scripts to control time machine on macOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages