Backup automatization for multiple WordPress instances.
- Install WP Complete Backup into your WordPress instance.
- Allow your current IP or 'any' to access to remote backups.
- Generate an API KEY.
-
Clone the repository into your system.
-
Add as much projects as you want to the $projects array.
$projects = array( array( 'name' => 'ProjectName', 'url' => 'www.project-url.com', 'api_key' => 'xxxxxxxxxxxxxxxxxxxxxxxx', 'method' => 'both', 'execute' => true, 'auth' => 'required', // HTTP Basic authentication OPTIONAL 'username' => 'username', // OPTIONAL 'password' => 'password' // OPTIONAL ) );
You can split the process and the projects into diferent files. To do that add your projects ProjectsLists.php array.
-
Open terminal and execute:
sudo php Automate.php