Set Time Machine Image Size

With the new server up and running at home, I’ve finally got the wife’s laptop backed up via Time Machine over AFP. The problem is, Time Machine will use the entire drive if you let it. I definitely don’t want that. I thought about doing quotas, but I use the drive for other stuff too, and quotas would have applied to everything which I didn’t want.

The answer is simple… resize the sparsebundle:

hdiutil resize -size 100g -shrinkonly laptop_00xxxxxxxx.sparsebundle

Just mount the share designated for Time Machine use, navigate to it via Terminal, and enter the above command, using the appropriate info. You’ll need to change the end to point to whatever your sparsebundle is named (usually the name of your Mac plus it’s primary ethernet ID). You can also adjust the size to whatever you see fit. 100g means 100GB.

You need to have ownership of the sparsebundle or use sudo if you don’t.

You can also increase the size should you need it by replacing -shrinkonly with -growonly.

Cool. :)

Comments