Quick and Dirty MySQL Backup

by damonp on August 4, 2006

in Snippets,SQL,SysAdmin

This is great for a quick backup of all databases before performing maintenance or check/repair.

mysqldump --all-databases -p | gzip > db_dump-YYYYMMDD.gz

Replace YYYYMMDD with Year, Month and Day.

Popularity: 1%

Most Popular Posts

Damon Parker is a freelance sysadmin and web developer in Texas. He specializes in server setup, server security and high performance server configurations. Need help setting up a web server or getting a server back online after a crash or hack? Email Damon

{ 1 comment… read it below or add one }

Jay Allen December 8, 2006 at 7:52 pm

“Replace YYYYMMDD with Year, Month and Day.”

No need!

mysqldump –all-databases -p | gzip > db_dump-`date %Y%m%d`.gz

Reply

Leave a Comment

{ 1 trackback }

Previous post:

Next post: