Articles in this section

How to disable scheduled backup tasks over the CLI?

kb: how-to Plesk for Linux

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:

  1. Connect to the server via SSH/RDP

  2. Create Plesk database backup

  3. To disable the server's scheduled backup, execute the following command:

    # plesk db "UPDATE BackupsScheduled SET active = 'false' where obj_type = 'server'"

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

  5. 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:

  1. Find out the IDs of disabled tasks using the following query in CMD:

    plesk db "select id from BackupsScheduled where active='false';"

  2. Run the following command in CMD for each id from the psa.BackupsScheduled table as 'x':

    plesk sbin crontabmng sync-domain-backup x

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.