• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • 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.

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