Skip to content

Instantly share code, notes, and snippets.

View aussiegeek's full-sized avatar
🚲
Thinking about riding

Alan Harper aussiegeek

🚲
Thinking about riding
View GitHub Profile
@nigelr
nigelr / resize.sh
Last active December 10, 2015 17:18
Resizes TimeMachine sparesbundle maximum size and then locks the file
#!/bin/bash
# This script resizes a sparsebundle and locks the Info.plist to prevent timemachine resizing it.
# Usage
# resize.sh MacBook.sparsebundle 100g
# which resizes the sparse bundle to 100GB
echo "unlocking Info.plist"
SetFile -a l "${1%/}/Info.plist"