We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1576
    • 24 Posts
    Hi,

    Is it possible to use the BkupMODx to schedule automatic backups?

    If so, how?

    Thanks!
    Andrew
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You could run it using a cron job, or use a plugin to run it at certain times, perhaps storing the timestamp of the actual time it’s run and checking against that to determine when to run it again. The tricky part would be getting the login; having the application run with no security is not a good idea.

      Another security enhancement I’ve done when using this is to have my .htaccess file deny direct access to its config file:
      <Files config.inc.php>
      order deny,allow
      deny from all
      </Files>
      

      This doesn’t stop it from being included by the script; that doesn’t pass through the Apache server. It does stop somebody from requesting it directly.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 1343 ☆ A M B ☆
        • 2,213 Posts
          Patrick | Server Wrangler
          About Me: Website | Tweets |  MODX Hosting