mirror of
https://github.com/Chouchen/Shikiryu_Backup.git
synced 2021-06-30 16:02:14 +02:00
Creation of the world
This commit is contained in:
14
tests/newhtml.html
Normal file
14
tests/newhtml.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<!--
|
||||
To change this template, choose Tools | Templates
|
||||
and open the template in the editor.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
</head>
|
||||
<body>
|
||||
<div>TODO write content</div>
|
||||
</body>
|
||||
</html>
|
14
tests/test.php
Normal file
14
tests/test.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
error_reporting(E_ALL);
|
||||
include dirname(__FILE__) . '/Files.php';
|
||||
include dirname(__FILE__) . '/Mysql.php';
|
||||
|
||||
$backup = new Shikiryu_Backup_Files(array(dirname(__FILE__).'/newhtml.html'));
|
||||
$backup->addDate()->addTime()->backupToEmail('from@gmail.com', 'to@gmail.com', 'test class', 'coucou');
|
||||
$backup->addDate()->addTime()->backupToFTP('ftp.domain.com', 'login', 'password', '/folder');
|
||||
$backup->backupToFolder('bu');
|
||||
|
||||
$backup2 = new Shikiryu_Backup_MYSQL('localhost', 'login', 'password', 'db');
|
||||
$backup2->fromTables(array('table1'))->addDate()->addTime();
|
||||
$backup2->backupToFolder('bu');
|
||||
?>
|
Reference in New Issue
Block a user