In VestaCP, each packages have option to specify how many backups it can take. First you need to click on packages, then change number of backups allowed for each package.
If backups allowed is more than 0, set it to 0.
Users are created with these Packages. For all existing users, you need to manually edit file
/usr/local/vesta/data/users/USERNAME_HERE/user.conf
change value for backup to 0.
If you have many users, instead o editing one by one, you can use following bash script.
#!/bin/bash FILES=$(find /usr/local/vesta/data/users/ -name "user.conf") for USER_FILE in $FILES do echo "Processing ${USER_FILE}" sed -i "s/^BACKUPS=.*$/BACKUPS='0'/g" $USER_FILE sed -i "s/^U_BACKUPS=.*$/U_BACKUPS='0'/g" $USER_FILE done
See VestaCP
Leave a Reply