Version 0.3.4 of the WordPress Backup script is ready. This version adds backup/restore over FTP enabling users who are hosting their WordPress site on remote hosts to perform backups and restores.
The new version adds a new option group which contains the options needed to access the FTP server:
FTP Options:
Options used when contacting FTP server with WordPress installation
--ftp-host=FTP_HOST
FTP Server name/IP
--ftp-user=FTP_USER
Username for accessing the FTP server
--ftp-passwd=FTP_PASSWD
Password for accessing the FTP server
Below are a few examples on how to use the new options:
- To perform a backup over FTP including the WordPress database:
wp_backup --backup --ftp --ftp-host <hostname> --ftp-user <username> --db -u <mysql_username> -H <mysql_server>
- To perform a restore of the WordPress files over FTP but leave the database as a flat SQL file:
wp_backup --restore --ftp --ftp-host <hostname> --ftp-user <username> --restore_file <BackupFile>
- To perform a restore of the WordPress files over FTP and push database directly to the MySQL server:
wp_backup --restore --ftp --ftp-host <hostname> --ftp-user <username> --restore_file <BackupFile> --db_to_mysql -H <mysql_server> -u <mysql_username>
Visit the WordPress Backup project page to download the latest version.
