MrDoc Deployment Guide
Quick Start
Docker Deployment
Docker Image Deployment
Docker Compose Deployment
Configure Guide
Configuration File Guide
Customizing uWSGI Configuration
Data Security
Site Data Backup / Site Migration
Data Export and Import
Open Source Edition → Professional Edition Data Migration
Troubleshooting
Server Requirements & Deployment Recommendations
Published with MrDoc Pro
-
+
home
Open Source Edition → Professional Edition Data Migration
## Preliminary Steps ==1. Complete **database backup** and **uploaded files backup (media directory)** for the Open Source Edition. ⚠️ **Backup is extremely important!**== ==2. Complete installation and database migration (`migrate`) for the Professional Edition.== ## 1. Open Source Edition Operations > d The following operations should be performed in the MrDoc project root directory (where `manage.py` is located)! > d If you are using a Python virtual environment, activate it first, then enter the root directory of the MrDoc Open Source Edition. > d If using Docker deployment, enter the Docker container to operate, or prepend commands with `docker exec -it {container_name}`. 1. Export user table data ```bash python manage.py dumpdata auth.user > db_user.json ``` 2. Export `app_admin` application data ```bash python manage.py dumpdata app_admin > db_admin.json ``` 3. Export `app_doc` application data ```bash python manage.py dumpdata app_doc > db_doc.json ``` 4. Open the `db_user.json` file, search for `auth.user` and replace it with `app_admin.user`. --- Batch script for the above 4 steps: ```bash python manage.py dumpdata auth.user > db_user.json && python manage.py dumpdata app_admin > db_admin.json && python manage.py dumpdata app_doc > db_doc.json && sed -i "s/auth.user/app_admin.user/g" db_user.json && echo "Data export completed" ``` Copy the above commands and run them in the command line terminal within the MrDoc Open Source Edition project root directory. 5. Copy the `db_user.json`, `db_admin.json`, `db_doc.json` files and the `media` folder from the Open Source Edition project root directory to the Professional Edition project root directory. ## 2. Professional Edition Operations > d The following operations should be performed in the MrDoc project root directory (where `manage.py` is located)! > d If you are using a Python virtual environment (e.g., Baota Python Project Manager version 1.9), activate it first, then enter the MrDoc root directory. > d If using Docker deployment, enter the Docker container to operate, or prepend commands with `docker exec -it {container_name}`. 1. Import user table ```bash python manage.py loaddata db_user.json ``` 2. Import `app_admin` application data ```bash python manage.py loaddata db_admin.json ``` 3. Import `app_doc` application data ```bash python manage.py loaddata db_doc.json ``` --- Batch script for the above 3 steps: ```bash python manage.py loaddata db_user.json && python manage.py loaddata db_admin.json && python manage.py loaddata db_doc.json && echo "Data import completed" ``` Copy the above commands and run them in the command line terminal within the MrDoc Professional Edition project root directory.
mrdoc
Nov. 18, 2025, 11:49 a.m.
Forward
Favorites
Last
Next
Scan the QR Code
Copy link
Scan the QR code to share.
Copy link
Markdown file
Word document
PDF document
PDF document (print)
share
link
type
password
Update password
Validity period