Two Copies That Occupy Only One Copy's Space: First Verify Whether the Backup Is Truly Independent
Many people's intuition about backups is 'make another copy.' But on some modern file systems, copying does not immediately occupy a second copy's worth of s…
- Added to the lab
- Downloads
- 0
- Human review
- Review information not provided
Many people's intuition about backups is 'make another copy.' But on some modern file systems, copying does not immediately occupy a second copy's worth of space: it first creates a clone that shares the underlying data blocks with the original, and only when you modify one of the copies does the changed portion actually separate. Logically these are two files; physically there may be only one set of data. If the disk fails, both disappear together.
Here is a concrete example. Suppose you have a 4 GB archive file, copy it into another directory on the same disk, and then check the free space—if it barely decreases, that is probably not a reporting error, but rather the copy having taken the clone path. The behavior itself is not wrong; it saves space and is fast, but it makes the claim 'I have two copies' suspect.
You can verify it with the following steps:
- Pick a test file whose size is known and which you can discard at any time, and record the free space before copying. Do not substitute file size for this; look at the disk's remaining capacity.
- Make a copy within the same volume, then record the free space again. If the decrease is far smaller than the file size, the two copies are sharing data blocks.
- Append a small amount of content to the end of the copy and measure again. If this time the consumption approaches the file size, the write triggered a real separation, and the clone became independent data.
- Move the copy to another physical disk or another machine, repeat step 2, and confirm that this time the space really is occupied.
- Write down the conclusion: a same-volume copy can only protect against accidental deletion and accidental modification, not against media failure; only a copy across media counts as an independent backup.
The value of this test is that it turns 'two copies' from a feeling into a checkable fact. It also explains some counterintuitive phenomena: the backup directory keeps growing, yet the disk barely changes; or after deleting one copy, the space is not released as expected—because the other copy is still referencing the same set of data blocks.
Why do clones appear? Because the file system understands 'copy' as making two names point to the same set of data blocks and splitting them only on write, which is both fast and economical. For everyday editing this is an advantage; for backups, it quietly discounts 'redundancy.' There is another easily overlooked point: two partitions on the same physical disk do not count as two media either.
The limitations should also be stated clearly. Compression, deduplication, snapshots, and sparse files all interfere with free-space readings, so measurements should be repeated several times and enough margin left to avoid mistaking background system writes for copy overhead. This method only answers 'whether the data is physically shared'; it does not answer 'whether the data can still be read out.' The latter depends on an actual restore drill. In addition, different file systems and backup tools behave inconsistently; the same command may give different results on two machines, and the conclusion holds only for the environment you tested.
So the acceptance criterion for a backup is not 'there are two files in the directory,' but 'destroy either one, and the other can still be restored.' Do this small space-increment test first, then decide whether you need to add a copy that is truly on separate media.