dbispconfig hacked

Discussion in 'Installation/Configuration' started by Steve1960, Sep 14, 2023.

  1. Steve1960

    Steve1960 New Member

    Hi
    My mariadb was hacked and dbispconfig has been wiped. Now, there are only two users so:
    1. I could recreate - would that just be a reinstall of ispconfig 3 and adding my two users?
    2. I could remove Ispconfig altogether as it's more than I need and just revert to using postfix standalone - how do I do that?
    3. I upgraded ISPconfig3 on Monday - could I restore from that backup? Does it backup the database?
    Any help appreciated.

    Thank you
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes.

    If you have chosen to back up the system during update, then the database is included in the backup. You find the backups in /var/backup/ The database backup is a SQL dump. I'm not sure if it contains only the data or also the table definitions. if table definitions are not in the SQL dump, then use the file install/sql/ispconfig3.sql which you find in the ISPConfig tar.gz file to populate the database, then truncate all tables and finally import the SQL dump from the backup.
     
  3. Steve1960

    Steve1960 New Member

    Yes, I have ispconfig_db_backup.sql.
     
  4. Steve1960

    Steve1960 New Member

    importing from backup getting Table 'dbispconfig.cache' doesn't exist. And indeed it doesn't!
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Please read post #2, I explained that and what you have to do step by step.
     
  6. Steve1960

    Steve1960 New Member

    Yep - followed to the letter - I ran the ispconfig3.sql, truncated all the tables and then ran the backup script. Any table starting cache, doesn't exist - I commented out any reference to them in the backup file and everything else loaded sweetly. A quick look through the tables and it all seems ok. I can login to mail.

    Postfix however, is logging "Temporary lookup failure" when receiving mail
     
  7. Steve1960

    Steve1960 New Member

    Bouncing postfix seems to have resolved any issue. Do I need those cache tables?
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig does not has any table with that name, see ispconfig3.sql file. So you likely created a table with that name manually in the ispconfig database or you used the ispconfig database for other software besides ISPConfig.
     
    Last edited: Sep 14, 2023
  9. Steve1960

    Steve1960 New Member

    Anyway, all seems well, thank you for your help, I'm back up and running - couldn't find any "cache*" tables in the ispconfig3.sql file. Odd that they were in the backup file.
     
  10. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Use automysqlbackup to get backups of all databases daily, and weekly and monthly backups stored for a longer time. It is probably available from you linux distribution repository.
     
    ahrasis and Steve1960 like this.

Share This Page