How to Migrate, Backup, and Restore Data?
Follow these steps to migrate, backup, or restore Nezha Monitoring data:
DANGER
This page applies only when the source and target are compatible V2 releases. If the data comes from V0 or V1, consult the applicable release and migration notes; do not assume that overwriting files performs a supported cross-generation upgrade.
Stop the Dashboard Service
Run the one-click script on the old server and selectStop Dashboard.Backup Data
Compress the/opt/nezhafolder on the old server and copy it to the same location on the new server.Restore Data
Extract the/opt/nezhafolder 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/nezhafolder 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.