I grew up with ridgebacks and have had plenty of experience with them as an adult. For what you want a dog for, I would strongly advise against using a ridgeback for this purpose. If brought up right, ridgebacks are giant lap dogs. They are tender, sensitive, confident and incredibly intelligent. They are tremendously loyal which sometimes comes across as aloofness towards strangers. However, strangers that have been welcomed into the pack will eventually be accepted by the dog. They need a confident trainer in their puppy years that will keep things interesting, use positive reinforcement to emphasise a lesson and NEVER use negative reinforcement. As I said before, these dogs are tender and sensitive with their pack. They need a strong leader to look up to within the pack otherwise they will happily assume that role. As these dogs are so smart, if they don't see the point in what you are trying to get them to do they will lose interest in a hurry. Ridgebacks will not chase a ball that you throw for them because whats the point of bringing this thing back to you if you just throw it away again immediately? They should be integrated into family life and they will easily become a core family member that is loyal, at times a goofy couch potato, at times a tireless running partner and always a joy to behold.
Brought up wrong, you will be confronted with the nasty side of the ridgeback. Brought up as a 'guard dog', you will be toying dangerously with the power and instincts of a dog bred to hunt lions. When their aggression does surface, most often due to incorrect upbringing and occasionally due to a real threat to the pack, the dog will not be stopped until either it or the aggressor is dead. If you have not established yourself as the gentle, loved and respected leader of the pack and have made the mistake of attempting to cultivate the 'guard dog' instinct in the animal, you may find yourself on the wrong end of a powerhouse of terror. Besides this obvious danger, mistreated ridgebacks are destructive, very difficult to handle and will have no respect for their handler.
It is my opinion that ridgebacks are the ultimate canine companion. They seamlessly become part of the family as a beautifully packaged parcel of love. If there is a real threat to their pack, they will tear apart whatever the threat is. They are not, however, dogs that should be used to intimidate as they do not bark, growl or show aggression in the usual ways. They calmly and quietly observe the situation from a distance and will only act when they perceive a real threat to the pack, at which point the results will be devastating. Treat these dogs with confidence, tenderness and love and you will have a shadow for life.
I see you are in Morocco. Have you looked into what canines the locals use to safeguard their livestock? This might be a better option for you. The locals will most likely use a local variant of the Africanis, a canine that has evolved alongside humans and their livestock for centuries.