MDL-46455 logstore_legacy: added restore support