How to Migrate, Backup, and Restore Data?
Follow these steps to migrate, backup, or restore Nezha Monitoring data:
DANGER
The database structure between V0 and V1 is incompatible. Do not use this method for cross-version upgrades from V0 to V1.
Stop the Dashboard Service
Run the one-click script on the old server and selectStop Dashboard
.Backup Data
Compress the/opt/nezha
folder on the old server and copy it to the same location on the new server.Restore Data
Extract the/opt/nezha
folder to the same path on the new server.Start the Dashboard Service
Run the one-click script on the new server and selectStart Dashboard
.
Notes
- Ensure that the
/opt/nezha
folder and its contents have the correct permissions and ownership on the new server. - After the migration is complete, verify its success by accessing the Dashboard interface.