How to Install
The current version uses backup and restoration for deployment. In future versions, we may switch to incremental migration to facilitate the integration of the solution into your existing systems.
To ensure you can deploy the ticketing solution to your own NocoBase environment quickly and smoothly, we provide two restoration methods. Please choose the one that best suits your user version and technical background.
Before you begin, please ensure:
- You already have a basic NocoBase running environment. For main system installation, please refer to the detailed official installation documentation.
- NocoBase version 2.0.0-beta.5 and above.
- You have downloaded the corresponding files for the ticketing system:
- Backup file: nocobase_tickets_v2_backup_260324.nbdata - For Method 1
- SQL file: nocobase_tickets_v2_sql_260324.zip - For Method 2
Important Notes:
- This solution is built on PostgreSQL 16. Please ensure your environment uses PostgreSQL 16.
- DB_UNDERSCORED cannot be true: Please check your
docker-compose.ymlfile and ensure theDB_UNDERSCOREDenvironment variable is not set totrue, otherwise it will conflict with the solution backup and cause restoration failure.
Method 1: Restore Using Backup Manager (Recommended for Pro/Enterprise Users)
This method uses the built-in "Backup Manager" (Pro/Enterprise) plugin for one-click restoration, which is the simplest operation. However, it has certain requirements for the environment and user version.
Core Features
- Advantages:
- Convenient Operation: Can be completed via the UI, allowing for full restoration of all configurations, including plugins.
- Complete Restoration: Able to restore all system files, including print templates, files uploaded to attachment fields, etc., ensuring full functionality.
- Limitations:
- Pro/Enterprise Only: "Backup Manager" is an enterprise-level plugin, available only to Pro/Enterprise users.
- Strict Environment Requirements: Requires your database environment (version, case sensitivity, etc.) to be highly compatible with the environment where the backup was created.
- Plugin Dependencies: If the solution includes commercial plugins not present in your local environment, the restoration will fail.
Steps
Step 1: [Strongly Recommended] Start the application using the full image
To avoid restoration failures due to missing database clients, we strongly recommend using the full version of the Docker image. It includes all necessary supporting programs, eliminating the need for additional configuration.
Example command to pull the image:
Then use this image to start your NocoBase service.
Note: If you do not use the
fullimage, you may need to manually install thepg_dumpdatabase client inside the container, which is cumbersome and unstable.
Step 2: Enable the "Backup Manager" plugin
- Log in to your NocoBase system.
- Go to
Plugin Management. - Find and enable the
Backup Managerplugin.
Step 3: Restore from local backup file
- After enabling the plugin, refresh the page.
- Go to
System Management->Backup Managerin the left menu. - Click the
Restore from local backupbutton in the upper right corner. - Drag the downloaded backup file to the upload area.
- Click
Submitand wait for the system to complete the restoration. This process may take from several seconds to a few minutes.
Notes
- Database Compatibility: This is the most critical point for this method. Your PostgreSQL database version, character set, and case sensitivity settings must match the backup source file. In particular, the
schemaname must be consistent. - Commercial Plugin Matching: Please ensure you have and have enabled all commercial plugins required by the solution, otherwise the restoration will be interrupted.
Method 2: Direct SQL File Import (Universal, More Suitable for Community Edition)
This method restores data by directly operating the database, bypassing the "Backup Manager" plugin, and therefore has no Pro/Enterprise plugin restrictions.
Core Features
- Advantages:
- No Version Restrictions: Applicable to all NocoBase users, including the Community Edition.
- High Compatibility: Does not depend on the application's
dumptool; it works as long as you can connect to the database. - High Fault Tolerance: If the solution contains commercial plugins you do not have, the related features will not be enabled, but this will not affect other functions, and the application can start successfully.
- Limitations:
- Requires Database Operation Skills: Users need basic database operation skills, such as how to execute a
.sqlfile. - System Files Lost: This method will lose all system files, including print templates, files uploaded to attachment fields, etc.
- Requires Database Operation Skills: Users need basic database operation skills, such as how to execute a
Steps
Step 1: Prepare a clean database
Prepare a brand new, empty database for the data you are about to import.
Step 2: Import the .sql file into the database
Get the downloaded database file (usually in .sql format) and import its contents into the database prepared in the previous step. There are several ways to do this, depending on your environment:
-
Option A: Via server command line (Docker example) If you use Docker to install NocoBase and the database, you can upload the
.sqlfile to the server and use thedocker execcommand to perform the import. Assuming your PostgreSQL container is namedmy-nocobase-dband the file is namedticket_system.sql: -
Option B: Via remote database client If your database port is exposed, you can use any graphical database client (such as DBeaver, Navicat, pgAdmin, etc.) to connect to the database, open a new query window, paste the entire contents of the
.sqlfile, and execute it.
Step 3: Connect to the database and start the application
Configure your NocoBase startup parameters (such as environment variables DB_HOST, DB_PORT, DB_DATABASE, DB_USER, DB_PASSWORD, etc.) to point to the database where you just imported the data. Then, start the NocoBase service normally.
Notes
- Database Permissions: This method requires an account and password with permissions to directly operate the database.
- Plugin Status: After a successful import, although the commercial plugin data exists in the system, if you have not installed and enabled the corresponding plugins locally, the related features will not be displayed or usable, but this will not cause the application to crash.
Summary and Comparison
We hope this tutorial helps you successfully deploy the ticketing system. If you encounter any issues during the process, please feel free to contact us!
Last updated: 2026-03-24

