Applicable to:
- Plesk
Question
How to enable/disable backup management for the subscription via CLI?
Answer
Note: the subscription will be locked and will not be synced with the service plan after executing the below commands.
-
The backup permissions for the subscription can be set via
plesk bin subscription_settings
command. 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
Refer to the following documentation page for more information - Hosting Subscription Settings
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
To disable:
# plesk bin service_plan -u "Plan 1" -allow_local_backups false
Comments
1 comment
How can I remove the Backup & Restore button from plesk - all domains?
Please sign in to leave a comment.