With an un-rooted device, you can backup some things, like apps, and maybe data, to the SD card but that's about it.

Once rooted however, you can flash a custom recovery image which should contain a program, usually nandroid, used to create full system images of your device. OS, apps, data, the whole works. This way if anything ever goes wrong, you have a full backup that can be restored.