I can easily clone an SD card to a file with "dd" on my Mac. I can also add "count" to limit the number of sectors that are read from the SD card.
What I can't figure out is how to find the exact number of sectors that I have to read, in order to back up the entire file system, but not more. How do you create the image file that is being distributed?