SANTA CLARA -- As an unusual encore to their Aug. 7 exhibition opener at Baltimore, the 49ers will remain in Maryland and practice four days against the Ravens, whose website reported details of the combined sessions Friday night.

Helping hatch the plan, of course, were the Harbaugh brothers. (Note: John Harbaugh coaches the Ravens, younger brother Jim coaches the 49ers, and if you didn't know that, then Super Bowl XLVII never existed.)

"I called Jim about a month ago and asked him if he wanted to do it, and I wasn't really sure if he'd want to," John Harbaugh told BaltimoreRavens.com Friday. "And he was like, 'Absolutely. Let's do it.' "

On Aug. 7, the 49ers and Ravens will kick off their exhibition schedule and meet for the first time since their Super Bowl showdown (34-31 Ravens). They will return to M&T Bank Stadium on Friday afternoon, then travel to the Ravens' facility in Owings Mills for three more days of practice, concluding Monday, Aug. 11.

"We've been trying to figure out the last four weeks or so how we'd set it up, and we decided to do it after the first game," John Harbaugh said. "We felt like the first two weeks we needed to do our install process and it would be better after the game. Nobody has really done one after the game that I'm aware of, so this will be the first time."

While the 49ers are away, preparations will be finalized for their first game at Levi's Stadium, where they will host the Denver Broncos. The date for that opener hasn't been announced; it's slated to occur between Aug. 14-18, and it likely will be on Saturday the 16th or Sunday the 17th since no weeknight games are expected this year at the new stadium.

The 49ers will host the San Diego Chargers on Aug. 24 before visiting the Houston Texans in an Aug. 28 exhibition finale.

The NFL is expected to announce the regular-season schedule Tuesday. While the 49ers aren't expected to have their official Levi's opener until Week 2, their home schedule includes the Seattle Seahawks, Arizona Cardinals, St. Louis Rams, Chicago Bears, Kansas City Chiefs, Philadelphia Eagles, Washington Redskins and Chargers. Their road games will be to the Raiders,Seahawks, Cardinals, Rams, Dallas Cowboys, Denver Broncos, New Orleans Saints and New York Giants.