Android does a great job of keeping all your contacts in sync with your Google account, so theoretically you should never lose all your contacts. That said, things happen, and keeping a backup is never a bad idea. Here’s how to export all your contacts on Android.
Source: How-To Geek