Soluce from Mike Bobbitt works, the code must be added to the automysqlbackup script in my case in /usr/local/bin/automysqlbackup Thanks for the solution Mike :-)