Hi April,
The first thing we need to do is change the name of the backup folder from
D:\Inetpub\carolinaparent\cmsAdmin\data\backups_disabled_by_newtek
back to
D:\Inetpub\carolinaparent\cmsAdmin\data\backups
The way they've renamed this means that you wouldn't be able to do a manual back up or restore. After you've renamed it, check to make sure the folder still has read/write permissions. Run a manual backup from General Settings to make sure it works.
Next, If you don't want/need to keep all the backups you currently have, you can just delete them. This won't affect anything else.
Finally, we can change some code inside the plugin to have it run less frequently. By default, the backup runs once an hour, once a day, once a week, and once a month.
If you open up autoBackup.php you'll see this line of code:
// create backup files
$units = array('hourly', 'daily', 'weekly', 'monthly');
This array is used to determine which backups need to be created. By removing elements from this array, we're removing types of backups that will be created.
For example, if we only want backups run weekly and monthly, we'd change the code to look like this:
// create backup files
$units = array('weekly', 'monthly');
Daily and hourly backups won't occur.
In order to reduce the number of backup files you keep, you can change some variables up at the top. You'll see code similar to this near the top of your file:
// UPDATE THESE VALUES
$GLOBALS['AUTOBACKUP_HOURS'] = 24; // Keep automatic backups for the last X hours (max 24)
$GLOBALS['AUTOBACKUP_DAYS'] = 3; // Keep automatic backups for the last X days (max 7)
$GLOBALS['AUTOBACKUP_WEEKS'] = 3; // Keep automatic backups for the last X weeks (max 52)
$GLOBALS['AUTOBACKUP_MONTHS'] = 3; // Keep automatic backups for the last X months (max 12)
These values determine how long we want to keep old backup files before deleting them. In this exaple, we keep hourly backups for 24 hours, daily backups for 3 days, weekly backups for
3 weeks and monthly backups for 3 months. To reduce the amount of time we keep these, just reduce these numbers.
After all of this is done, reactivate your plugin. Let us know if you run into any other issues concerning this.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/