https://github.com/escomputers/bitwarden-exporter
Automate backup of a Bitwarden vault on Windows hosts
https://github.com/escomputers/bitwarden-exporter
backup bitwarden scheduled-tasks vault windows
Last synced: 15 days ago
JSON representation
Automate backup of a Bitwarden vault on Windows hosts
- Host: GitHub
- URL: https://github.com/escomputers/bitwarden-exporter
- Owner: escomputers
- License: apache-2.0
- Created: 2025-01-02T21:36:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-05T13:15:36.000Z (about 1 year ago)
- Last Synced: 2025-11-16T15:31:53.851Z (7 months ago)
- Topics: backup, bitwarden, scheduled-tasks, vault, windows
- Language: PowerShell
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### 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](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows)
2. Install [Bitwarden CLI](https://bitwarden.com/help/cli/#download-and-install). If you don't know how to do that, open Powershell and run:
```powershell
# 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
3. [Get Bitwarden API credentials](https://bitwarden.com/help/personal-api-key/#get-your-personal-api-key)
4. [Create generic credentials](https://help.sap.com/docs/SAP_BUSINESS_ONE/68a2e87fb29941b5bf959a184d9c6727/ee306036875c4e4391cdd4ca30561c66.html) 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:
```powershell
# Change directory to the one containing the script
# example: cd C:\Users\User\Desktop\bitwarden-exporter
# And then
.\export_bw_vault.ps1
```