You need to back up both the cacti-backup. SQL and syslog. SQL databases, and the/var/www/html/folder and its overall content.
Restore files and databases:
1. Restore all content in the html folder to the original location:
A. decompress the backup data package and enter the html directory of the extracted data. Run the following command:
In this way, the contents in the html folder backed up will overwrite the content in the currently used html folder. There may be many prompts asking if you need to overwrite them. If it is too troublesome, You can first Delete the content in the/var/www/html/folder (it is overwritten, so it doesn't matter if you delete it first ).
Delete the command: rm-rf/var/www/html /*
2. Import the database files backed up before:
# Mysql-uroot-p cacti
# Mysql-uroot-p syslog
3. After completing the above two steps, it is basically OK. It is best to check whether the Settings are consistent with the local machine.
Set the rrdtool path correctly.