Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Restore cacti

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: General
Author Message
tamias



Joined: 16 Oct 2008
Posts: 34

PostPosted: Tue Nov 18, 2008 11:55 pm    Post subject: Restore cacti Reply with quote

Сacti stopped working and I want to restore it from backups.
I have a backup folder /cacti. And also i made a copy of cactidb
Code:
$ mysqldump -uroot -p cactidb > cactidb.sql

That's what I do to restore:
Code:
$ mysqldump -uroot -p cactidb < cactidb.sql

Deleting not working cacti folder, restore cacti folder from the backup.
Now i have to be able to login and enter into console cacti but the graphics are not available, and not created.
Help me please!
Back to top
IlPini



Joined: 05 Jun 2008
Posts: 32
Location: Rome, Italy

PostPosted: Wed Nov 19, 2008 3:59 pm    Post subject: Re: Restore cacti Reply with quote

tamias wrote:
That's what I do to restore:
Code:
$ mysqldump -uroot -p cactidb < cactidb.sql

I'm no MySQL expert, but... shouldn't the command above be "mysql" instead of "mysqldump"?
Back to top
tamias



Joined: 16 Oct 2008
Posts: 34

PostPosted: Wed Nov 19, 2008 6:34 pm    Post subject: Re: Restore cacti Reply with quote

IlPini wrote:
tamias wrote:
That's what I do to restore:
Code:
$ mysqldump -uroot -p cactidb < cactidb.sql

I'm no MySQL expert, but... shouldn't the command above be "mysql" instead of "mysqldump"?

I'm no MySQL expert too:
http://www.mydigitallife.info/2007/07/21/how-to-backup-and-restore-export-and-import-mysql-databases-tutorial/
and it works well
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5469
Location: Wisconsin, USA

PostPosted: Thu Nov 20, 2008 9:05 am    Post subject: Reply with quote

You are missing an important componet.

All graph related data is stored in the RRDTool files located in the rra directory of your original Cacti installation. Copy these files over.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: General All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group