MrDoc Deployment Guide
Simple Run
Deployment guide
Deploy MrDoc with Docker (recommended)
Docker image deployment
Deploy with Docker Compose
Manage Docker containers
Deploy MrDoc on Linux
Deploy MrDoc with Nginx + uWSGI
One-click deployment script (no longer maintained)
Baota Panel "Python Project Manager 1.9" deployment
Official Docker image deployment
Deploy MrDoc on Windows
Deploy with Waitress
Windows deployment panel
NAS deployment
Deploying on Zspace NAS
Feiniu FnOS deployment
Update upgrade notes - Open Source Edition
Update upgrade notes - Pro edition
System dependency library description
Migrating native deployment to Docker deployment
Configuration guide
Custom database configuration
Configure PDF generation for collections
Full-text search configuration
Using MySQL database with Docker
Configuring MySQL database to support emoji
Host static file resources with Nginx
Enable SSL with Nginx / Set up HTTPS
Configure reverse proxy/bind domain with Nginx
Nginx handling local video playback
Custom uWSGI configuration
Configuration file description
Data security
Site data backup/site migration
Professional data export and import
Open source data export and import
Data migration from open source to professional edition
Frequently asked questions
What to do if SQLite3 version error occurs?
What if the admin forgets the password?
Error: SyntaxError: invalid syntax
MySQLdb._exceptions.OperationalError: (1366, "Incorrect string value:")
Baota Panel "Python Project Manager" virtual environment usage issues.
View logs/log storage location
403 errors on POST/PUT requests for login, publish, upload, and edit under Nginx/HTTPS
What if I can't access the backend after switching the default login method?
Troubleshooting
Tip sponsorship records
MrDoc deployment server configuration recommendations
Powered by MrDoc Pro
-
+
home
Site data backup/site migration
# Site Data Backup / Site Migration ## 1. Site Data Backup To prevent accidental data loss or to prepare for data migration, it is recommended to perform regular site data backups. The data of MrDoc mainly includes: - Database (table structure and site content) - User-uploaded files (images, attachments) >i The command-line operations below assume the MrDoc code directory is `/opt/MrDoc/` ### 1.1 Database Backup #### 1.1.1 SQLite (Default Database) If you are using the default SQLite database, you only need to back up the `/config/db.sqlite` file within the project directory: ```bash cp /opt/MrDoc/config/db.sqlite /opt/MrDoc/config/db.sqlite.bak ``` #### 1.1.2 MySQL Database If you have configured a MySQL database, you can use the following command to export the data: ``` mysqldump -u <username> -p <database_name> > mrdoc_backup.sql ``` - `<username>`: database username - `<database_name>`: the database name used by MrDoc - The exported `mrdoc_backup.sql` file is the backup file #### 1.1.3 PostgreSQL Database If you are using PostgreSQL, you can export with the following command: ```bash pg_dump -U <username> -W -F c -b -v -f mrdoc_backup.pgsql <database_name> ``` - `-F c` specifies the custom format, which is convenient for restoration - `-b` includes large objects (such as files) - `-v` displays the detailed process #### 1.1.4 Database Data Export Alternatively, refer to the following documents to export the database data as a `json` file: - [Open Source Edition Data Export and Import](https://doc.mrdoc.pro/doc/3467/ "Open Source Edition Data Export and Import") - [Pro Edition Data Export and Import](https://doc.mrdoc.pro/doc/3468/ "Pro Edition Data Export and Import") ### 1.2 Uploaded File Backup All local files uploaded by users in MrDoc (images, attachments) are located in the `media` folder within the project directory. You can back up this folder directly. ```bash cp -r /opt/MrDoc/media /path/to/backup/media_backup ``` >i It is also recommended to back up this folder regularly. If OSS storage is used (such as Qiniu Cloud or Alibaba Cloud), you need to use the corresponding platform's tools or API for backup. ## 2. Site Migration If you need to migrate the site from one server to another, simply copy the entire MrDoc project code directory (the folder cloned via git clone) to the new server, and then deploy it according to the normal [deployment process](https://doc.mrdoc.pro/doc/3958/ "deployment process"). >d If a non-default database is used, be sure to restore the data to the new server's database before deploying MrDoc on the new server, and ensure that the database configuration and permissions are consistent with the previous ones.
mrdoc
Sept. 29, 2026, 2:57 p.m.
Forward
Favorites
Last
Next
Scan the QR Code
Copy link
Scan the QR code to share.
Copy link
share
link
type
password
Update password
Validity period
Markdown file
Word document
PDF document (print)