Tested to make mysql dump and added removal of tmp file.