1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Disable Board With Query/Script

Discussion in 'XenForo Questions and Support' started by Ghan_04, Mar 4, 2013.

  1. Ghan_04

    Ghan_04 Active Member

    So I'm running xenForo on a VPS with APC on the front end and memcached running for backend caching. It would be nice if I could disable the board with a message when my nightly database backup runs, but I'm not sure what the correct procedure here would be.
    Has anyone else done this and if so, what are the steps you need to take to ensure that all the caching, etc. is taken care of to keep the software happy?
     
  2. James

    James Well-Known Member

    You can enable debug mode manually using XenForo_Application::setDebugMode(true);

    Stick that into a cron or however you wish to do it.
     
  3. Ghan_04

    Ghan_04 Active Member

    I didn't think debug mode disabled the board, though.
     
  4. shawn

    shawn Well-Known Member

    Are you running nginx?

    I copy a maintenance mode/503 page into the web root with a cron job whenever any maintenance tasks like that are running. If nginx sees the file in the directory, it returns 503 and displays the error page. The script rm's it when everything is done.
     
  5. shawn

    shawn Well-Known Member

    Alternatively, you could use Percona Xtrabackup and just run hot backups whenever you feel like it. I've been meaning to migrate to Percona, but my current system works...
     
  6. MattW

    MattW Well-Known Member

    Chris D likes this.
  7. James

    James Well-Known Member

    Oops... Completely misread the question.
     

Share This Page