When running mysqldump with retry I get retry process OOM killed because the dump is much bigger than RAM. I suggest adding -o and -e options to save stdout and stderr of command directly to files, truncating them every time we need to run the command again. Without these options everything should work is it does now.