forked from mhancoc7/cron-backup-script
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcron-backup-config.php
33 lines (27 loc) · 949 Bytes
/
cron-backup-config.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
33
<?php
###############################################################
# Cron Backup Script
###############################################################
# Developed by Jereme Hancock for Cloud Sites
###############################################################
// Set information specific to your site
$db_host = "";
$db_user = "";
$db_password = "";
$db_name = "";
$url = "";
$path = "";
$datacenter = "";
// Exclude files & folders from the file backup -- to exclude a directory, suffix the directory name with "/\*".
$exclude = array();
// Set your Cloud Files API credentials
$username = "";
$key = "";
// Backup Database? This checks if the database credentials are empty and if so the script will skip the database backup
if (!empty($db_host) && !empty($db_user) && !empty($db_password) && !empty($db_name)) {
$db_backup = "true";
} else {
$db_backup = "false";
}
$installed_version = "";
?>