Use historyId when constructing path for backup GitOrigin-RevId: 954576b509d5e78511b5008fb7d74e0bc5fa45fd