The Diamondbacks signed Hamilton to a minor-league contract Sunday, Jon Heyman of the New York Post reports.

The right-hander will earn $2 million if he makes the big-league team. Hamilton appeared in four games out of Atlanta's bullpen last season and surrendered four runs on six hits and three walks with four strikeouts across 4.2 frames. The 31-year-old was far more effective at Triple-A Gwinnett, where he posted a 2.79 ERA, 1.11 WHIP and 43:15 K:BB across 38.2 innings.