the whole 'back pressure' thing is a bit of a fallacy.
The valves control the flow of the exhaust gases, and when your inlet valve is open ( bar the period of overlap ) the exhaust valve is closed.
When the exahust valve is open, you want to get the spent mixture out as quickly as possible...and restricting that with back pressure isn;t a help.
Race exhausts are less restrictive than road pipes and have less back pressure as a result. Noise however, is a factor. Road pipes had to deal with that far more than race pipes.
What is critical, as Sesman said, is length and shape. This controls the harmonic resonances that can help pull spent gases out, and prevent loss of the fresh charge where there is a lot of valve overlap.
In a 2-stroke...this is where expansion chambers get their effectiveness from. Controlling how these shock pulses resonate back is why pipes need to be the right length and shape, ands if you want to ruin an exhaust...cut a chunk out of the middle and weld the ends back. Some one made it the length it was for a reason!
the baffles in the back end are to make the thing less noisy, and to do so without losing too much flow.
I dabbled with home-made exhausts way back, and used to have an excellent book on the subject full of formula's to work out lengths of plain pipes, megaphones etc. Sadly..it's long gone.