Welcome Guest. Please Login or Register  


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



Normal Mode | Print  

 Backup cron optimization (1 Replies, Read 3234 times)
sparek
Group: Member
Post Group: Working Newbie
Posts: 53
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 (1 Replies, Read 3234 times)
    |--  Brijesh   Hi, Sorry for...   on March 10, 2021, 11:00 am

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is July 28, 2021, 11:55 pm.

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