-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.inc.example.php
More file actions
35 lines (27 loc) · 937 Bytes
/
config.inc.example.php
File metadata and controls
35 lines (27 loc) · 937 Bytes
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
33
34
35
<?php
/**
* Default config files. Copy to config.inc.php
*/
// Amazon account details
$config['amazon'] = array(
'bucket' => 's3 bucket name', // Must be created manually
'access_point' => 's3.amazonaws.com', // you can set other access point
'access_key_id' => 'access key here',
'secret_access_key' => 'secret key here');
$config['paths'] = array(
'archive_path' => '/tmp/s3backups', // temporary folder, used for backup and archive.
);
// Backup a database with mysqldump
// Repeat this block if you need to back up multiple databases.
$config['database'][] = array(
'username' => 'mysql_username',
'password' => 'mysql_password',
'hostname' => 'localhost',
'database' => 'name_of_database',
'compress' => 'bzip2', // compress options - gzip, bzip2
);
// Upload all files from this folder to S3. Use it when want to upload exists backups
$config['upload_files'] = array(
'folder' => '/path/to/files',
);
?>