23
23
###########################
25
25
# All snapshots will be stored under this root directory.
26
27
snapshot_root /var/cache/rsnapshot/
28
29
# If no_create_root is enabled, rsnapshot will not automatically create the
29
30
# snapshot_root directory. This is particularly useful if you are backing
30
# up to removable media, such as a FireWire drive.
31
# up to removable media, such as a FireWire or USB drive.
38
39
# LINUX USERS: Be sure to uncomment "cmd_cp". This gives you extra features.
39
40
# EVERYONE ELSE: Leave "cmd_cp" commented out for compatibility.
42
# Note: Linux users with gnu cp/coreutils version > 5.3, should leave
43
# cmd_cp commented out, since cp fails to create destination directories
44
# with a trailing slash for versions 5.3 or later.
41
46
# See the README file or the man page for more details.
45
50
# uncomment this to use the rm program instead of the built-in perl routine.
48
# rsync must be enabled for anything to work.
54
# rsync must be enabled for anything to work. This is the only command that
49
57
cmd_rsync /usr/bin/rsync
51
59
# Uncomment this to enable remote ssh backups over rsync.
52
61
cmd_ssh /usr/bin/ssh
54
63
# Comment this out to disable syslog support.
55
65
cmd_logger /usr/bin/logger
57
# Uncomment this to specify a path to "du" for disk usage checks.
67
# Uncomment this to specify the path to "du" for disk usage checks.
68
# If you have an older version of "du", you may also want to check the
69
# "du_args" parameter below.
73
# Uncomment this to specify the path to rsnapshot-diff.
75
cmd_rsnapshot_diff /usr/bin/rsnapshot-diff
77
# Specify the path to a script (and any optional arguments) to run right
78
# before rsnapshot syncs files
80
#cmd_preexec /path/to/preexec/script
82
# Specify the path to a script (and any optional arguments) to run right
83
# after rsnapshot syncs files
85
#cmd_postexec /path/to/postexec/script
60
87
#########################################
61
88
# BACKUP INTERVALS #
62
89
# Must be unique and in ascending order #
66
93
# The interval names (hourly, daily, ...) are just names and have no influence
67
94
# on the length of the interval. The numbers set the number of snapshots to
68
# keep for each interval (hourly.0, hourly.1, ...).
95
# keep for each interval (hourly.0, hourly.1, ...).
69
96
# The length of the interval is set by the time between two executions of
70
97
# rsnapshot <interval name>, this is normally done via cron.
71
98
# Feel free to adapt the names, and the sample cron file under /etc/cron.d/rsnapshot
82
109
# All are optional, with sensible defaults #
83
110
############################################
85
# If your version of rsync supports --link-dest, consider enable this.
86
# This is the best way to support special files (FIFOs, etc) cross-platform.
87
# The default is 0 (off).
88
# In Debian GNU cp is available which is superior to link_dest, so it should be
89
# commented out (disabled).
93
112
# Verbose level, 1 through 5.
94
# 1 Quiet Print fatal errors only
95
# 2 Default Print errors and warnings only
96
# 3 Verbose Show equivalent shell commands being executed
97
# 4 Extra Verbose Show extra verbose information
98
# 5 Debug mode More than you care to know
113
# 1 Quiet Print fatal errors only
114
# 2 Default Print errors and warnings only
115
# 3 Verbose Show equivalent shell commands being executed
116
# 4 Extra Verbose Show extra verbose information
117
# 5 Debug mode Everything
102
121
# Same as "verbose" above, but controls the amount of data sent to the
103
122
# logfile, if one is being used. The default is 3.
106
126
# If you enable this, data will be written to the file you specify. The
107
127
# amount of data written is controlled by the "loglevel" parameter.
108
logfile /var/log/rsnapshot.log
110
# The include and exclude parameters, if enabled, simply get passed directly
111
# to rsync. If you have multiple include/exclude patterns, put each one on a
112
# seperate line. Please look up the --include and --exclude options in the
113
# rsync man page for more details.
120
# The include_file and exclude_file parameters, if enabled, simply get
121
# passed directly to rsync. Please look up the --include-from and
122
# --exclude-from options in the rsync man page for more details.
124
#include_file /path/to/include/file
125
#exclude_file /path/to/exclude/file
129
logfile /var/log/rsnapshot.log
131
# If enabled, rsnapshot will write a lockfile to prevent two instances
132
# from running simultaneously (and messing up the snapshot_root).
133
# If you enable this, make sure the lockfile directory is not world
134
# writable. Otherwise anyone can prevent the program from running.
136
lockfile /var/run/rsnapshot.pid
127
138
# Default rsync args. All rsync commands have at least these options set.
147
# If enabled, rsnapshot will write a lockfile to prevent two instances
148
# from running simultaneously (and messing up the snapshot_root).
149
# If you enable this, make sure the lockfile directory is not world
150
# writable. Otherwise anyone can prevent the program from running.
152
lockfile /var/run/rsnapshot.pid
159
# The include and exclude parameters, if enabled, simply get passed directly
160
# to rsync. If you have multiple include/exclude patterns, put each one on a
161
# seperate line. Please look up the --include and --exclude options in the
162
# rsync man page for more details.
169
# The include_file and exclude_file parameters, if enabled, simply get
170
# passed directly to rsync. Please look up the --include-from and
171
# --exclude-from options in the rsync man page for more details.
173
#include_file /path/to/include/file
174
#exclude_file /path/to/exclude/file
176
# If your version of rsync supports --link-dest, consider enable this.
177
# This is the best way to support special files (FIFOs, etc) cross-platform.
178
# The default is 0 (off).
179
# In Debian GNU cp is available which is superior to link_dest, so it should be
180
# commented out (disabled).
184
# When sync_first is enabled, it changes the default behaviour of rsnapshot.
185
# Normally, when rsnapshot is called with its lowest interval
186
# (i.e.: "rsnapshot hourly"), it will sync files AND rotate the lowest
187
# intervals. With sync_first enabled, "rsnapshot sync" handles the file sync,
188
# and all interval calls simply rotate files. See the man page for more
189
# details. The default is 0 (off).
193
# If enabled, rsnapshot will move the oldest directory for each interval
194
# to [interval_name].delete, then it will remove the lockfile and delete
195
# that directory just before it exits. The default is 0 (off).
154
199
###############################
155
200
### BACKUP POINTS / SCRIPTS ###
168
214
# for these backup points you will need ssh installed on the
169
215
# local machine as well as on the remote host
171
#backup root@example.com:/home/ example.com/
172
#backup root@example.com:/etc/ example.com/
217
#backup root@example.com:/home/ example.com/ +rsync_long_args=--bwlimit=16,exclude=core
218
#backup root@example.com:/etc/ example.com/ exclude=mtab,exclude=core
174
220
# CVS.SOURCEFORGE.NET
175
#backup_script /usr/local/bin/backup_rsnapshot_cvsroot.sh cvs.sourceforge.net/
221
#backup_script /usr/local/bin/backup_rsnapshot_cvsroot.sh rsnapshot.cvs.sourceforge.net/
177
223
# RSYNC.SAMBA.ORG
178
224
#backup rsync://rsync.samba.org/rsyncftp/ rsync.samba.org/rsyncftp/