save_sync_status function

Save sync_status file