Write the sync file on init