$(date +\%Y_\%m_\%d-\%T)'. safe_cmd($file) . '.sql.gz', $output, $exit_code); display($output); check_for_error($exit_code, "Unable to Export MySQL file: {$file}"); return $exit_code; } public static function gunzip($file) { exec(\neato::get_bin . 'gunzip ' . safe_cmd($file) . '.sql.gz', $output, $exit_code); display($output); check_for_error($exit_code, "Unable to unzip MySQL file: {$file}"); return $exit_code; } public static function remove_old($path = '', int $days_old = 10) { exec(\neato::get_user_bin . 'find ' . $path . ' -name "*.gz" -mtime +'.$days_old.' -delete'); } }