How can I move cacti

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

How can I move cacti

Post by TFC »

I have cacti 8.3 in linux box
I want to move my data to another linux box with installed cacti 8.4.
Does anybody know a procedure?
diegov
Posts: 13
Joined: Tue Jun 17, 2003 5:16 pm
Contact:

Re: How can I move cacti

Post by diegov »

TFC wrote:I have cacti 8.3 in linux box
I want to move my data to another linux box with installed cacti 8.4.
Does anybody know a procedure?
Here are the steps I use to maintain a dev cacti server in my shop.

1. Backup the mysql database:
# mysqldump -u your_user -p your_database > cactibackup.sql

2. Archive then copy all your rrd files to your new server:
# tar cvf rrdbackup.tar.gz PATH_TO_CACTI/rra/*
at this point you can scp or ftp the rrdbackup.tar.gz and the cactibackup.sql files to the new server.

3. Import the database into the new server:
Run this command on the new server
# mysql -u your_user -p your_database < cactibackup.sql

4. Finally extract all the rrd files to the rra/ directory of your new cacti server. Make sure you are in the rra directory if you want to run the command bellow.
# tar xjvf PATH_TO_ARCHIVE/rrdbackup.tar.gz


That's it!

These steps work for me. Just make sure you enter the right path names and user names, it should work ok.
If not just post it here that I or someone else will be able to help you.

Cheers,

DiegoV
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests