Merged logic to index backup