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'"