Backup Google Authenticator DB

Introduction

If you use Google Authenticator, you'd like to know how to backup the DB.

Multiple reasons :

  • You must format/reinstall your phone.

  • Phone crash or has been lost.

  • Always a good idea to have a backup of important things.

Step-by-step guide

Click here to expand

The following method will only work rooted Android devices.

Linux

adb pull /data/data/com.google.android.apps.authenticator2/databases/databases /AFolderOnPC

Windows

adb pull /data/data/com.google.android.apps.authenticator2/databases/databases C:\AFolderOnPC

Note that the folder on the PC has to already exist.

This will copy the authenticator database files with the main keys, from which the One Time Passwords are generated, to the PC. The file can then be restored to the same location, on Android devices, or read with an sqlite database viewer to extract the keys.

Alternatives

You can also user alternative app as the following ones:

Those are recommendations. Responsabilities cannot be linked to me if you use one of those and encounter any issue or security breach.

Last updated