You can freeze coffee beans. Helps keeps them fresh a lot longer.
250g coffee doesn't last more than a few days for me anyway, but if you were worried about it you could split down again to 125g, so you've never got more than two or three days for mould to set in.