1. Go to this page and download the library: Download dimsav/backup-engine library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dimsav / backup-engine example snippets
/*
* Define in this array the projects you wish to backup.
*
* The key of the array marks the name of the project
* and it is used for folder and file names. So better
* use alphanumeric characters with slash/underscores.
*/
"projects" => array(
/*
* Here we define a project to be backed-up.
* For this project, we want to backup only
* the database. We use the default host and
* port, and we override the username and password.
*
* For this project we are overriding the default
* password with another one.
*/
"project-1" => array(
"database" => array(
"name" =>"db-name",
"username"=>"db-user",
"password"=>"db-pass",
),
"password" => "another-secret",
),
/*
* For this project we backup both some files
* and the database.
*
* We use the default database settings, so we
* define only the database name.
*
* Under "paths" we put a list of absolute paths
* of directories or files.
*
* Under "excludes" we put a list of absolute paths
* of directories or files that should not be
*
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.