- Plesk Onyx
How to enable/disable backup management for the subscription via CLI?
The backup permissions for the subscription can be set via
plesk bin subscription_settingscommand. For example, this command will enable the ability to create a local subscription backup for the owner of the "example.com" subscription:
# plesk bin subscription_settings -u example.com -allow_local_backups true
This command will deny such permission:
# plesk bin subscription_settings -u example.com -allow_local_backups false
And this command will grant the permission to create a subscription backup which will be stored on the remote FTP server:
# plesk bin subscription_settings -u example.com -allow_ftp_backups true
Note: the subscription will be locked and will not be synced with service plan after executing the above commands.
Refer to the following documentation page for more information - https://docs.plesk.com/en-US/onyx/cli-linux/using-command-line-utilities/subscription_settings-hosting-subscription-settings.37982/
The same settings can be set for the service plan, in order to update the permissions for all subscriptions assigned to it. For example, to enable such permission:
# plesk bin service_plan -u "Plan 1" -allow_local_backups true
# plesk bin service_plan -u "Plan 1" -allow_local_backups false