Bitwarden Sync between two servers
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
Posted Nov 25, 2023, 9:59 AM UTC
Might I ask why? Just curious.
Just if my self hosted goes down I’ve got a copy of my stuff in bitwarden.com or vice versa. I guess I like the idea of having multiple bitwardens in sync, and one of them being a SaaS hosted offering
Allright. No use case for me. When my selfhosted solution goes down, I still have the offline vaults at my devices, that is enough for me.
Nonetheless good work, looks clean.
So, I have Cloudflare in front of my selfhosted BW instance, it block connections from most countries, whenever I am in a network thatis located on these countries, my apps log me out and don't load anymore. I wish they would just stop syncing and let the vaults offline instead.