backing up the whole configuration

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

Moderators: Developers, Moderators

Post Reply
lostbody

backing up the whole configuration

Post by lostbody »

I' m using cacti for some time... real good and light tool ...
What i wanna ask is: How can I backup my whole configuration.
Do i have to export the mysql database and copy it with the whole cacti directory(in my linux /var/www/html/cacti ) on some kind of media(lets say to copy it through nfs on my pc).
Is this enough??? Having a fresh system installed (with the software needed) can I just import again the database and move the cacti directory
whereit was originally was?? Is it going to work

If u can give me some kind of information on how to export/import the database because i am not really familiar with mysql.

Thanx

lostbody :wink:
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Here is how I would backup cacti:

1) 'cd' to your cacti directory, for most it would be:
cd /var/www/html/cacti
2) Dump the MySQL db:
mysqldump -u root -p cacti > cacti-backup.sql
3) Tar up the cacti directory:
tar cvzf cacti-backup.tar.gz .
That will leave you with a tar file containing everything you need to restore cacti to its previous working state.

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests