vwxyzjn / portwarden

Create Encrypted Backups of Your Bitwarden Vault with Attachments
MIT License
577 stars 33 forks source link

Write a scheduler to backup bitwarden files periodically. #6

Closed vwxyzjn closed 5 years ago

vwxyzjn commented 5 years ago

Consider this library: https://github.com/RichardKnop/machinery

vwxyzjn commented 5 years ago

The worker needs to achieve the following tasks

[ ] Given the user token, Bitwarden CLI's data.json, and Bitwarden CLI's session key, perform the backup. When done, upload the file to Google Drive, and schedule the next execution date. [ ] Refresh the user tokens when they are about to expire.

The scheduler needs to achieve the following tasks

[ ] Login the user through Google and store his tokens [ ] Login the user to Bitwarden and store his session key and data.json, which lives in BITWARDENCLI_APPDATA_DIR environment variable.