It's EASY! Don't forget the garlic cloves. I would say that if it's air tight it would last a while.

How to make Persian feta
You can easily make quality & tasty Persian feta at home, and not pay the exorbitant
price you would pay in the deli. All you need to do is lightly warm some good quality
olive oil on low heat with a bunch of oregano or thyme and a few garlic cloves till the
garlic is soft and the herbs are wilted. To make it easier you can tie the herbs in a
bunch with some string. Then let the oil cool slightly till just warm and then pour over
roughly cubed goat’s cheese, otherwise known as chevre. Allow this to marinate at
least a day, and you will have a really yummy Persian feta that will last for weeks in
the fridge as long as the oil is covering the cheese.