I got a script that backs up minecraft worlds, when ran by command (nice -19 ./backup.sh) it doesn't lag what so ever, server load stays low. When I try to do nice -19 ./backup.sh in a cronjob, it doesn't "nice" it and it uses a high amount of server resources. Isn't there a renice command? Can't I some how input that in the code to make it renice itself everytime it runs? But how would I get the PID of the script?
Thank you!