Disclosed is a technique for applying changes back to an original copy
of data to reduce an amount of data transferred. A first indicator is maintained
for each block of data in a first storage to indicate whether the block of data
has been updated in the first storage since the block of data was last transferred
to a second storage. A second indicator is maintained for each block of data in
the second storage to indicate whether the block of data has been updated in the
second storage since the block of data in the second storage was overwritten by
a corresponding block of data in the first storage. Upon receiving a reverse restore
operation, each block of data in the second storage for which a second indicator
has been set to indicate that the block of data has been updated is transferred
to the first storage and each block of data in the second storage that corresponds
to a block of data in the first storage for which a first indicator has been set
to indicate that the block of data in the first storage has been updated is transferred
to the first storage.