Skip to content

DBeaver 26.2.2 Setup Tutorial: Connect PostgreSQL and Back Up Databases

Install DBeaver Community 26.2.2, configure a PostgreSQL connection, set up native client tools, and create and restore database backups with a practical example.

DBeaver 26.2.2 Setup Tutorial: Connect PostgreSQL and Back Up Databases

On this page

Managing a PostgreSQL database becomes difficult when connection details, backup utilities, and restore procedures are configured separately. DBeaver Community brings database browsing, SQL editing, and native backup operations into one desktop application. DBeaver 26.2.2, released on October 4, 2026, is a free, open-source database management application that supports PostgreSQL and several other database systems. This tutorial takes you from a fresh installation to a working PostgreSQL connection, then explains how to create a database backup and restore it safely.

The example uses a PostgreSQL database named store_db running on the same computer as DBeaver. You can adapt the connection settings for a remote server or a cloud-hosted PostgreSQL instance. The important distinction is that DBeaver manages the connection and provides the interface, while PostgreSQL remains responsible for storing and processing database operations.

DBeaver: Community Edition 26.2.2.
Operating system: Windows 10 or later, macOS 11 or later, or a supported modern Linux distribution.
Java: The standard installer includes the required OpenJDK runtime.
Database: An existing PostgreSQL server with a database, username, and password.
Backup utilities: PostgreSQL command-line client tools, including pg_dump and pg_restore.
Storage: Sufficient free disk space for the database backup.

Install DBeaver Community on your computer

Download the Community Edition from the official DBeaver download page. Select the installer that matches your operating system and processor architecture. Community Edition is free and open source, so you do not need a commercial license for the database connection and backup workflow covered here. The standard Windows and macOS installers include the required Java runtime, avoiding the need to configure a separate Java installation.

On Windows, download the executable installer and run it. Follow the installation instructions and launch DBeaver when setup finishes. On macOS, open the downloaded disk image and move the application into the Applications folder. Linux users can select an appropriate Debian, RPM, or archive distribution depending on their system. The official installation instructions cover these distribution methods and their requirements.

Install DBeaver Community on your computer

Create your first PostgreSQL connection

After launching DBeaver, create a database connection using its connection wizard. The wizard stores the information required to communicate with a database, including the database driver, server address, port, database name, and authentication credentials. A driver is a software component that translates application requests into a format the database can understand. DBeaver uses a Java Database Connectivity (JDBC) driver for ordinary database operations, so the PostgreSQL server does not need to be installed on the same computer.

Follow these steps:

  1. Open the new database connection wizard from the Connections toolbar or press Ctrl+Shift+N on Windows and Linux. The result is a list of available database drivers.
  2. Search for PostgreSQL and select the PostgreSQL driver. Choose the standard PostgreSQL driver for modern PostgreSQL servers rather than the legacy driver intended for versions below 8.x. The result is a connection configuration for PostgreSQL.
  3. Enter the database connection details in the main settings.
  4. Enter the database username and password provided by your PostgreSQL administrator.
  5. Select Test Connection to check whether the server is reachable and the credentials are accepted.
  6. Save the connection after the test succeeds. The result is a reusable PostgreSQL connection in the Connections view.

For a local development installation, the main connection values can look like this:

Host: localhost
Port: 5432
Database: store_db
Username: postgres
Password: your_database_password

Here, localhost means the PostgreSQL server is running on the same computer as DBeaver. Port 5432 is PostgreSQL's default listening port, while store_db identifies the specific database to open. The username is an existing PostgreSQL account, not a DBeaver account. Replace the example password with the actual database credential rather than copying the example literally.

If you are connecting to a remote database, replace localhost with its actual hostname or IP address. The server must accept connections from your computer, and its firewall, authentication rules, and network configuration must permit the connection. The official connection creation guide explains the available connection settings.

Create your first PostgreSQL connection

Configure PostgreSQL client tools for backups

A successful database connection does not automatically mean backup and restore operations are ready. DBeaver uses JDBC for normal activities such as browsing tables, editing records, and running SQL queries. However, native PostgreSQL backup and restore operations use command-line utilities such as pg_dump and pg_restore. These tools are separate from the JDBC driver and must be available to DBeaver through a configured local client.

If PostgreSQL is already installed on your Windows computer, its installation may include the required client utilities. A typical installation stores them inside a PostgreSQL version directory under C:\Program Files\PostgreSQL, within its bin folder. The exact location depends on the installed PostgreSQL version and installation choices.

Configure the client using the following process:

  1. Open your PostgreSQL connection settings in DBeaver.
  2. Locate the Local Client setting under the advanced connection settings.
  3. Check whether DBeaver has automatically detected an installed PostgreSQL client.
  4. If it has not, use the client selection option to browse for the PostgreSQL installation directory.
  5. Select the installation home containing the bin directory rather than selecting an individual executable file or the bin directory itself.
  6. Save the configuration and return to the database connection.

For example, if your PostgreSQL client is installed under C:\Program Files\PostgreSQL\18, select that installation directory as the client home. DBeaver can then locate the utilities inside its bin folder. The exact version in this example is illustrative; use the directory corresponding to your actual installation. The official local client configuration guide explains how to locate and register these tools on Windows, macOS, and Linux.

