this post was submitted on 25 Nov 2023
2 points (100.0% liked)

Self-Hosted Main

504 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS
 

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

top 13 comments
sorted by: hot top controversial new old
[–] gamb1t9@alien.top 1 points 11 months ago (2 children)

Have you looked into vaultwarden?

[–] Extcee@alien.top 1 points 11 months ago

I’m using that for my self hosted bitwarden instance.

[–] TheLadDothCallMe@alien.top 1 points 11 months ago

Did you even read past the first sentence?

[–] Exzellius2@alien.top 1 points 11 months ago (1 children)

Might I ask why? Just curious.

[–] Extcee@alien.top 1 points 11 months ago (1 children)

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

[–] Exzellius2@alien.top 1 points 11 months ago

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.

[–] Stickus@alien.top 1 points 11 months ago

Best call is to just regularly export your info and import at the other instance

[–] Gaming09@alien.top 1 points 11 months ago (1 children)

Can you do this between 2 self hosted solutions ?

[–] Mezutelni@alien.top 1 points 11 months 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

[–] FlorpCorp@alien.top 1 points 11 months ago

Just keep in mind that syncing is not a backup!

[–] YooperKirks@alien.top 1 points 11 months ago

NOTE: This does not currently sync Orgnisations or multiple users.

Is this planned?

[–] snds117@alien.top 1 points 11 months ago

Would this be possible to sync to services like Google Drive or iCloud Drive?

[–] NoTransportation8854@alien.top 1 points 11 months ago

Been looking for something like this!