/ Published in: Other
This will create the perfect database dump on the shell commandline of a Joomla 1.5 website. Run this command when you're in the root of the website.
Expand |
Embed | Plain Text
#!/bin/sh database=`grep "db = " ./configuration.php | cut -d \' -f 2` dbuser=`grep "user = " ./configuration.php | grep -v offset_user | grep -v ftp_user | grep -v smtpuser | cut -d \' -f 2` password=`grep "password = " ./configuration.php | cut -d \' -f 2` mysqldump --skip-opt --add-drop-table --add-locks --create-options --disable-keys --lock-tables --quick --set-charset --user=$dbuser --password=$password $database > $database.sql echo $database.sql created.
You need to login to post a comment.
