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

Board Active Cron 1.0

Turns your board on and off at scheduled times via Cron Entry

  1. Chris D

    Chris D XenForo Developer Staff Member

    Chris Deeming submitted a new resource:

    Board Active Cron (version 1.0) - Turns your board on and off at scheduled times via Cron Entry

    Read more about this resource...
    0xym0r0n likes this.
  2. Adam Howard

    Adam Howard Well-Known Member

    Now if only this also ran a back up on its own.... That would be cool
    • Close site
    • back up
    • open site
    Would make for the perfect automated system.
    fattony69 and 0xym0r0n like this.
  3. DRE

    DRE Well-Known Member

    Wow wtf lol
  4. 0xym0r0n

    0xym0r0n Well-Known Member

    If my board were busier I'd use it lol
    Usually I just get up at 3am to do my quick back-up then go back to bed lol
  5. WaddleJrJr

    WaddleJrJr Member

    Would it be possible to add an option that makes this work with a specific section, rather than the board in general?

    Like switching it to a private node and back at a set time.

    Or if someone could help me find out how I can find the xf option for the private node function, so I could just add it in to this line manually if that's how it would work.
    $db->update('xf_option', array('option_value' => 1), 'option_id = "boardActive"');
  6. MattW

    MattW Well-Known Member

    Sod getting up at 3am, that's what scripts and cron are for!

    This sits in perfectly with my nightly back up solution now. Close board at 03:28, cron runs at 03:30 to dump the database, bzip2 the file, upload to 2 remote sites, and then re-open the board at 03:34 when it's all done.
  7. 0xym0r0n

    0xym0r0n Well-Known Member

    It's not the only site I do it for so it's okay. lol and really I kinda do it from my phone.... lmfao so its more like habitually wake up in the early hours. Initiate back-ups and go back to bed.
  8. account8226

    account8226 Guest

    You're addon worked perfectly for my board, but I noticed that since it's enable for 20 minutes, google is getting loads exploration error.
  9. akia

    akia Well-Known Member

    Is it possible rather than being set by the cron at times for it to be able to be called as part of my backup script, so that when it runs it closes the site and once its done it opens the site. as the backups vary in time and I don't do them every night.
  10. Chris D

    Chris D XenForo Developer Staff Member

    This add-on is specifically a cron entry.

    If you wanted to use the code within it in your backup script then you could do, but it's not within the scope of this add-on.
  11. Sheratan

    Sheratan Well-Known Member

    Chris, I trying to use this in 1.3 RC2

    The addon works, but there is some problem with schedule. I have set the board off in 3AM and on in 3:15AM in tools > Cron Entries.

    But the cron still running in 10AM off, 10:15AM on, no matter what time I set.
  12. Chris D

    Chris D XenForo Developer Staff Member

    Cron times in XenForo are GMT. You will need to take that into consideration.
  13. Sheratan

    Sheratan Well-Known Member

    3AM in my country = 10AM GMT.

    GMT +7

    Dang! :D

Share This Page