Great tool, easy to use and understand

I was investigating the script to ensure it could support both Windows and Linux. As it seems, the current script is ready for linux or compatible.

Would there be any issue by changing:

PHP Code:
if ($remove_sql_file== "yes") { 
      
exec("rm -r -f $filename"); 

To this:

PHP Code:
if ($remove_sql_file== "yes") { 
      
//exec("rm -r -f $filename"); 
      
if (file_exists($filename)) {
           
unlink($filename);
      }

AND:

PHP Code:
if($remove_gzip_file=="yes") { 
exec("rm -r -f $filename2"); 

To this:

PHP Code:
if ($remove_gzip_file == "yes") { 
      
//exec("rm -r -f $filename2"); 
      
if (file_exists($filename2)) {
    
unlink($filename2);
      }

To support both Windows/Linux? Would this be the best way? For this tool I'd only be interested in obtaining the .gz of the DB dump sent to my email address and never leave the archives on the server (at all). For this, I'd want to ensure the backup tool could handle both Windows/Linux in terms of removing the file(s) or dumps after the email (with attachment) has been sent.

Any suggestions would be appreciated

Thanks