Disclosed is a technique for reducing an amount of data transferred. A
first indicator is maintained for each source block of data to indicate whether
the source block of data has been updated in source storage since the source block
of data was last transferred to target storage. A second indicator is maintained
for each target block of data in target storage to indicate whether the target
block of data has been updated in target storage since the target block of data
was overwritten by a corresponding source block of data. When transferring data
from the source storage to the target storage, each source block of data for which
a first indicator has been set to indicate that the source block of data has been
updated is transferred and each source block of data that corresponds to a target
block of data for which a second indicator has been set to indicate that the target
block of data has been updated is transferred.