Time for action – restoring all Cacti files
Logon to your Cacti server.
For this example, let's assume you have it copied into the
/backup
directory.Change to the root directory:
cd /
Extract the contents of the backup:
tar –xzvpf /backup/cacti_files_20101004.tgz
You will see the contents of the archive being displayed on the screen during the extraction process, as shown in the following screenshot:
What just happened?
You extracted the files from your backup. The –p
option tells tar to maintain the permissions as they were at the time of the backup. By using the –v
(verbose) option, the name of each file currently being extracted is displayed on the screen, allowing you to monitor its progress. You will need to restart all relevant services afterwards, or reboot the system to make all the changes to the configuration files active.
Tip
Restore the Cacti files to a separate system
If you intend to restore the backup archive to another Linux distribution, or just want to restore a single file...