mysqldump -u user -p db > /root/db.sql mysqldump -u userName -p (passwordPrompt) yourDatabaseName | gzip -c > output.gz