-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheeConnect.php
32 lines (24 loc) · 1.11 KB
/
eeConnect.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php // Mitchell Bennis ([email protected])
// Version 1.2 -- Rev 12.19.23
// PHP 8 Approved
// Modify the values below as needed.
// Database Configuration
DEFINE('DB_USER', 'eeBackupUser');
DEFINE('DB_PASSWORD', 'paSSworD'); // Best not contain special chars on command line
DEFINE('DB_HOST', 'localhost');
$eeExcluded = array('mysql', 'information_schema', 'performance_schema', 'sys'); // Don't back up these databases
// FTP Configuration
DEFINE('FTP_SERVER', '1.22.33.444'); // Destination FTP Server
DEFINE('FTP_USER', '[email protected]'); // FTP Username
DEFINE('FTP_PASSWORD', 'paSSworD'); // Password
DEFINE('FTP_REMOTE', 'backup_files/'); // Use trailing slash
// Local Configuration
DEFINE('SERVER', 'eeDotNet'); // The name of this server
DEFINE('BACKUP_FOLDER', __DIR__ . '/backup_files/'); // Local Backup Directory
// Email Configuration
DEFINE('EMAIL_TO', '[email protected]');
DEFINE('EMAIL_FROM', '[email protected]');
DEFINE('EMAIL_MaxAttachSize', 20971520); // Files over 20 MB will not be sent
$eeSubject = SERVER . ' Backup Job: ' . date('m-d-Y');
// Amazon S3 Configuration- Coming Soon
?>