Right now, I keep my sensitive documents in an encrypted DMG, but I'll move them all in a sparsebundle instead, because apparently it saves me a lot of time due to it backing up incrementally.
As far as the "technology" behind sparsebundles is concerned, do I have to worry about file corruption more (or less) than DMG's? Meaning, if I'm just as careful (after moving to sparsebundle from DMG), do I have a higher (or lower) risk to encounter corrupted files?
Also, when a sparsebundle fills up with files and reaches its limit in size, is it advised to make a new one and move the files in it, or should I just run the Terminal command (if I'm not mistaken it's hdiutil compact /Volumes/*name...*/*name...*.sparsebundle) which reclaims the unused space for me?
As you can probably already see, first and foremost, my goal is to avoid encountering corrupted files. If using a sparsebundle instead of a DMG isn't as safe, I could definitely give up the advantage of the time I save when backing up.
Thank you.
What does being careful actually mean? What actions would you call careful? What would you consider careless?
If you have examples of careful vs. careless, please post them, and I can think about what the consequences of those actions might be. But without knowing exactly what you mean, I can't say one way or the other.
The "technologY" is pretty simple. A dmg (or sparseimage) is a single file. A sparsebundle is a directory with multiple files. If you know anything about filesystems, and HFS in particular, then you'd know that corruption can occur for various reasons, at various points in the writing of various blocks of data.
The primary factor in determining reliability will be the reliability of the media itself, i.e. the SSD, rotating HD, SD card, USB flash drive, or whatever the disk image is stored on. If the media is unreliable or fails, then nothing in the dmg, sparseimage, or sparsebundle can correct for that.
One advantage that a sparsebundle has over a sparseimage arises from the bands. Because each is a separate file, holding some part of the overall "disk", if a band holds data that doesn't change, then that band file isn't modified, even if other parts of the "disk" are. For example, if you don't change certain files on the sparsebundle, then the bands that store the actual data for those files isn't modified. This makes it less likely that existing unchanged files will be corrupted if something goes wrong elsewhere on the "disk". In other words, existing unchanged data is less likely to be corrupted if some new data ends up getting corrupted. Of course, that also depends on what kind of corruption you're concerned about. Directory corruption can damage the ability to locate or access existing files, so even if the file data is undamaged, the directory that holds all the location info could be damaged. I can't see a reason to think that sparsebundle is better (less corruptible) than dmg or sparseimage in that regard.
If you do things you shouldn't, like unplug removable media without ejecting the volume first, then all forms of disk image are susceptible to corruption. I'm not sure how to assess one format's reliability over the other.
One thing that a dmg or sparseimage will give you that a sparsebundle won't is singular integrity. That is, if Time Machine is backing up a complete dmg or sparseimage, then the complete file is backed up. It's a single file (singular), and the entire file is consistent (integrity).
Sadly, "integrity" doesn't tell you whether the disk image file is corrupted or not. It could be that something happened in the past that damaged a directory, and unless you run Disk Utility on the disk image, you won't know it. So some past corruption could occur, and because each backup copies the whole disk image file, you keep carrying that corruption forward. Since sparsebundle bands work differently (they don't have singular integrity), you might get different kinds of failures if directory corruption is carried forward.
As a general rule, I'd keep multiple backups of whatever was important. That means multiple media, as in an SD card, a rotating HD, and maybe a USB flash drive or a second SD card. I'd also be verifying the multiple backups, so if there is any data loss, it becomes apparent before you try relying on the data.
If that seems like a lot of verbiage, it's because you asked a somewhat unclear question, and any answer will be complex because it depends on multiple tradeoffs. Plus there's the tradeoffs involved with the single huge dmg vs. the distinct band-files of the sparsebundle. The size benefits might outweigh the risks; only you can judge that.