I'm using green coffee and would like to know how to keep the beans to protect from getting bad (mold). I try to keep them safe and to be all time ready for roasting.
I have a few different varieties of green beans that I have stored in freezer style plastic bags for going on 1+ year now and there is no mold present. I keep them stored at room temperate with as much air as possible removed from the bag. I roast a few batches a year and always get the same results out of my beans regardless of how long they have been stored.
Green coffee storage should be done similarly to roasted. 1-free of contact with oxygen 2-cool 3-away from light
This is according to National Coffee Assoc. http://www.ncausa.org/About-Coffee/How-to-Store-Coffee
I pre-weigh my beans to the exact amount weight that I will need for my roast. (i.e. 100g) and pack it in individual bags. then use a machine that removes all the air and seals the bags. I forget it's name but the are inexpensive and do good jobs.
Unroasted/green coffee stores very, very well. Keep them in containers or sealable plastic bags in a place that is pretty fairly temperature stable, dark and not particularly humid, and you should be fine. I keep mine in the cupboard over the fridge. They can be kept for months with minimal effort going towards storage with no impact on their after-roasted quality.