Before you can use this Powershell script you'll have to download the official Bitwarden CLI
Optional:
If you choose to use the GPG encryption feature, you must already have an implementation of GPG.
After installing the Bitwarden CLI, right click on Bitwarden-backup.ps1 and select "Edit".
-Change "REPLACE USERNAME HERE" with your Bitwarden username.
-Choose to export your vault in .csv or .json format. (csv is the default)
-Choose to enable GPG encryption or not. (It is not enabled by default)
-If you enable GPG encryption, replace $keyname with the recipient. i.e. Your key's name or email address
-Choose to enable a secure deletion of your file or not. NOTE: If enabled, this process can take over 30 minutes (It is off by default)
- Copy the Bitwarden-backup.ps1 file to the directory where you'd like your backup to be. If you are using Veracrypt, I recommend for you to copy this into your mounted Veracrypt drive.
- Right click on the file and select "Run with PowerShell".
- Your backup will begin and will be in the folder "Backup".
- Backup\
- Attachments\
- [itemname1] - attachmentname1
- [itemname1] - attachmentname2
- [itemname2] - attachmentname1
- Bitwarden_backup.csv.gpg
- Attachments\
-
Enabling $securedlt can cause the backup process to take over 30 minutes. It completely overwrites the empty space in your Backup folder to ensure that your unencrypted vault backup cannot be recovered.
-
Currently, the GPG encryption only supports the encryption of the backed up vault file. It does not encrypt attachments yet.