Long time lurker, first time poster…

I was looking for something that would sync my self hosted Bitwarden server account with my vault.bitwarden.com account, but couldn’t find anything that would do exactly what I wanted, so I wrote the following: https://github.com/martadams89/bitwarden-sync

It doesn’t support Organisations or Multiple Users. It will export your source Bitwarden server records to a json - delete all records from your destination Bitwarden server, and then import the source records using the bw cli and then clean itself up.

I also managed to get it running in a docker container and have a docker-compose.yml file in the repo to reference.

Feel free to provide any feedback, constructive comments or PR’s

Thanks

    • Mezutelni@alien.topB
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      While I believe that ops solution is fine, To be honest, if you already host two vaultwarden instances, it’s probably better to use database replication mechanism. Migrate your SQLite to MySQL, and setup native replication between those two