This project is archived and will be no updated anymore, please check this other script (bash): https://github.com/ProtocolNebula/server-web-migration
This is a simple PHP script which let you backup a MySQL (big databases too) and/or the web files for move it to another server. This is useful when you have to migrate a very big database and PHPMyAdmin fails or something or things such wordpress. You can move directly vía ftp server-2-server (in development).
This script have all configuration in "config.php", is self descriptive, so I recommend you to read!
NOTE: You can use it LOCALLY or on other computer or even opposite server if you have remote access to MySQL connection and a correct PHP configuration / php script.
- Upload all files (
restore.php
is optional) to the OLD server (which can be accessed via http) - Edit
config.php
with the DB data - Execute:
http://yourhost/pathtoscript/backup.php
- If backup is make successfully you will see a success message
- Download the file dump.sql via HTTP or FTP (or how you like)
- Delete or block the script
- Upload all files (
backup.php
is optional) including dump.sql to the NEW server (which can be accessed via http) - Edit
config.php
with the DB data of the new server - Execute:
http://yourhost/pathtoscript/restore.php
- If the backup is restored successfully you will see a success message
- Delete or block the script
IMPORTANT: I will make some changes, but I have no plans to continue this repo after this if I don't need it. You can fork and make a merge request or ask me for some addon that you need.
- Exclude tables or their content
- Zip & Unzip SQL file
- Fix english text
- Make a files backup
- Transfer files via FTP (from any server to the other)
This project is open-sourced software licensed under the GPL license like "ifsnop" library included in this repo