How can I automatically restore my site from a backup using the command line for testing purposes?
I use /applications/mamp/library/bin/mysqldump -uUSERNAME -pPASSWORD DATABASE &gt;backup.sql to back my database up and then /applications/mamp/library/bin/mysql -uUSERNAME -pPASSWORD DATABASE &lt;backup.sql to restore it.