Code to Take wordpress MU Database Tables Backup from Command Line

Posted by

Hi,

Please run this code from command prompt to take a wordpress MU database backup:

DATE=`date | tr ” ” _`
echo $DATE
mysqldump wordpress –add-drop-table -h localhost -u wpdbuser -pyourpasswd | gzip > db.$DATE.gz
tar cvfz code.$DATE.gz

Thanks,

Shane G.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.