dbeaver / dbeaver

Free universal database tool and SQL client
https://dbeaver.io
Apache License 2.0
39.25k stars 3.4k forks source link

Unable to recover my files after updating to 23.0.3 #35114

Open Siddhu1096 opened 1 month ago

Siddhu1096 commented 1 month ago

Description

I had dbeaver 6.0.3 version. I had around 30 scripts in that. Today I updated the dbeaver to 23.0.2 version. When I opened the software, I couldn't see all my scripts. Its just blank. I went inside program files directory and I can see all files got over written. I don't remember saving a backup of my scripts and my organization is not allowing me to install any third party data recovery tools. What to do? Is there any hidden place where I can find my all files? Thanks in advance

DBeaver Version

23.0.3

Operating System

Windows

Database and driver

Postgresql

Steps to reproduce

  1. Add some scripts in DBeaver 6.0.3
  2. Update to 23.0.3
  3. Make the scripts available in the newer version

Additional context

No response

E1izabeth commented 1 month ago

You can try finding your old workspace location https://github.com/dbeaver/dbeaver/wiki/Workspace-location?ysclid=lzjwchcq3h743494035#old-default-workspace-location Most probably, they're there

Siddhu1096 commented 1 month ago

Nope, unfortunately couldn't find C:\Users\YourName.dbeaver4 this path as suggested in the link

E1izabeth commented 1 month ago

Have you installed new version for the current user or for all users? image

Siddhu1096 commented 1 month ago

The new version was installed through companys software download portal. So all of these were set as default. Hence I am guessing its "For me"

E1izabeth commented 1 month ago

OK, thank you As an immediate workaround I can propose to try installing 6.0.0 version to find the script files location https://dbeaver.io/files/6.0.0/

image

Siddhu1096 commented 1 month ago

But will it retrieve my codes? Since its got overwritten

E1izabeth commented 1 month ago

Did you lose only scripts? Does connections come to the new version successfully?

Siddhu1096 commented 1 month ago

Connection does comes successfully. Only the scripts got lost

Siddhu1096 commented 1 month ago

Any thoughts? It had my 2 years of code and I saved only a lil of that in my local directory :(

E1izabeth commented 1 month ago

Could you tell me, if you see path like mine with destination folder called workspace6, when pressing File->Switch workspace->Other...? image image

Siddhu1096 commented 1 month ago

Yes I can see

E1izabeth commented 1 month ago

Then installing old version might help in case if scripts we're not copied to the new workspace during migration https://github.com/dbeaver/dbeaver/issues/35114#issuecomment-2273546438

Also, maybe you would be able to find it by searching for "Script" in explorer

Siddhu1096 commented 1 month ago

Also, maybe you would be able to find it by searching for "Script" in explorer Trying this

Siddhu1096 commented 1 month ago

They are listing so many files, what exactly should I be searching for?

E1izabeth commented 1 month ago

Usually DBeaver stores all your scripts in the project location in "Scripts" folder. Also if you haven't renamed those files, their default name starts from "Script"

Siddhu1096 commented 1 month ago

Negative, Couldnt find the folder

E1izabeth commented 1 month ago

Thank you for checking

Siddhu1096 commented 1 month ago

When I searched for .dbeaver, I got so many files and some of them are having previous dates when it got created. But none had my scripts

Siddhu1096 commented 1 month ago

Any other way @E1izabeth

E1izabeth commented 1 month ago

I have no other ideas, except already mentioned

TB-HunBoka commented 1 month ago

When I searched for .dbeaver, I got so many files and some of them are having previous dates when it got created. But none had my scripts

If you use the windows 10 file explorer, then it might help, to search for this in the search box kind:folder filename:.dbeaver4

or replace the filename with Scripts, if that was not changed since that version.

This will only search for folders having exactly the name you are searching for. I suggest to search on all hard drives you got, as it might have been installed somewhere else than the default workspace.