Could you please help me analyze the structure of this sentence?

Solution 1:

It means "only". This is the adverb "but" (OALD).

(OALD) There were a lot of famous people there: Lady Gaga and Hugh Jackman, to name but two.