|If you want to limit the number of backups a User can created, to say , then you can create the following custom script to enforce it:|
/usr/local/directadmin/scripts/custom/user_backup_pre.shand add the code:
You can manually test the script like this:
file=/home/fred/backups/backup.tar.gz username=fred ./user_backup_pre.sh; echo $?;Which will either output 0, which means the script allowed creation, or the "Too many backups" error, followed by a "1", where 1 means the script tells DA to abort the backup.
© 2018 JBMC Software, Suite 173 3-11 Bellerose Drive, St Albert, AB T8N 1P7 Canada. Mon-Fri 9AM-5PM MST