- Plesk Onyx for Linux
How to set up a hard quota on disk space for all/multiple subscriptions via a command-line interface?
To configure a hard quota on disk space for all/multiple domains via CLI, follow these steps:
Connect to a Plesk server via SSH.
Generate the list of all subscriptions with the command below. If necessary, modify the file according to your needs leaving only those subscriptions whose quota should be changed:
# plesk bin subscription --list > subs.txt
Specify a hard quota value in the command below and run it to apply changes to all subscriptions listed in the file subs.txt. "0M" means Unlimited:
# cat subs.txt | while read i; do plesk bin domain -u $i -hard_quota 100M; done