Time for action – backup your Cacti database

  1. Logon to your Cacti system.
  2. Execute the following command to create a backup directory:
    mkdir /backup
    
  3. Execute the following command and replace <password> with your MySQL database password (all in one line):
    mysqldump --user=root --password=<password> --add-drop-table --databases cacti > /backup/cacti_database_backup.sql
    
  4. Verify that the backup file was created by issuing the following command:
    ls -l /backup
    
  5. Look at the file with the more command:
    more /backup/cacti_database_backup.sql
    
    Time for action – backup your Cacti database

What just happened?

You just created a backup of your Cacti database which includes everything that is stored in your ...

Get Cacti 0.8 Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.