vwxyzjn / portwarden

Create Encrypted Backups of Your Bitwarden Vault with Attachments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Have to log in again after export

broizter opened this issue · comments

Having some issues trying to automate this tool without using the webui. I wanna be able to export with the CLI tool daily from a cron script. The first snag I have is that it logs me out completely from BitWarden CLI after every export. The second is that there is no way to pass the --session argument from BitWarden CLI to Portwarden to utilize an already unlocked vault. This snag I can work around though so my biggest issue is the logout problem.

Adding an argument that will prevent the logout would be fantastic! Hope it's not too much trouble.

This should be fixed by PR #18, could you download the suitable binary from the following list and give it a try?

portwarden_darwin_amd64.zip
portwarden_linux_amd64.zip
portwarden_windows_amd64.zip

the usage should be something like

portwarden --passphrase 1234 --filename backup.portwarden --no-logout encrypt

If that works for you, would you mind checking out the branch API-17 and updating the README.MD on how to use this argument? Thanks.

It works perfectly, thank you very much! I'll have a look at updating the README.MD in a bit.
The only problem is that I never figured out how to do automated backups through cron or systemd. Printf didn't like to grab my password from password-store and the encryption failed if I entered my password directly in the script. My final solution was to create an LXC container and executing the script through that so I don't think I can write a good guide on how to automate portwarden.