Subversion Repositories configs

Rev

Rev 194 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
192 - 1
#################################################
2
# rsnapshot.conf - rsnapshot configuration file #
3
#################################################
4
#                                               #
5
# PLEASE BE AWARE OF THE FOLLOWING RULE:        #
6
#                                               #
7
# This file requires tabs between elements      #
8
#                                               #
9
#################################################
10
 
11
#######################
12
# CONFIG FILE VERSION #
13
#######################
14
 
15
config_version	1.2
16
 
17
###########################
18
# SNAPSHOT ROOT DIRECTORY #
19
###########################
20
 
21
# All snapshots will be stored under this root directory.
22
#
23
snapshot_root	/data2/homeserver/
24
 
25
# If no_create_root is enabled, rsnapshot will not automatically create the
26
# snapshot_root directory. This is particularly useful if you are backing
27
# up to removable media, such as a FireWire or USB drive.
28
#
29
#no_create_root	1
30
 
31
#################################
32
# EXTERNAL PROGRAM DEPENDENCIES #
33
#################################
34
 
35
# LINUX USERS:   Be sure to uncomment "cmd_cp". This gives you extra features.
36
# EVERYONE ELSE: Leave "cmd_cp" commented out for compatibility.
37
#
38
# See the README file or the man page for more details.
39
#
40
#cmd_cp		/usr/bin/cp
41
 
42
# uncomment this to use the rm program instead of the built-in perl routine.
43
#
44
cmd_rm		/usr/bin/rm
45
 
46
# rsync must be enabled for anything to work. This is the only command that
47
# must be enabled.
48
#
49
cmd_rsync	/usr/bin/rsync
50
 
51
# Uncomment this to enable remote ssh backups over rsync.
52
#
53
#cmd_ssh	/usr/bin/ssh
54
 
55
# Comment this out to disable syslog support.
56
#
57
cmd_logger	/usr/bin/logger
58
 
59
# Uncomment this to specify the path to "du" for disk usage checks.
60
# If you have an older version of "du", you may also want to check the
61
# "du_args" parameter below.
62
#
63
#cmd_du		/usr/bin/du
64
 
65
# Uncomment this to specify the path to rsnapshot-diff.
66
#
67
#cmd_rsnapshot_diff	/usr/local/bin/rsnapshot-diff
68
 
69
# Specify the path to a script (and any optional arguments) to run right
70
# before rsnapshot syncs files
71
#
72
#cmd_preexec	/path/to/preexec/script
73
 
74
# Specify the path to a script (and any optional arguments) to run right
75
# after rsnapshot syncs files
76
#
77
#cmd_postexec	/path/to/postexec/script
78
 
79
# Paths to lvcreate, lvremove, mount and umount commands, for use with
80
# Linux LVMs.
81
#
82
#linux_lvm_cmd_lvcreate	/usr/sbin/lvcreate
83
#linux_lvm_cmd_lvremove	/usr/sbin/lvremove
84
#linux_lvm_cmd_mount	/usr/bin/mount
85
#linux_lvm_cmd_umount	/usr/bin/umount
86
 
87
#########################################
88
#     BACKUP LEVELS / INTERVALS         #
89
# Must be unique and in ascending order #
90
# e.g. alpha, beta, gamma, etc.         #
91
#########################################
92
 
93
retain	daily	7
94
retain	weekly	4
95
retain	monthly	6
96
retain	yearly	3
97
 
98
############################################
99
#              GLOBAL OPTIONS              #
100
# All are optional, with sensible defaults #
101
############################################
102
 
103
# Verbose level, 1 through 5.
104
# 1     Quiet           Print fatal errors only
105
# 2     Default         Print errors and warnings only
106
# 3     Verbose         Show equivalent shell commands being executed
107
# 4     Extra Verbose   Show extra verbose information
108
# 5     Debug mode      Everything
109
#
110
verbose		3
111
 
