Created
October 27, 2013 09:33
-
-
Save gauteh/7179635 to your computer and use it in GitHub Desktop.
make network time machine - http://hints.macworld.com/article.php?story=20110808120424119
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
# /bin/bash | |
# | |
# Makes a sparsebundle and set it up | |
hostname=$(hostname) | |
# create sparsebundle | |
hdiutil create -size 300g -library SPUD -fs HFS+J -type SPARSEBUNDLE -volname "Backup-${hostname}" "${hostname}.sparsebundle" | |
# enable unsupported volumes | |
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1 | |
echo "copy ${hostname}.sparsebundle to the networkdrive, | |
open it and set it as the destination in time machine. Or use: | |
$ sudo tmutil setdestination -p /Volumes/Backup | |
" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment