Default Backup and restore?

Is there a way to back up my current apps and data, flash the device with the new Android L beta, and then restore the backup on the new operating system?