cytopia / mysqldump-secure

[sh] Encrypted mysqldump script with compression, logging, blacklisting and Nagios/Icinga monitoring integration
https://mysqldump-secure.org
147 stars 38 forks source link

mysqldump hogging CPU and I/O #19

Closed jk2021 closed 8 years ago

jk2021 commented 8 years ago

Is it possible to add “nice” feature, to help the backups not hog the CPU and IO?

cytopia commented 8 years ago

Hi @jk2021 ,

As I have read nice is not required to be issued on the commands inside the script. It is sufficient to start mysqldump-secure with nice prefixed.

See here

nice will be inherited by the commands inside the script.

So simply do

nice 10 mysqldump-secure

cytopia commented 8 years ago

I am closing this ticket now, as nice/renice is not required inside the script in order to be used.

$ nice 10 mysqldump-secure