• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Input list of "Subscriptions" where there is no Scheduled Backup

This is a bit tricky, because when a user has never before scheduled a backup, Plesk does not have a backup dataset, while when he has scheduled a backup, but then turned it "inactive" by unchecking the "active" checkbox, Plesk has a dataset with a flag.

To see all subscriptions (subscription user name and main domain name of subscription) where either a user has never before scheduled a backup or he did schedule a backup before but the backup is set to "inactive", please run this query from "plesk db" database interface:

Code:
select a.login AS login, c.name AS domainname
FROM sys_users AS a
INNER JOIN hosting AS b ON b.sys_user_id = a.id
INNER JOIN domains AS c ON c.id = b.dom_id
INNER JOIN Subscriptions AS d ON d.object_id = c.id
LEFT JOIN BackupsScheduled as e ON e.obj_id = c.id
WHERE ((e.id IS NULL) OR (e.active LIKE 'true')) AND (c.webspace_id LIKE '0')

You can also run this in a single line from the Linux console:

Code:
#plesk db "select a.login AS login, c.name AS domainname FROM sys_users AS a INNER JOIN hosting AS b ON b.sys_user_id = a.id INNER JOIN domains AS c ON c.id = b.dom_id INNER JOIN Subscriptions AS d ON d.object_id = c.id LEFT JOIN BackupsScheduled as e ON e.obj_id = c.id WHERE ((e.id IS NULL) OR (e.active LIKE 'true')) AND (c.webspace_id LIKE '0')"
 
Back
Top