Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Cacti backup and migration

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Original cacti host IP:222.65.193.176 standby cacti host IP:222.65.194.8

1. Back up the mysql and rrd data on the original cacti monitoring host

Backup database: mysqldump-p cacti > cacti.sql

Cacti, prompt to enter the cacti login password, enter, and the backed up data is under / root

2, backup rra files, du Niang said that backup rra files need to be backed up with rrdtool dump commands, I use tar packaging here.

# tar-cvf rra.tar / var/www/html/rra backed up data under / root

3. Copy the cacti.sql and rra.tar files to the new cacti server

# scp cacti.sql 222.65.193.8:/root

# scp rra.tar 222.65.193.8:/var/www/html

4. Enter the backup cacti

5. Restore rrd files

# tar xvf rra.tar unzipped files are available in / root (this is my current working directory)

# mv-f var/www/html/rra / root/var/www/html/rra

6. Restore database data: delete the cacti database in mysql first

# mysql-p enter the default mysql password

Mysql > drop database cacti delete cacti database

Mysql > create database cacti create a new cacti database

Mysql > ctrl+c

# mysql-p cacti

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report