The current version is deployed via backup and restore. In future versions, we may switch to incremental migration to make it easier to integrate the solution into your existing systems.
To help you deploy the CRM 2.0 solution smoothly to your own NocoBase environment, we provide two restoration methods. Please choose the one that best suits your edition and technical background.
Before you begin, please ensure:
Important Notes:
docker-compose.yml file and ensure the DB_UNDERSCORED environment variable is not set to true, otherwise it will conflict with the solution backup and cause restoration failure.This method uses NocoBase's built-in "Backup Manager" (Pro/Enterprise Edition) plugin for one-click restoration. It is the simplest operation but has certain requirements for the environment and edition.
Step 1: [Strongly Recommended] Start the application using the full image
To avoid restoration failures caused by a missing database client, we strongly recommend using the full version of the Docker image. It includes all necessary supporting programs, so no additional configuration is required.
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 a tedious and unstable process.
Step 2: Enable the "Backup Manager" plugin
Plugin Manager.Backup Manager plugin.Step 3: Restore from local backup file
System Management -> Backup Manager in the left menu.Restore from local backup button in the upper right corner.Submit and wait for the system to complete the restoration. This process may take anywhere from a few dozen seconds to several minutes.schema name must be consistent.This method restores data by directly operating on the database, bypassing the "Backup Manager" plugin, and therefore has no Pro/Enterprise Edition restrictions.
dump tool within the application; as long as you can connect to the database, you can operate..sql file.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
Obtain the downloaded database file (usually in .sql format) and import its content into the database you prepared in the previous step. There are several ways to execute this, depending on your environment:
Option A: Via server command line (using Docker as an example)
If you use Docker to install NocoBase and the database, you can upload the .sql file to the server and then use the docker exec command to perform the import. Assuming your PostgreSQL container is named my-nocobase-db and the filename is nocobase_crm_v2_sql_260223.sql:
Option B: Via a remote database client (Navicat, etc.) If your database port is exposed, you can use any graphical database client (such as Navicat, DBeaver, pgAdmin, etc.) to connect to the database, then:
.sql file and execute.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.
| Feature | Method 1: Backup Manager | Method 2: Direct SQL Import |
|---|---|---|
| Applicable Users | Pro/Enterprise Edition users | All users (including Community Edition) |
| Ease of Use | ⭐⭐⭐⭐⭐ (Very simple, UI operation) | ⭐⭐⭐ (Requires basic database knowledge) |
| Environment Requirements | Strict, database and system versions must be highly compatible | General, requires database compatibility |
| Plugin Dependency | Strong dependency, plugins are validated during restoration; missing any plugin will cause restoration failure. | Features strongly depend on plugins. Data can be imported independently, and the system will have basic functionality. However, if corresponding plugins are missing, related features will be completely unusable. |
| System Files | Fully preserved (print templates, uploaded files, etc.) | Will be lost (print templates, uploaded files, etc.) |
| Recommended Scenarios | Enterprise users with controlled, consistent environments needing full functionality | Missing some plugins, seeking high compatibility and flexibility, non-Pro/Enterprise users, or those who can accept the loss of file features |
We hope this tutorial helps you successfully deploy the CRM 2.0 system. If you encounter any problems during the process, please feel free to contact us!