-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbackup.sample.cfg
More file actions
48 lines (42 loc) · 1.07 KB
/
backup.sample.cfg
File metadata and controls
48 lines (42 loc) · 1.07 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
###
# Email Variables
EMAILDATE=`date --date="today" +%y-%m-%d`
SENDTOEMAIL="your@emailhere.com"
MANDRILLKEY="YOUR MANDRILL API KEY"
FROMEMAIL="backups@domain.com"
FROMNAME="Backup Script"
####
# The directory we're going to story our backups in on this server.
# dont use a trailing slash.
BaseDir="/opt/backup"
TmpBackupDir="${BaseDir}/temp"
LogDir="${BaseDir}/logs"
###
# The URI of the S3 bucket.
# This is usually in the form of domain.com for me,
# make sure there is a trailing slash on the S3URI
S3URI='s3://s3bucket/backups/'
S3ConfigFile="${BaseDir}/.s3cfg"
###
# An array of directories you want to backup (I included a few configuration directories to).
# Assuming standard ubuntu with apache2, and mysql
filesToBackup=(
'/var/www'
'/etc/passwd'
'/etc/hosts'
'/etc/fstab'
'/etc/group'
'/etc/apache2'
'/etc/mysql'
)
###
# The MySQL details
# If you aren't using db backups, set EnableDBBackups to false
EnableDBBackups=true
MySQLConfig='/opt/backup/database.cnf'
DBsToBackup=(
'yourdbname'
)
today=`date --date="today" +%m%d%y`
FileBackupName="os.$today"
DBBackupName="db.$today"