About backups in iCloud and iTunes
You can copy and save the data on your iPhone, iPad, or iPod touch by backing up your device in iCloud or iTunes. If you replace your device, you can use that backup to transfer data like your contacts and photos to your new device.