-
Notifications
You must be signed in to change notification settings - Fork 14
/
configuration-example
52 lines (45 loc) · 1.02 KB
/
configuration-example
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Environment Example:
====================
my public directory is:
/var/www/html
my personal non public files directory is:
/var/www/private
My backup script is located in:
/var/www/backup.sh
My backup directory is in:
/var/www/backup
I backup the website at 9am server time every Monday and Thursday. so my cron job command is:
0 9 * * 1,4 bash "/var/www/backup.sh"
My script configuration is as follows:
=====================================
backupDirectory="backup"
HOME="/var/www"
dbName[0]='mydb'
dbCnf[0]='mydb.cnf'
dbName[1]='mydb2'
dbCnf[1]='mydb2.cnf'
compressDatabases=1
filesPath[0]='html'
filesPath[1]='private'
ZipOrTar=1
compressFiles=0
enableFtpTransfer=1
deleteFilesAfterTransfer=1
deleteOldBackupsAfter=30
FtpHost='myftp.url.com'
FtpPort='21'
FtpUser='ftpUser'
FtpPass='mysecretftppass'
FtpPath=''
mydb.cnf contains:
==================
[mysqldump]
host = localhost
user = mydbuser
password = mydbpass
mydb2.cnf contains:
===================
[mysqldump]
host = localhost
user = mydbuser2
password = mydbpass2