How to take SQL backup In GZIP format?

How to take SQL backup In GZIP format?

Posted by: awaisuk
Posted on: 2007-01-31 06:37:00

How to take SQL backup In GZIP format? I got SSH access aswell..

THanks!

Re: How to take SQL backup In GZIP format?

Posted by: EnPa
Posted on: 2007-01-31 06:45:00

Hi!

You just need your browser: use phpMyAdmin (control panel --> goodies --> mysql)!

In phpMy Admin:

- Login with the user for the DB you want to backup.
- Choose the DB from the menu on the left.
- Click on the Export-Tab
- On the bottom of the page, check "Save as file" and choose "gzipped"

Bye
EnPa

Re: How to take SQL backup In GZIP format?

Posted by: extras
Posted on: 2007-01-31 07:21:00

I guess you can do like this:

mysqldump -H<dbservername> -B<dbname> -u<username> -p<password> |gzip -c >example.sql.gz

Add whatever the option you would like to the mysqldump command.
Also, I think I've seen something explaining these in DH wiki.


.*.*.* I'd be happier if DH had free shared SSL and redundant server setup. *.*.*.
http://Hostwick.com/

Re: How to take SQL backup In GZIP format?

Posted by: awaisuk
Posted on: 2007-01-31 12:23:00

PHPMYADMIN doesnt work for me, it gives error.

My SQL is Large, so it takes time to Backup, so when i use SSH command it waits for sometime then Dreamhost server kills the Command, and i only get half of my DB.

What other methods i could do to get my whole DB ?

Re: How to take SQL backup In GZIP format?

Posted by: extras
Posted on: 2007-01-31 17:56:00

Then you can possibly split the process, by backing up some tables separately.
You can do that by adding table name(s) in the mysqldump command.

Or you can try a script like this (I've never uesd and don't know how it works, though).
http://www.ozerov.de/bigdump.php



.*.*.* I'd be happier if DH had free shared SSL and redundant server setup. *.*.*.
http://Hostwick.com/

Tags: ssh accesssqlaswell