How to rerun daily maintenance tasks separately on Plesk for Windows

Created:

2016-11-16 12:43:13 UTC

Modified:

2017-08-16 16:11:37 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to rerun daily maintenance tasks separately on Plesk for Windows

Applicable to:

  • Plesk Onyx for Windows
  • Plesk 11.x for Windows
  • Plesk 12.0 for Windows
  • Plesk 12.5 for Windows

Information

Sometimes you may need to run daily maintenance tasks separately or to run just one of them. You may see the list of all daily tasks with the command:

C:\> "%plesk_dir%\admin\bin\php.exe" -dauto_prepend_file="" -ddisplay_errors=on "%plesk_dir%\admin\plib\DailyMaintainance\\script.php" -l

CheckForUpdates
InstallUpdates
UpdateKeys
PleskUsage
Sitebuilder
MailUsage
ExecuteStatistics
ProcessAutoreports
OptimizeStatistics
AnalyseDomainStatistics
AnalyseClientStatistics
ExecuteSpamtrain
RemoveSpamTempFiles
LoadCustomizations
UpdateApsCache
UpdateApsApplications
Filesharing
UpgradePanel

For example to update Plesk license keys, only run the following command:

C:\> "%plesk_bin%\php.exe" -dauto_prepend_file= "%plesk_dir%\admin\plib\DailyMaintainance\task-script.php" UpdateKeys "--period=daily"

The task " AnalyseDomainStatistics " may be performed for the particular domain. For example, to analyze statistics only for one example.com domain (e.g. with id=1), run the following command:

C:\> "%plesk_bin%\php.exe" -dauto_prepend_file= "%plesk_dir%\admin\plib\DailyMaintainance\task-script.php" AnalyseDomainStatistics "--period=daily" "--process-domain-ids=1"

Domain's id could be found using the following command:

C:\> plesk db "select id from domains where name='example.com'

Have more questions? Submit a request
Please sign in to leave a comment.