Query to set in email backups (number)

Discussion in 'ISPConfig 3 Priority Support' started by Stelios, Nov 28, 2023.

  1. Stelios

    Stelios Active Member HowtoForge Supporter

    Hi all,

    Is it possible to run a query to the master DB (on a multi server setup) to update all email accounts to receive 7 days of backup?
    Some are 3, some 5 etc at the moment but due to been hundreds I was wondering if it is possible with a sql?
    If it is, do I need to run the re-sync or anything else afterwards?

    Thanks in advance
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    This is possible, a resync afterwards is necessary.
     
  3. Stelios

    Stelios Active Member HowtoForge Supporter

    @Th0m do you know which query I have to run?
     
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    You would have to alter the value in the columns `backup_interval` and `backup_copies` in the mail_user table.
     
  5. Stelios

    Stelios Active Member HowtoForge Supporter

    Thanks @Th0m. I assume I need to alter those tables only on the server that holds the control panel as it is a standalone on a multi server setup?
     
  6. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    It shall be done in the master database, I don't think a resync is necessary but it can't hurt to run one for the sites.
     
  7. Stelios

    Stelios Active Member HowtoForge Supporter

    Thanks a lot, it worked fine.

    Code:
    UPDATE mail_user SET backup_interval = 'daily';
    UPDATE mail_user SET backup_copies = '7';
     
  8. Stelios

    Stelios Active Member HowtoForge Supporter

    @Th0m what about the web and database backup? Which are the tables/fields that need to be updated?
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    The table is web_domain.
     

Share This Page