Last active
December 27, 2015 21:48
-
-
Save Andrewpk/7393939 to your computer and use it in GitHub Desktop.
Create a new automator application that has a single action of 'Run Shell Script' and add this as the script, replacing 'MOUNTNAME' with what you want the network share mounted as, 'USERNAME' and 'PASSWORD' respectively (if you have neither set on your SMB share [seriously?] remove from 'USERNAME' to '@' from that line), 'HOST/PATH/TO/TIMEMACHIN…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /Volumes/MOUNTNAME; mount_smbfs //USERNAME:PASSWORD@HOST/PATH/TO/TIMEMACHINE/SPARSEBUNDLE /Volumes/MOUNTNAME; /usr/bin/hdiutil attach /Volumes/MOUNTNAME/YOURTIMEMACHINE.sparsebundle; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment