/
settings.rb.sample
98 lines (85 loc) · 3.51 KB
/
settings.rb.sample
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# EXECUTABLES
MYSQLDUMP_CMD = '/usr/bin/mysqldump'
MONGODUMP_CMD = '/usr/bin/mongodump'
GZIP_CMD = '/bin/gzip'
TAR_CMD = '/bin/tar'
CP_CMD = '/bin/cp'
# COMPRESSION
# * Defines the compression factor of gzip. Must be a digit from 1-9. Lower numbers provide
# less compression but are faster, and vice versa. The default compression level is 6
# (that is, biased towards high compression at expense of speed).
GZIP_STRENGTH = 6
# PACKAGING
# * Defines if at directory backup failed reads should ignored. Not implemented in file
# backup, because failed reads there is a problem.
IGNORE_FAILED_READS = true
# PATHS
TMP_BACKUP_PATH = '/tmp' # Will be created as parent for a temp directory before uploading.
MYSQLPATH = 'mysqldb'
FILEPATH = 'archive'
MONGOPATH = 'mongodb'
# DATEPATHS
# * Defines if the script creates date path, for example 20130212-2217/mysqldb
DATEPATH = true
# FTP CREDENTIALS
FTP_HOST = 'my.ftp.server'
FTP_USER = 'username'
FTP_PASS = 'password'
FTP_BASEPATH = ''
FTP_PASSIVE = true
# SPECIFY FTP FOLDER
# * Note: Must be globally unique. Will automatically be created if it does not exist.
FTP_FOLDER = 'my.unique.name'
# SPECIFY HOW MANY DAYS OF ARCHIVES YOU WANT TO KEEP
# * Warning: The expiration is performed on *all* objects in the bucket.
# If you use this script on multiple servers, use separate buckets for each.
DAYS_OF_ARCHIVES = 30
# MYSQL CONFIG
# * Put the MySQL table names that you want to back up in the MYSQL_DBS array below
# Archive will be named in the format: db-table_name-200912010423.tgz
# where 200912010423 is the date/time when the script is run
# MYSQL_DBS = ['application_production', 'wordpress', 'something_else']
# For backup all databases comment the MYSQL_DBS and comment out the MYSQL_ALL
# MYSQL_ALL = true
# MYSQL_DB = 'localhost'
# MYSQL_USER = 'XXXXX'
# MYSQL_PASS = 'XXXXX'
# MONGODB CONFIG
# * Put the MongoDB table names that you want to back up in the MONGO_DBS array below
# Archive will be named in the format: mdb-table_name-200912010423.tgz
# where 200912010423 is the date/time when the script is run
# MONGO_DBS = ['mongo_db_one', 'mongo_db_test']
# MONGO_HOST = 'localhost'
# DIRECTORY BACKUP CONFIG
# * Add hash pair for each directory you want to backup
# in format: "name_for_backup" => "/actual/directory/name"
# Archive will be named in the format: dir-name_for_backup.tgz
# and is placed in a subdir named 20141125-1100 (date/time)
# * Special hint:
# If the folder ends with an asterisk (/folder/to/backup/*) each
# subfolder and -file got backuped in an own archive (Excluded
# the excludes)
# * Symlink option: If true, the backup includes the target files of
# symlinks, not only the symlinks
# DIRECTORIES = {
# "userhome" => "/home/user",
# "apacheconfig" => "/etc/httpd"
# }
# You can set excludes in this array.
# DIRECTORIES_EXCLUDE = ['*.old', '*zopectl']
# SYMLINKS = true
# Set split sitze in megabytes
SPLIT_SIZE = 4000
# SINGLE FILES CONFIG
# * Add hash pair for each grouping of single files you want to backup
# in format: "name_for_backup" => [array of single files to backup]
# Archive will be named in the format: files-name_for_backup-200912010423.tgz
# where 200912010423 is the date/time when the script is run
# SINGLE_FILES = {
# 'important_configs' => ['/etc/hosts', '/etc/my.cnf'],
# 'other_configs' => ['/etc/syslog.conf', '/etc/smb.conf']
# }
# DASHBOARD CONFIG
# * You can push your data to our backup dashboard.
# DASHBOARD = true
# DASHBOARD_URL = "http://backup.example.com/api.php"