It has currently no option for backing up chats from local device. So it becomes quite troublesome when you are formatting your device and reinstalling Whatsapp. It wipes out all previous chats unless stored in Google drive.