Barry Bonds arrives at federal court for a sentencing hearing on Dec. 16, 2011 in San Francisco, California.

*Barry Bonds will remain free while he appeals his conviction for giving misleading testimony before a grand jury, reports ESPN.

Bonds was sentenced in federal court Friday to 30 days of house arrest, two years of probation and 250 hours of community service — then the judge delayed the sentence pending an appeal likely to take a year or more.

U.S. District Judge Susan Illston also put on hold a $4,000 fine against Bonds for his obstruction of justice conviction arising from a grand jury appearance eight years ago.

Prosecutors wanted the home run king to spend 15 months in prison. Assistant U.S. Attorney Matthew Parrella argued that home confinement wasn’t punishment enough, “for a man with a 15,000 square foot house with all the advantages.” Bonds lives on an estate in Beverly Hills.

Well-wishers hugged the 47-year-old Bonds in the hallway outside the courtroom after the hearing was over. He declined to speak in court.

A jury convicted Bonds in April of purposely answering questions about steroids with rambling non sequiturs in an attempt to mislead a grand jury investigating sports doping in December 2003. Bonds’ trial jury failed to reach a verdict on three other charges accusing Bonds of lying when he denied taking performance-enhancing drugs and when he denied receiving injections from someone other than his doctor.

Prosecutors in September dropped those deadlocked charges, giving up on another trial.

Bonds, Major League Baseball’s career leader with 762 home runs, now has 14 days to file his intention to appeal his conviction.

Bonds was one of two former baseball superstars to stand trial in doping-related cases this year. The trial of pitcher Roger Clemens was halted after just two days in July because prosecutors used inadmissible evidence. U.S. District Judge Reggie Walton has set a new trial for April 17.