Skip to content

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.

  1. Stop the Dashboard Service
    Run the one-click script on the old server and select Stop Dashboard.

  2. Backup Data
    Compress the /opt/nezha folder on the old server and copy it to the same location on the new server.

  3. Restore Data
    Extract the /opt/nezha folder to the same path on the new server.

  4. Start the Dashboard Service
    Run the one-click script on the new server and select Start 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.