Cacti Backup Procedure
Cacti Backup Procedure
Cacti Backup Procedure
com Log In
Home Products
[the_ad_placement id=”default-manual”]
Generic Information
This section provides an overview on what should be backed up as well as the script and cron
jobs being used
What to Backup:
The goal of the backup is to have a full working Cacti installation restored as fast as possible.
Therefore the following configuration files and directories should be included:
Apache configuration
PHP configuration
Cacti Cronjob
Full Cacti directory
Backup script
If installed: Spine
In addition to these files, the following database needs to be saved:
cacti
Backup Script:
The passwords have been changed to “xxx”.
#!/bin/bash
# Urban-Software.de
# Database Backup Script
# Database Credentials
DBUSER="cactiuser";
DBPWD="xxx";
DBNAME="cacti";
# Upload to FTP server (on a SCP server, the transfer could be verified
# By a md5sum execution on the remote system with a comparison of the 2 files afte
ftp -inv $FTPHOST << EOF
user $FTPUSER $FTPPWD
bin
put $BACKUPDIR$TGZFILENAME.md5 $TGZFILENAME.md5
put $BACKUPDIR$FILENAME.gz.md5 $FILENAME.gz.md5
put $BACKUPDIR$TGZFILENAME $TGZFILENAME
put $BACKUPDIR$FILENAME.gz $FILENAME.gz
bye
EOF
Backup Cronjob:
The following lines have been added to /etc/cron.d/cacti:
Restore Procedures
Follow these steps in order to restore your Cacti system:
1. Create a new System with all pre-requirements satisfied ( php, mysql, apache installed,
basic Cacti )
2. Fetch your latest backup files ( files + database ) and put it into the tmp directory
3. Drop and Re-Create a the cacti database and add the cacti user with your DB
credentials ( change xxx to match your current database user/password):
mysql –p
> CREATE DATABASE cacti;
> GRANT ALL PRIVILEGES ON cacti.* TO cacti@localhost IDENTIFIED BY “xxx”;
> FLUSH PRIVILEGES;
Recent Comments
Recent Posts
Legal Information
Imprint / Impressum
Widerrufsformular
Contact us