public
Fork of ianneub/php_backup_s3
Description: A PHP application that handles scheduled backups to S3
Homepage: http://douglasjarquin.com/
Clone URL: git://github.com/douglasjarquin/backuphp.git
backuphp / backup.php.example
100755 24 lines (17 sloc) 0.51 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
// AWS access info
define('awsAccessKey', '');
define('awsSecretKey', '');
 
// Backup bucket
$BACKUP_BUCKET = 'bucket_name';
 
// MySQL variables
$MYSQL_OPTIONS = '';
 
// Set the include paths
ini_set("include_path", "/path/to/backuphp/");
 
// Load the app functions
include('app/functions.php');
 
// Syntax: hostname, username, password, server_name
backupDBs('localhost', 'root', 'password', 'backup');
 
// Syntax: array of paths, server_name
backupFiles(array('/home/douglas/swordsmen'), 'backup');
?>