pub fn write_previous_generation_pointer( instance_dir: &Path, generation_id: Option<u64>, ) -> Result<()>