Disk defragmentation is the reorganization of file storage on a hard disk partition. Disk defragmentation is the process of eliminating file fragmentation; file fragmentation causes files to become “scattered” after disk operations. File fragmentation significantly reduces the performance of PCs and servers, especially during intensive input/output operations. In contrast, file defragmentation can improve performance because the read head does not have to move across the disk as often to load the next part of a file. This applies to traditional platter hard drives (HDDs).
With newer SSD drives, fragmentation is not a problem. There is no read head jumping from place to place across platters, and it makes no difference in which cell the given information is located. Therefore, defragmentation makes no sense for SSD drives. On the contrary, defragmentation is not beneficial for SSD drives because the number of writes to individual disk cells is limited. The more often data in the cells is overwritten, the shorter the lifespan of the SSD drive will be.
How are disk defragmentation and backup related?
For data backup (using the file-based method), defragmentation has no effect. However, if backup is performed using the disk image method, defragmentation fundamentally affects the size and therefore also the speed of creating subsequent incremental and differential backups. This is because occupied data blocks and information about where (on which disk blocks) the data is located are stored in the backup. This then makes it possible to restore the entire disk or disk partition. The first backup created is called a full backup. Subsequent backups linked to this full backup are called incremental backups or differential backups. You can read about the difference between these backup types here, for example. The problem occurs when defragmentation is performed after a backup has been created. The subsequent backup (whether incremental or differential) will then contain 100% of the changes, because all blocks on the disk are moved during defragmentation. The backup is then as large as a full backup. Without defragmentation, the changes might account for only 10% or 15%, for example.

