save flags and modified date to file in case of restore or transport backend