Backup All Databases MySQL

export DATE=`date --rfc-3339=date` && mysqldump -u root -p --all-databases >~/bak/db-$DATE.sql

Leave a Reply

Your email address will not be published.