112
# Same as "verbose" above, but controls the amount of data sent to the
113
# logfile, if one is being used. The default is 3.
114
#
115
loglevel	3
116
 
117
# If you enable this, data will be written to the file you specify. The
118
# amount of data written is controlled by the "loglevel" parameter.
119
#
120
#logfile	/var/log/rsnapshot
121
 
122
# If enabled, rsnapshot will write a lockfile to prevent two instances
123
# from running simultaneously (and messing up the snapshot_root).
124
# If you enable this, make sure the lockfile directory is not world
125
# writable. Otherwise anyone can prevent the program from running.
126
#
127
lockfile	/var/run/rsnapshot.pid
128
 
129
# By default, rsnapshot check lockfile, check if PID is running
130
# and if not, consider lockfile as stale, then start
131
# Enabling this stop rsnapshot if PID in lockfile is not running
132
#
133
#stop_on_stale_lockfile		0
134
 
135
# Default rsync args. All rsync commands have at least these options set.
136
#
137
#rsync_short_args	-a
138
#rsync_long_args	--delete --numeric-ids --relative --delete-excluded
139
rsync_long_args	--stats
140
 
141
# ssh has no args passed by default, but you can specify some here.
142
#
143
#ssh_args	-p 22
144
 
145
# Default arguments for the "du" program (for disk space reporting).
146
# The GNU version of "du" is preferred. See the man page for more details.
147
# If your version of "du" doesn't support the -h flag, try -k flag instead.
148
#
149
#du_args	-csh
150
 
151
# If this is enabled, rsync won't span filesystem partitions within a
152
# backup point. This essentially passes the -x option to rsync.
153
# The default is 0 (off).
154
#
155
#one_fs		0
156
 
