 After his recovery, Baker assumed command of an Alabama brigade and promoted to brigadier general on March 5, 1864.Later participating in the Atlanta Campaign, he was again wounded at the Battle of Ezra Church.Reassigned to the Department of the Gulf, Baker led his brigade in the defenses of Mobile but rejoined the Army of Tennessee for the Carolinas Campaign in 1865.