in reply to Re^2: Perl and MySql
in thread Perl and MySql

mysqldump --user=myuser --password=mypass mydatabase > mydb.sql

You should be able to do the bzip at the same time as the dump: mysqldump --user=myuser --password=mypass mydatabase | bzip2 -- > mydb.sql That way, you don't use as much disk space.