A Queensland traffic cop allegedly bashed during a random breath test stop on the weekend was almost killed during a vicious roadside attack more than a decade earlier.