The best I mean the smallest file size.
A:
gzipped SQL is probably about the best you're going to get. You could copy the actual data files themselves, but then you run the risk of copying a partially modified table, resulting in a broken copy.
mysqldump -h host -u username --password=foo dbname > file.sql
gzip file.sql
Harold1983-
2010-05-11 13:45:53
A:
mysqldump -h host -u username --password=foo dbname | gzip -9 > file.sql.gz
Vadim
2010-05-11 16:38:02