Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
How to disable scheduled backup tasks over the CLI?
Answer
Currently, there is no CLI tool available for such tasks.
As a workaround, you can disable it by editing the Plesk Database (psa) manually.
To do so, follow these steps:
-
To disable the server's scheduled backup, execute the following command:
# plesk db "UPDATE BackupsScheduled SET active = 'false' where obj_type = 'server'"
-
To disable the scheduled backups for example.com, execute the next command:
# plesk db "update BackupsScheduled bs, domains d set bs.active='false' where
d.id=bs.obj_id and d.name='example.com'" -
To disable all domains scheduled backups, execute the following command:
# plesk db "UPDATE BackupsScheduled SET active = 'false' where obj_type = 'domain'"
To remove tasks from Windows Task Scheduler after applying the steps from the article:
-
Find out the IDs of disabled tasks using the following query in CMD:
plesk db "select id from BackupsScheduled where active='false';"
-
Run the following command in CMD for each id from the psa.BackupsScheduled table as 'x':
plesk sbin crontabmng sync-domain-backup x
Comments
0 comments
Please sign in to leave a comment.