PDF ohne PWD in V1.4; FDPI hinzugefügt
This commit is contained in:
25
controller/start_Directory_Backup_Service.php
Normal file
25
controller/start_Directory_Backup_Service.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
include_once ('Directory_Backup_Service.php');
|
||||
|
||||
$fileBackup = new Directory_Backup_Service( );
|
||||
|
||||
// Backup erstellen
|
||||
$fileBackup->startBackup( '../../survey/', 'survey' );
|
||||
|
||||
// FTP-Upload starten
|
||||
$infoF = $fileBackup->curlUpload( );
|
||||
$files = glob('./*.zip'); // get all zip file names
|
||||
foreach($files as $file){ // iterate files
|
||||
if(is_file($file)) {
|
||||
unlink($file); // delete file
|
||||
}
|
||||
}
|
||||
|
||||
echo 'Dateigröße: ' . $infoF['size_upload'] . '<br>';
|
||||
echo 'Geschwindigkeit: ' . $infoF['speed_upload'] . '<br>';
|
||||
echo 'Gesamtzeit: ' . $infoF['total_time'] . '<br><br>';
|
||||
|
||||
//print_r($infoF);
|
||||
|
||||
?>
|
Reference in New Issue
Block a user