I dislike how the only way to get TOTP codes off a device is by rooting. I had a half dozen codes that I had to dump from the sqlite db when I first used authenticator.
Thankfully this has been fixed. You can now choose "Transfer accounts" (from the menu in the top right corner) to copy everything to Google Authenticator on a new (or backup) phone.