155 Zeilen
4,3 KiB
PHP
155 Zeilen
4,3 KiB
PHP
<?php
|
|
//////////////////////////////////////////////////////////
|
|
// MySQL Dumper Configuration
|
|
//////////////////////////////////////////////////////////
|
|
|
|
// The Connection-Data for MySQL
|
|
//
|
|
// Host-Adress, default 'localhost'
|
|
$config['dbhost'] = 'localhost';
|
|
// port - if empty, mysql uses default
|
|
$config['dbport'] = '';
|
|
// socket - if empty, mysql uses default
|
|
$config['dbsocket'] = '';
|
|
|
|
// Username
|
|
$config['dbuser'] = 'root';
|
|
//User-Pass. For no Password leave empty
|
|
$config['dbpass'] = '';
|
|
|
|
//Use 0 if the Script and MySQL-Server is not on the same server
|
|
$config['direct_connection']=1;
|
|
|
|
//Speed Values between 50 and 1000000
|
|
//use low values if you have bad connection or slow machines
|
|
$config['minspeed']=100;
|
|
$config['maxspeed']=5000;
|
|
|
|
// Your Interface language. Use 'de' for german, 'en' for english
|
|
$config['language']="de";
|
|
//Shows the Serveradress on top if 1
|
|
$config['interface_server_caption']=1;
|
|
$config['interface_server_captioncolor']="#ff9966";
|
|
//Position of the Serveradress 0=left, 1=right
|
|
$config['interface_server_caption_position']=0;
|
|
//select your stylesheet
|
|
$config['theme']="msd";
|
|
|
|
//Height of the SQL-Box in Mini-SQL in pixel
|
|
$config['interface_sqlboxsize']=70;
|
|
$config['interface_table_compact']=0;
|
|
|
|
// Determine the maximum Amount for Memory Use in Bytes, 0 for no limit
|
|
$config['memory_limit']=100000;
|
|
|
|
// For gz-Compression set to 1, without compression set to 0
|
|
$config['compression']=1;
|
|
|
|
//The Backupformat
|
|
$config['backup_complete_inserts']=0;
|
|
$config['backup_extended_inserts']=0;
|
|
$config['backup_ignore_inserts']=0;
|
|
$config['backup_delayed_inserts']=0;
|
|
$config['backup_downgrade']=0;
|
|
//Lock tables if 1
|
|
$config['backup_lock_tables']=0;
|
|
|
|
|
|
//Refreshtime for MySQL processlist in msec, use any value >1000
|
|
$config['processlist_refresh']=2000;
|
|
|
|
//Disable all .htaccess-Functions with value 1
|
|
$config['no_htaccess']=0;
|
|
|
|
$config['empty_db_before_restore']=0;
|
|
$config['optimize_tables_beforedump']=0;
|
|
$config['stop_with_error']=1;
|
|
|
|
// For sending a mail after backup set send_mail to 1, otherless set to 0
|
|
$config['send_mail']=0;
|
|
// Attach the backup 0=no 1=yes
|
|
$config['send_mail_dump']=0;
|
|
// set the recieve adress for the mail
|
|
$config['email_recipient']="";
|
|
// set the sender adress (the script)
|
|
$config['email_sender']="";
|
|
|
|
//max. Size of Email-Attach, here 3 MB
|
|
$config['email_maxsize1']=3;
|
|
$config['email_maxsize2']=2;
|
|
|
|
|
|
// For FTP-Transfer of Backupfiles set ftp_transfer to 1
|
|
$config['ftp_transfer']=0;
|
|
|
|
// FTP Server Configuration for Transfer
|
|
$config['ftp_connectionindex']=0;
|
|
$config['ftp_server'][0]=""; // Adress of FTP-Server
|
|
$config['ftp_port'][0]="21"; // Port
|
|
$config['ftp_user'][0]=""; // Username
|
|
$config['ftp_pass'][0]=""; // Password
|
|
$config['ftp_dir'][0]=""; // Upload-Directory
|
|
|
|
$config['ftp_server'][1]=""; // Adress of FTP-Server
|
|
$config['ftp_port'][1]="21"; // Port
|
|
$config['ftp_user'][1]=""; // Username
|
|
$config['ftp_pass'][1]=""; // Password
|
|
$config['ftp_dir'][1]=""; // Upload-Directory
|
|
|
|
$config['ftp_server'][2]=""; // Adress of FTP-Server
|
|
$config['ftp_port'][2]="21"; // Port
|
|
$config['ftp_user'][2]=""; // Username
|
|
$config['ftp_pass'][2]=""; // Password
|
|
$config['ftp_dir'][2]=""; // Upload-Directory
|
|
|
|
$config['ftp_timeout']=30;
|
|
$config['ftp_useSSL']=0;
|
|
|
|
//Multipart 0=off 1=on
|
|
$config['multi_part']=0;
|
|
$config['multipartgroesse1']=1;
|
|
$config['multipartgroesse2']=2;
|
|
$config['multipart_groesse']=0;
|
|
|
|
//Auto-Delete 0=off 1=on
|
|
$config['auto_delete']=0;
|
|
$config['del_files_after_days']=0;
|
|
$config['max_backup_files']=3;
|
|
$config['max_backup_files_each']=0;
|
|
|
|
|
|
//configuration file
|
|
$config['cron_configurationfile']="mysqldumper.conf";
|
|
//path to perl, for windows use e.g. C:perlbinperl.exe
|
|
$config['cron_perlpath']="/usr/bin/perl";
|
|
//mailer use sendmail(1) or SMTP(0)
|
|
$config['cron_use_sendmail']=1;
|
|
//path to sendmail
|
|
$config['cron_sendmail']="/usr/lib/sendmail";
|
|
//adress of smtp-server
|
|
$config['cron_smtp']="localhost";
|
|
//smtp-port
|
|
$config['cron_smtp_port']=25;
|
|
$config['cron_samedb']=0;
|
|
$config['cron_timelimit']=360;
|
|
$config['cron_extender']=0;
|
|
$config['cron_mail']=0;
|
|
$config['cron_mail_dump']=0;
|
|
$config['cron_ftp']=0;
|
|
$config['cron_compression']=1;
|
|
$config['cron_printout']=1;
|
|
$config['cron_completelog']=1;
|
|
$config['multi_dump']=0;
|
|
|
|
$config['logcompression'] = "0";
|
|
$config['log_maxsize1'] = "1";
|
|
$config['log_maxsize2'] = "2";
|
|
$config['log_maxsize'] = "1048576";
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
|