157
# The include and exclude parameters, if enabled, simply get passed directly
158
# to rsync. If you have multiple include/exclude patterns, put each one on a
159
# separate line. Please look up the --include and --exclude options in the
160
# rsync man page for more details on how to specify file name patterns.
161
#
162
#include	???
163
#include	???
164
#exclude	???
165
#exclude	???
166
exclude	spool/*
167
exclude	lib/squidguard/*
168
exclude	virusmails/*
169
exclude	clamav/amavis-*
170
exclude	lib/mysql/*
171
exclude	db/mysql/*
172
exclude	lib/clamav/tmp/*
173
exclude	lib/php/session/*
174
exclude	lib/glpi/files/*
175
exclude	cache/*
176
exclude	crash/*
177
exclude	tmp/*
178
exclude	log/*
179
exclude	.svn
180
exclude	src/kernels/*
181
exclude	temp/*
182
exclude	rsnapgraph/*
183
 
184
# The include_file and exclude_file parameters, if enabled, simply get
185
# passed directly to rsync. Please look up the --include-from and
186
# --exclude-from options in the rsync man page for more details.
187
#
188
#include_file	/path/to/include/file
189
#exclude_file	/path/to/exclude/file
190
 
191
# If your version of rsync supports --link-dest, consider enabling this.
192
# This is the best way to support special files (FIFOs, etc) cross-platform.
193
# The default is 0 (off).
194
#
195
#link_dest	0
196
 
197
# When sync_first is enabled, it changes the default behaviour of rsnapshot.
198
# Normally, when rsnapshot is called with its lowest interval
199
# (i.e.: "rsnapshot alpha"), it will sync files AND rotate the lowest
200
# intervals. With sync_first enabled, "rsnapshot sync" handles the file sync,
201
# and all interval calls simply rotate files. See the man page for more
202
# details. The default is 0 (off).
203
#
204
#sync_first	0
205
 
206
# If enabled, rsnapshot will move the oldest directory for each interval
207
# to [interval_name].delete, then it will remove the lockfile and delete
208
# that directory just before it exits. The default is 0 (off).
209
#
210
#use_lazy_deletes	0
211
 
212
# Number of rsync re-tries. If you experience any network problems or
213
# network card issues that tend to cause ssh to fail with errors like
214
# "Corrupted MAC on input", for example, set this to a non-zero value
215
# to have the rsync operation re-tried.
216
#
217
#rsync_numtries 0
218
 
219
# LVM parameters. Used to backup with creating lvm snapshot before backup
220
# and removing it after. This should ensure consistency of data in some special
221
# cases
222
#
223
# LVM snapshot(s) size (lvcreate --size option).
224
#
225
#linux_lvm_snapshotsize	100M
226
 
227
# Name to be used when creating the LVM logical volume snapshot(s).
228
#
229
#linux_lvm_snapshotname	rsnapshot
230
 
231
# Path to the LVM Volume Groups.
232
#
233
#linux_lvm_vgpath	/dev
234
 
235
# Mount point to use to temporarily mount the snapshot(s).
236
#
237
#linux_lvm_mountpath	/path/to/mount/lvm/snapshot/during/backup
238
 
239
###############################
240
### BACKUP POINTS / SCRIPTS ###
241
###############################
242
 
243
# LOCALHOST
244
backup	/boot		localhost/boot	one_fs=1
245
backup	/lib		localhost/lib	one_fs=1
246
backup	/lib64		localhost/lib64	one_fs=1
247
#backup	/misc		localhost/misc	one_fs=1
248
backup	/opt		localhost/opt	one_fs=1
249
backup	/sbin		localhost/sbin	one_fs=1
250
backup	/var		localhost/var	one_fs=1
251
backup	/dev		localhost/dev	one_fs=1
252
backup	/home		localhost/home	one_fs=1
253
#backup	/selinux	localhost/selinux	one_fs=1
254
backup	/srv		localhost/srv	one_fs=1
255
backup	/bin		localhost/bin	one_fs=1
256
backup	/etc		localhost/etc	one_fs=1
257
backup	/media		localhost/media	one_fs=1
258
#backup	/net		localhost/net	one_fs=1
259
backup	/root		localhost/root	one_fs=1
260
#backup	/sys		localhost/sys	one_fs=1
261
backup	/usr		localhost/usr	one_fs=1
262
backup	/data2/shared	localhost/data/shared	one_fs=1
263
 
264
backup_script		/usr/local/bin/backup_mysql.sh	dbbackup/
265
 
266
#backup	/home/		localhost/
267
#backup	/etc/		localhost/
268
#backup	/usr/local/	localhost/
269
#backup	/var/log/rsnapshot		localhost/
270
#backup	/etc/passwd	localhost/
271
#backup	/home/foo/My Documents/		localhost/
272
#backup	/foo/bar/	localhost/	one_fs=1,rsync_short_args=-urltvpog
273
#backup_script	/usr/local/bin/backup_pgsql.sh	localhost/postgres/
274
# You must set linux_lvm_* parameters below before using lvm snapshots
275
#backup	lvm://vg0/xen-home/	lvm-vg0/xen-home/
276
 
277
# EXAMPLE.COM
278
#backup_exec	/bin/date "+ backup of example.com started at %c"
279
#backup	root@example.com:/home/	example.com/	+rsync_long_args=--bwlimit=16,exclude=core
280
#backup	root@example.com:/etc/	example.com/	exclude=mtab,exclude=core
281
#backup_exec	ssh root@example.com "mysqldump -A > /var/db/dump/mysql.sql"
282
#backup	root@example.com:/var/db/dump/	example.com/
283
#backup_exec	/bin/date "+ backup of example.com ended at %c"
284
 
285
# CVS.SOURCEFORGE.NET
286
#backup_script	/usr/local/bin/backup_rsnapshot_cvsroot.sh	rsnapshot.cvs.sourceforge.net/
287
 
288
# RSYNC.SAMBA.ORG
289
#backup	rsync://rsync.samba.org/rsyncftp/	rsync.samba.org/rsyncftp/