Russian troops pulled back from most occupied Georgian territory , but in late August 2008 Russia unilaterally recognized the independence of Abkhazia and South Ossetia .