Ты был мне как брат.

Portuguese Translation

Você era como um irmão para mim.

Is “был” necessaire at this sentence?

If it were left out, the sentence would describe the present (“You are like a brother to me”/“Você é como um irmão para mim”) rather than the past (“You were like a brother to me”/“Você era como um irmão para mim”).