Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export Dbeaver connections to an external file #633

Closed
sachin-walia opened this issue Jul 26, 2016 · 5 comments
Closed

Export Dbeaver connections to an external file #633

sachin-walia opened this issue Jul 26, 2016 · 5 comments

Comments

@sachin-walia
Copy link

Is it possible to export all the connections from Dbeaver to an external file and import that in a different instance of dbeaver? If not then it may be a nice feature for people working with different machines as well as sharing connection info among teams.

@serge-rider
Copy link
Member

DBeaver connections are stored in file .dbeaver-data-sources.xml (in DBeaver workspace, which is in %{HOME}/.dbeaver by default). You can copy it as is or just a part of it (it is XML so it won't be hard).

@nagromc
Copy link

nagromc commented Nov 8, 2017

Please note that, from now on, .dbeaver-data-sources.xml seems to be located in %{HOME/.dbeaver4/General/.dbeaver-data-sources.xml.

From DBeaver v4 I guess.

@jozzhart
Copy link

Recent update

https://github.com/dbeaver/dbeaver/wiki/Admin-Manage-Connections

@tcarrio
Copy link

tcarrio commented Apr 23, 2020

For users who are getting here looking for where this is stored on a Linux distribution, I found the following while poking around.

First off, I had no folder in my home directory for DBeaver. $HOME/.dbeaver did not exist. So if it exists for you, that's great news, it's probably right there.

I did end up finding a folder at $HOME/.local/share/DBeaverData. This is the default XDG_DATA_HOME folder, but I didn't find it documented in the Wiki above. The structure otherwise seems similar, but nested under a workspace folder.

In the end, I found the config in $HOME/.local/share/DBeaverData/workspace6/General/.dbeaver/data-sources.json. Hope this helps anyone else trying to find their config.

Note: This was with version 6.3.5.202002221622 of DBeaver.

@kovacshuni
Copy link

On Mac it's at /Users/yourusername/Library/DBeaverData/workspace6/General/.dbeaver/data-sources.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants