MAKING THE AUTOBACKUP PLUGIN RUN AUTOMATICALLY - Dec 29th, 2018


It seems that the auto backup plugin doesn’t run in the background on a server. Which means that no backups will be
run unless, according to Chris Waddell at Interactive Tools, “...something hits admin.php periodically.”

You can read the entire thread at:

http://www.interactivetools.com/iforum/Products_C2/CMS_Builder%3A_Plugins_%26_Add-ons_F40/P84078

Chris offered a few solutions.

1) Set up one of the many Web Cron services to hit your admin.php page, allowing Auto Backup to do its thing. You won't
need to provide a username/password or anything. Also, Web Crons tend to be very easy to configure!

User kblm suggested that to keep your backups from getting a prefix of “no-hostname” when running a cron, you can
enter a file prefix on the line:


$GLOBALS['AUTOBACKUP_DEFAULT_PREFIX'] = ''; // Backup file prefix, leave blank to use current domain name


2) Changing the line in the plugin below will cause a normal site visit to trigger automatic backups:


addAction('init_complete', 'autoBackup_updateBackups', null, 0);


to


autoBackup_updateBackups();


Chris noted that this might cause some extra strain on your server if you get a lot of visitors.

User aev suggested:

“If we have 1000 pageviews/hour wouldn't that require only a simple 'if' check or something similar for 999 of those?
And then pageview #1000 triggers the backup?“



The materials on this web site have been created for use with CMS Builder content management software. CMS Builder software is published and licensed for use by InteractiveTools.com. Please contact Interactive Tools for information on the downloading of the software or the purchasing of licenses.


Terms of Service