Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > Suggestions > Topic : Backup cron optimization



Normal Mode | Print  

 Backup cron optimization (6 Replies, Read 21158 times)
sparek
Group: Member
Post Group: Working Newbie
Posts: 74
Status:
It seems that when users have a backup scheduled for their Softaculous installations - when those backups run, they all run simultaneously.

Would a better solution be to do these sequentially?  Run one backup, wait for it to finish, before starting another backup.


When a use schedules a backup it would seem to add a cron to the user's crontab:

/usr/local/cpanel/3rdparty/bin/php -d disable_functions="" "/usr/local/cpanel/whostmgr/docroot/cgi/softaculous"/cli.php --backup --auto=1 --insid=XXXXXXXX

This presumably sets a flag some where, so that root's cron knows to actually do the backup.

And then when root's cron runs:

/usr/local/cpanel/3rdparty/bin/php -d disable_functions="" /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/do_backups.php

all of the backups - across all users - all run at once.  This can create a huge disk i/o usage because all of those backups are trying to run at the same time.

I think it would be better logic for /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/do_backups.php to do one user's backup, wait for it to finish, and then move on to the next backup.


IP: --   


Threads
 sparek   Backup cron optimization (6 Replies, Read 21158 times)
    |--  Brijesh   Hi, Sorry for...   on March 10, 2021, 11:00 am
    |--  softacmani   Hi, Softaculous v5.7.3...   on September 3, 2021, 9:13 am
    |--  ConorAgency   Hi, How do...   on December 26, 2021, 11:22 pm
    |--  Brijesh   Hi, We run...   on December 27, 2021, 6:27 am
    |--  bamhost   Where is this...   on November 4, 2022, 3:59 pm
    |--  Brijesh   Hi, Sorry for...   on December 27, 2022, 11:49 am

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 27, 2024, 6:16 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.041