• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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