[HOWTO] Take backups and restore (Scripts)

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Developers, Moderators

Post Reply
luckenbach
Posts: 31
Joined: Thu May 07, 2009 9:21 am

[HOWTO] Take backups and restore (Scripts)

Post by luckenbach »

Since cacti is a MUST for me I needed to create a backup solution that would allow me to take a snapshot of cacti and its database roll it up into a nice neat bundle for safe keeping. I dug around on the forums and found a backup script that work okay but no restore :( So I made a few minor tweaks to the backup script and then created a restore script.

Things you will need

Lynx
mysqladmin
root password to the mysql database (this is only if you need to create a new db instance)
and a ".my.cnf" inside of roots home that has your cactiusers pw.

Code: Select all

[root@cacti scripts]# cat ~/.my.cnf 
[client]
user=cactiuser
password=putyourpwhere
[root@cacti scripts]#
and thats it!

Modify the top of each script with the proper vars and your good to starting taking backups :)
Attachments
backup_scripts.tar
Scripts for backing up and restoring cacti instances.
(20 KiB) Downloaded 618 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Thanks for your contribution!
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest