Skip to content
KBHost
Menu
KBHost
FileHost
Home
/
Knowledgebase
/
Linux
/
Direct Admin back-up prority
Direct Admin back-up prority
vi /etc/cron.d/directadmin_cron
replace:
* * * * * root /usr/local/directadmin/dataskq
with:
* * * * * root /usr/bin/ionice -c3 /usr/local/directadmin/dataskq
cd /usr/local/directadmin/scripts/custom
vi user_backup_pre.sh
#!/bin/sh MAXTRIES=20 MAXLOAD=8.00 highload() { LOAD=`cat /proc/loadavg | cut -d\ -f1` echo "$LOAD > $MAXLOAD" | bc } TRIES=0 while [ `highload` -eq 1 ]; do sleep 5; if [ "$TRIES" -ge "$MAXTRIES" ]; then echo "system load above $MAXLOAD for $MAXTRIES attempts. Aborting."; exit 1; fi ((TRIES++)) done; exit 0;
chmod 755 user_backup_pre.sh
Most viewed
Cleanup space in CertLog folder
Ookla Speedtest server install
Disable shared mailbox caching OST
Manual update FreeNAS
Flush DNS cache FRITZ!Box
Enable NFS client in Windows 10
Most recent
Silent install OpenVPN
Clear print spooler queue
Azure standaardinstellingen voor beveiliging
Enable smtp.office365.com
Test smtp.office365.com
Mac Finder unresponsive
Random passwords
Gavu3007?
Cica2490!
Dibi3274?
Zumu6323?
Hoba1029!
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.
Ok