Created
November 1, 2012 22:49
-
-
Save sansumbrella/3997241 to your computer and use it in GitHub Desktop.
Sparse bundle creation for time machine on NAS.
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
# creates a sparsebundle disk image with a 128MB band size | |
MACHINE_NAME=your-machine-name | |
echo $MACHINE_NAME | |
hdiutil create -size 900g -type SPARSEBUNDLE -nospotlight -volname "Backup of $MACHINE_NAME" -fs "Case-sensitive Journaled HFS+" -imagekey sparse-band-size=262144 -verbose ./$MACHINE_NAME.sparsebundle |
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
# copy the plists from TIME_MACHINE_IMAGE to NEW_IMAGE | |
TIME_MACHINE_IMAGE=your-machine-name.old.sparsebundle | |
NEW_IMAGE=your-machine-name.sparsebundle | |
cp $TIME_MACHINE_IMAGE/com.apple.TimeMachine.*.plist $NEW_IMAGE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For motivation, see: http://sansumbrella.com/writing/2012/the-reluctant-sysadmin-nas-time-machine/