Also fix another bug that backup/restore job should add to task map after writing edit log. ISSUE: #522