Skip to content

Instantly share code, notes, and snippets.

@sansumbrella
Created November 4, 2012 17:10
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sansumbrella/4012632 to your computer and use it in GitHub Desktop.
Save sansumbrella/4012632 to your computer and use it in GitHub Desktop.
Query band size of a sparsebundle (also accessible in Info.plist of bundle)
# find out how big the sparse-band-size is in a mounted volume
hdiutil info -verbose | grep band-size
# default Time Machine sparsbundle virtual-band-size = 16384 (8MB)
# create-sparsebundle's virtual-band-size = 262144 (128MB)
@sansumbrella
Copy link
Author

Alternatively, look at the Info.plist in the .sparsebundle. This band-size is 512x the virtual-band-size returned by hdiutil.
Time Machine default band-size:
8388608
create-sparsebundles' band-size:
134217728

@cognivator
Copy link

cognivator commented Jan 29, 2023

For anyone finding this 10 years on (2023...)

My short investigation into my NAS Timemachine volume (Synology DSM 7.x) shows a band size of 256MB. I believe this must reflect Timemachine picking a much better default than in the past, probably based on some combination of OS Version (Monterey), drive location (NAS v local), and volume size (mine is 11TB).

@billzhong
Copy link

Creating a new Time Machine backup in macOS Sonoma, the band size is now 8GB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment