G-Zip a file in PHP via the command line.
$zipline = "tar -czf $filename.tar.gz $filename.sql";
shell_exec($zipline);