Code
mysqldump -u user -p database_name > dumpfilename.sql
The above command should ask you for your password once you hit enter, it'll then dump the database databasename to the file dumpfilename.sql

You can then tar the file so it's compressed; since it's just text it compresses really well, so run:
Code
tar -cvzf archive.tgz dumpfilename.sql


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!