It should be automatic after a local/wifi/frontier brain battle, a box massage should pop up and ask if you want to save the record (you can recognize the box since it will have a big "A" button somewhere)
edit:if you still have some doubt on how to upload/see the battle, serebii has a nice...