Time for action – restoring the Cacti config.php file
Logon to your system.
Change to the
/tmp
directory:cd /tmp
Create a directory named
cactirestore
and change to that directory:mkdir cactirestore cd cactirestore
Extract the backup file to the
cactirestore
directory:tar –xzvpf /backup/cacti_files_20101004.tgz
Check the
tmp
directory for the existence of theetc
,var
, andusr
directories:ls -l
Change to the Cacti directory under
var
:cd var/www/html/cacti/
Use the
pwd
command to check if you are in the correct directory:[root@localhost cacti]# pwd /tmp/cactirestore/var/www/html/cacti
Copy the
config.php
file from theinclude
directory to your existing Cacti installation:cp include/config.php /var/www/html/cacti/include
Change to the root directory and delete the temporary restore location:
cd / rm –rf /tmp/cactirestore
What just happened?
You
just restored your config.php
file from a backup. You can use this method to restore any file from your backup archive, such as corrupted...