If for whatever reason you're really poor and can't afford diamonds, just put a relay right next to the quarry, put a pneumatic tube that's two long going to a goodies chest and a filter right next to the initial tube that allows dirt, cobble and gravel in (this being the first valid destination...