Newby question, help needed to make copy of DB to local #12312
-
|
I am fairly new to dbeaver and I can basically run SQL statements to manage data, etc. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 32 replies
-
|
In dbeaver, just right click on the database and select Tools > Dump database. This will open the wizard to dump your database to a local .backup file. You can then use this file on your local database with right click on database again > Tools > restore database. Be aware that we currently experiencing some problems when restoring with latest dbeaver version ( 21.0.3.202104181339 ) and windows 10. So you might have to use the command line, an older Version of dbeaver or another tool to restore the database on your local setup for now. |
Beta Was this translation helpful? Give feedback.
-
|
Hi Antony,I'm currently not at my computer, but want to inform you, that as mentioned in my first reply, restoring with current version of dbeaver is not working. Please try an older version (7.3.5).We have reported this in the issues section aswell.As soon as I return home, I will try explaining another way to restore your dump file.
|
Beta Was this translation helpful? Give feedback.
-
|
Okay. So the role "data-user" exists on the remote database, but not your local one.
You can try to add the parameters --no-privileges and --no-owner to pg_restore in order to avoid this.
In pgAdmin this should be available in the options tab of the restore wizard. Just slide Owner and Privilige in "Do not save" to "Yes".
|
Beta Was this translation helpful? Give feedback.
-
|
0100-05915377-12 |
Beta Was this translation helpful? Give feedback.
Very glad to hear that. So you can finally start working on the data, I guess.
Briefly summarized: