Skip to content

escomputers/bitwarden-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

Recently, I learned that many accounts from popular password managers (such as LastPass and 1Password) are being unexpectedly and inexplicably deleted.
This, of course, has a devastating and serious impact and should be avoided at all costs.

So the purpose of this repository is to provide the simplest and fastest solution for automatically backing up your Bitwarden vault on Windows devices.
This is especially aimed at those who are not "tech-savvy," meaning non-technical users outside the IT world.

Description

Once you run below steps, you'll have a scheduled task on your Windows PC, running daily at 2pm, exporting the entire vault to a Desktop folder named bitwarden-exports.
Vault backups are JSON files encrypted with a custom password, so they can be imported into a new/different account.
You can change task's schedule according to your liking, by opening the Task Scheduler and selecting the properties of the task named BackupBWVaultTask.

One time tasks

  1. Install Powershell > 6.0

  2. Install Bitwarden CLI. If you don't know how to do that, open Powershell and run:

# First
.\utils\choco_install.ps1

# Then
choco install bitwarden-cli

Bear in mind, that if you choose the native executable installation method, you also have to set the proper System Path, otherwise the script won't work at all

  1. Get Bitwarden API credentials

  2. Create generic credentials in Windows Credentials Manager:

    • BW_CLIENTID = your BW API client ID
    • BW_CLIENTSECRET = your BW API client secret
    • BW_MASTER_PASSWORD = your BW Vault master password
    • BW_ENC_PASSWORD = your custom encryption passowrd (this will be required once you import the backup file onto the new account)

Usage

On a Powershell window run:

# Change directory to the one containing the script
# example: cd C:\Users\User\Desktop\bitwarden-exporter

# And then
.\export_bw_vault.ps1

About

Automate backup of a Bitwarden vault on Windows hosts

Topics

Resources

License

Stars

Watchers

Forks