Settings are automatically backed up to your Google account by default. This includes WiFi passwords, page history and practically every device setting you might want saved. However, you cannot backup all device data, but you will have everything you need. You can select which account is backing up data by heading over to Settings – Backup & Sync. Be sure to select the correct Google account, which is key to restoring all your old settings on a new account.