We built a short stone masonry wall with a proper drainage pipe behind it so it will last for many years.
This backyard sloped so much that a patio was out of the question, until we designed a high stacked stone wall to provide a level surface behind the home, so a patio became a reality!