Veteran shortstop Alex Gonzalez agreed to a one-year deal to return to the Milwaukee Brewers, but as a backup, general manager Doug Melvin said Tuesday.

Gonzalez, who joined Milwaukee prior to the 2012 season as a free agent, played 24 games for the Brewers before he suffered a torn ACL in his right knee on May 5, prompting season-ending surgery. The 35-year-old was batting .259 with four home runs and 15 RBIs at the time of the injury.

Milwaukee acquired promising shortstop Jean Segura from the Los Angeles Angels at the trading deadline as part of a package for star pitcher Zack Greinke. Segura took over as the Brewers' starter at shortstop a week later, and hit .264 over 44 games to end the season.