Skip to content

Instantly share code, notes, and snippets.

@jeffmccune
Created August 14, 2012 18:44
Show Gist options
  • Save jeffmccune/3351599 to your computer and use it in GitHub Desktop.
Save jeffmccune/3351599 to your computer and use it in GitHub Desktop.
Script your time machine volume

Unmount and remount via zsh

$ stdout=$(diskutil umount /Volumes/SlowSpare)
$ echo $stdout
Volume SlowSpare on disk1s4 unmounted
$ disk=${stdout##* on }
$ disk=${disk%% un*}   
$ diskutil mount $disk 
Volume SlowSpare on disk1s4 mounted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment