Home  >  Article  >  Database  >  CactiEZ备份和恢复

CactiEZ备份和恢复

WBOY
WBOYOriginal
2016-06-07 17:29:061007browse

需要备份cacti-backup.sql和syslog.sql两个数据库,和/var/www/html/这个文件夹及其整体内容。

需要备份cacti-backup.sql和syslog.sql两个数据库,和/var/www/html/这个文件夹及其整体内容。

恢复需要恢复文件和数据库:

1.把html文件夹里面的内容全部恢复到原位置:

a.解压备份的数据包,并进入解压数据html的目录,执行以下的命令:

这样备份出来的html文件夹中的内容就会将目前在用的html文件夹中的内容覆盖。可能会有很多提示,,问你是否需要覆盖。如果嫌麻烦的话,可以先删除/var/www/html/这个文件夹中的内容(反正是要覆盖的,所以先删除掉也无所谓)。

删除使用的命令:rm -rf /var/www/html/*

2.导入之前备份的数据库文件:

#mysql -uroot -p cacti

#mysql -uroot -p syslog

3. 完成上述2步,基本OK了,最好检查一下Settings的相关设置是否与本机相符。

rrdtool的路径要设置正确。

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn