-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpackrat.conf
157 lines (111 loc) · 3.77 KB
/
packrat.conf
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
#!/bin/bash
#
# NOTE: All values are case-sensitive. eg, if available options are "yes"
# or "no", do not use "Yes" or "YES".
#
#########################################################################
# GLOBAL OPTIONS
#########################################################################
# Who to email if something goes wrong
ADMIN_EMAIL="[email protected]"
# Local directory to store archives
BACKUP_DIR="/var/backup"
# Backup methods to use (zero or more of: filesystem/mysql/postgresql)
BACKUP_MODULES=()
# Upload methods to use (zero or more of: ssh/ftp/s3)
UPLOAD_MODULES=('ssh')
# Delete archives older than X days
# NOTE: if using incremental backups, make sure you don't set this so the
# master is purged before a new one is generated.
PURGE_LOCAL_ARCHIVES=10
PURGE_REMOTE_ARCHIVES=10
# Encryption key (blowfish algorithm - requires openssl for DB backups)
# WARNING: Password may be visible in ps/top output during backup!
ENCRYPTION_KEY="donthackme"
#########################################################################
# BACKUP MODULE: FILESYSTEM
#########################################################################
# Filesystem targets to backup
FS_TARGETS=(
'/etc'
'/home'
'/var/spool/cron'
'/var/spool/mail'
)
# Backup method to use (tar/dar)
# WARNING: Support for tar is incomplete - do not use it.
FS_METHOD='dar'
# If using dar, set the slice size (break up archives into files of this size)
FS_SLICE_SIZE='1000M'
# Use incremental backups (yes/no)
FS_INCREMENTAL="yes"
# Incremental: How often do we make a full/master archive? (weekly/monthly)
FS_MASTER_FREQ="weekly"
# Incremental: If master frequency is weekly, DOW to take a master (Mon-Sun)
# Incremental: If master frequency is monthly, day to take a master (01-31)
FS_MASTER_DAY="Sun"
# Exclude files (no path) that match these masks
FS_EXCLUDE_FILES=('access_log' 'error_log')
# Exclude paths (full pathname, files and directories) that match these masks
FS_EXCLUDE_PATHS=('log' 'logs')
#########################################################################
# BACKUP MODULE: MYSQL DATABASES
#########################################################################
# Databases to backup - use "__ALL__" to backup all databases at once
MYSQL_TARGETS=(
'__ALL__'
)
# Administrator/root username
MYSQL_USER="root"
# Administrator/root password
MYSQL_PASS=
# Host
MYSQL_HOST="localhost"
# Port
MYSQL_PORT="3306"
#########################################################################
# BACKUP MODULE: POSTGRESQL DATABASES
#########################################################################
# Databases to backup - use "__ALL__" to backup all databases at once
POSTGRESQL_TARGETS=('__ALL__')
# Administrator/root username
POSTGRESQL_USER="postgres"
# Host
POSTGRESQL_HOST=""
# Port
POSTGRESQL_PORT=""
#########################################################################
# UPLOAD MODULE: SSH
#########################################################################
# FQDN/IP to upload to
SSH_HOST=
# Username to login as
SSH_USER=
# Private key to use for passwordless login
SSH_KEY=
# Remote directory to store archives in
SSH_DIR=
# Limit upload bandwidth (Kbit/s)
SSH_BWLIMIT=
#########################################################################
# UPLOAD MODULE: FTP
#########################################################################
# Domain/IP to upload to
FTP_HOST=
# Username to login as
FTP_USER=
# Password for login
FTP_PASS=
# TCP Port
FTP_PORT=
# Remote directory to store archives in
FTP_DIR=
#########################################################################
# UPLOAD MODULE: S3
#########################################################################
# S3 Access Key
S3_ACCESS_KEY=
# S3 Secret Key
S3_SECRET_KEY=
# S3 Bucket to upload to
S3_BUCKET=