Just rebury the exposed roots and water them well. Stake the tree to prevent from falling over again. What works for me when bears pull over apple trees is planting a 4x4 post in ground or several if needed around the tree, and strap the tree to the posts with a wide strap or belt to hold tree upright without cutting into bark. After s few years the posts may be removed if tree seems sturdy in ground again.