Skip to content

Instantly share code, notes, and snippets.

@ssp
ssp / tmstop.sh
Created February 15, 2010 09:53 — forked from nriley/tmstop.sh
#!/bin/zsh -ef
# Stop Time Machine & AppleFileServer
export PATH=/bin:/usr/bin:/usr/sbin:/usr/libexec
setopt extendedglob
diskutil mount $(diskutil list | awk '/MaryBackup\+ A/ { print $NF }')
[[ $(id -u) == 0 ]] || { print "$0: must be running as root" >&2 ; exit 1 }