PHP Classes

File: start.php

Recommend this page to a friend!
  Classes of Istvan Dobrentei  >  PHP MySQL Remote Backup  >  start.php  >  Download  
File: start.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP MySQL Remote Backup
Backup MySQL databases to FTP server files
Author: By
Last change:
Date: 6 years ago
Size: 532 bytes


Class file image Download
require 'vendor/autoload.php';

$config = array(
'db_host' => '', //database host
'db_name' => array('database1', 'databas2', 'database3'), //list of databases to dump
'db_user' => '', //database username
'db_pass' => '', //database password
'ftp_host' => '',
'ftp_user' => '', //ftp username
'ftp_pass' => '', //ftp password
'ftp_remote_dir' => 'remote-folder-name',
'ftp_local_dir' => 'temp',
'max_backup_size' => 4 //Mbyte
$backup = new Backup($config);

For more information send a message to info at phpclasses dot org.