Watch CBS News
The Giants have won five straight and prevented Arizona from moving closer to clinching the NL West. The Diamondbacks lead the Giants by seven games with 12 to play.
Beltran connected twice to give him 300 for his career and Tim Lincecum ended a three-start winless stretch in the San Francisco Giants' 3-1 victory over the San Diego Padres on Wednesday that completed a rare sweep in this rivalry.
Buster Posey is still on schedule to catch a bullpen session in Arizona before season's end -- a goal established by the San Francisco training staff after the reigning NL Rookie of the Year went down with a season-ending broken left leg in May.