Where does the phrase “to get one’s back up” come from and What does it mean?

Cats have been getting their back up, when angry, as long as there has been a feline family.

But, from the written evidence, it has been only some two centuries that human beings have figuratively been arching their backs when aroused into anger.