Configure a script to launch after backup restored

Discussion in 'Tips/Tricks/Mods' started by Sergio W., Apr 28, 2023.

  1. Sergio W.

    Sergio W. Member

    Hi!
    I'm just facing a problem with backups. When I restore a backup the Memcached cache is not automatically flushed so, in my case, the site will continue to show the same results as before the restore until I manually flush it.
    Is there a way to configure a script to run after the backup restore so I can launch it automatically?

    Thanks!
    Regards
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    There may well be. But you did not say what backup application you are using, nor how you do the restore. Try reading the documentation for the system you are using.
     
    ahrasis likes this.
  3. Sergio W.

    Sergio W. Member

    Hi,
    Sorry for the late! the backup I'm using is the one from ISPConfig.
     
  4. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Other than modifying ISPConfig backup / restore code, which is not advisable, you can try to use incron for older system (my old thread / tutorial has this), or systemd trick for newer system (refer to @Th0m tip for securing mail server).
     
  5. Sergio W.

    Sergio W. Member

    Ok, thanks for your advice. I will take a look at your tutorial.
     

Share This Page