I Ain't Mad at Cha All Eyez on Me 2Pac

when it's time for roll you got a brother's back

Rolling is used here like "riding", which is going out looking to get revenge on somebody. Having 'Pac's back means being with him to help him.
when its time to fight(roll) you will fight with the friend you are hanging with.