Update replace backup logic.