A single PHP script for backing up WordPress into a .zip
/**
* Single file backup of a WordPress site, suitable for dropping in FlyWheel Local
* or restoring just about anywhere.
*
* @author Nick Temple <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
* @link https://github.com/ifsnop/mysqldump-php
*
* See additional credits inline.
* MysqlDump:
* @author Diego Torres <[email protected]>
*
* 1) drop this file into your WordPress folder
* 2) run php migrate.php
* 3) the migrate.zip will contain a backup of the database and all files below this folder.
* 4) DELETE migrate.php and migrate.sql as soon as you are done.
* 5) move migrate.zip to wherever you need the backup.
*
*/