Configure PostgreSQL client tools for backups

Create a PostgreSQL database backup

Once the connection and local client are configured, you can create a backup of your database. A database backup is a saved representation of database structures and data that can be used for recovery or migration. DBeaver provides a native backup workflow that uses PostgreSQL's own tools instead of exporting every table through its standard data-transfer mechanism. This distinction matters when working with larger databases or when you need a backup format that can later be restored using PostgreSQL utilities.

To create your first backup, follow these steps:

  1. Open the PostgreSQL connection and locate the database you want to protect.
  2. Right-click the target database and select Tools, followed by Backup.
  3. Select the schemas or database objects that should be included in the backup.
  4. Continue to the backup settings and choose the Custom format.
  5. Specify an output directory and a meaningful backup filename, such as store_db_2026_11_23.backup.
  6. Review the selected objects and backup settings, then start the operation.

The Custom format creates a PostgreSQL archive that supports selective restoration and other restore options. Unlike a plain SQL dump, it is not intended to be opened and executed directly as a normal SQL script. It is processed through PostgreSQL's restore utilities. The filename extension is simply a naming convention; the selected backup format determines how the archive is actually stored.

After the operation finishes, check the completion notification and confirm that the backup file exists at the destination you selected. Keep backups outside the database's active data directory and preferably on a separate storage device or protected remote location. A backup stored on the same disk as the database can be lost if that disk fails.

Restore a database from the backup archive

A backup becomes useful only when it can be restored. For a safe first exercise, create a separate empty PostgreSQL database rather than experimenting with an important existing database. This prevents an accidental restore operation from overwriting application data. The target database must exist and the database user must have sufficient privileges to create the required objects.

To restore the Custom archive, open the target database in DBeaver, right-click it, and choose Tools followed by Restore. Select Custom as the input format and browse to the archive created in the previous step. Review the remaining restore settings before starting the operation. In particular, leave the option to clean or drop existing database objects disabled when restoring into a database that already contains information you need to preserve.

The Create database option controls whether the restore operation creates a database from the backup rather than using an existing target. The Discard objects owner option can be useful when restoring a backup under a different database account, because it excludes original ownership information. These settings change the resulting database and should not be enabled without understanding their effect. Start the restore only after confirming the target database, input file, and available options.

Worked example: Backing up a small online store database

Assume your development environment contains a PostgreSQL database named store_db with customer, product, and order tables.

  • Connection: localhost:5432
  • Database: store_db
  • Backup format: Custom
  • Backup filename: store_db_2026_11_23.backup
  • Restore target: store_db_restore

Create the archive from store_db, then create an empty database named store_db_restore. Select the archive in DBeaver's restore operation and use the empty database as the destination. After completion, inspect the restored schemas and tables and compare important record counts with the original database. This provides a practical check that the archive contains the expected data and that the restoration process has completed successfully.

Fix the settings that commonly cause problems

A connection failure and a backup failure are different problems, so identify which operation is failing before changing settings. If Test Connection fails, check the server hostname, port, database name, username, password, firewall rules, and PostgreSQL authentication configuration. If ordinary SQL queries work but backup operations fail, check the Local Client configuration first. DBeaver's JDBC connection does not replace the native PostgreSQL command-line utilities.

Another common problem is a mismatch between PostgreSQL client and server versions. PostgreSQL tools have version compatibility requirements, so use an appropriate client version for the server rather than assuming every installed utility will work. Also check that the database user has permission to read the selected objects during backup and sufficient privileges to create or modify objects during restoration. Finally, verify that the backup destination has enough free disk space.

Know what DBeaver cannot replace

DBeaver Community is a database management application, not a PostgreSQL server or a complete automated disaster-recovery system. Its native backup and restore features depend on the database's command-line tools, and a successful backup notification alone does not prove that a recovery will work. It also does not automatically provide a complete off-site backup strategy, scheduled retention policy, or independent disaster-recovery plan simply because a database connection has been saved.

For production databases, configure scheduled backups separately, protect backup files with appropriate access controls, and periodically perform recovery exercises in an isolated environment. Do not use destructive restore settings on a live database without a verified recovery plan. Once the first backup and restore have succeeded, document the client version, backup format, storage location, and restoration procedure so another administrator can repeat the process without relying on your workstation configuration.

Share this post

M. Rizwan Mirza profile photo

Written by

M Rizwan Mirza

I’m M Rizwan Mirza, a Full Stack Developer with over 12 years of experience in web development and software solutions. I work with modern web technologies and enjoy building practical, reliable, and user-friendly digital solutions. I’m also part of TechWare House, where I work on web development projects and technology solutions. One of my favorite websites is TheQuranic.com. Through WizTechnoz, I share my knowledge, experience, tutorials, and useful insights about technology.

113 posts published

All posts by this author

Copy this post

0 Comments

No comments yet. Be the first to share your thoughts.

Join the conversation

Log in or create a free account to leave a comment. You can edit or delete your own comments any time.