~ubuntu-branches/ubuntu/edgy/rsnapshot/edgy

« back to all changes in this revision

Viewing changes to rsnapshot.conf.default.in

  • Committer: Bazaar Package Importer
  • Author(s): Simon Boulet
  • Date: 2006-06-05 22:03:45 UTC
  • mfrom: (3.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20060605220345-byz0jaecexc3h2m4
Tags: 1.2.9-1
* New upstream release
* Updated Free Software Foundation address in debian/copyright
* Added rsnapshot-diff man page from CVS
* Switched autotools-dev and rsync back to Build-Depends-Indep

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
###########################
24
24
 
25
25
# All snapshots will be stored under this root directory.
 
26
#
26
27
snapshot_root   /var/cache/rsnapshot/
27
28
 
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.
31
32
#
32
33
#no_create_root 1
33
34
 
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.
40
41
#
 
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.
 
45
#
41
46
# See the README file or the man page for more details.
42
47
#
43
48
cmd_cp          /bin/cp
44
49
 
45
50
# uncomment this to use the rm program instead of the built-in perl routine.
 
51
#
46
52
cmd_rm          /bin/rm
47
53
 
48
 
# rsync must be enabled for anything to work.
 
54
# rsync must be enabled for anything to work. This is the only command that
 
55
# must be enabled.
 
56
#
49
57
cmd_rsync       /usr/bin/rsync
50
58
 
51
59
# Uncomment this to enable remote ssh backups over rsync.
 
60
#
52
61
cmd_ssh         /usr/bin/ssh
53
62
 
54
63
# Comment this out to disable syslog support.
 
64
#
55
65
cmd_logger      /usr/bin/logger
56
66
 
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.
 
70
#
58
71
cmd_du          /usr/bin/du
59
72
 
 
73
# Uncomment this to specify the path to rsnapshot-diff.
 
74
#
 
75
cmd_rsnapshot_diff      /usr/bin/rsnapshot-diff
 
76
 
 
77
# Specify the path to a script (and any optional arguments) to run right
 
78
# before rsnapshot syncs files
 
79
#
 
80
#cmd_preexec    /path/to/preexec/script
 
81
 
 
82
# Specify the path to a script (and any optional arguments) to run right
 
83
# after rsnapshot syncs files
 
84
#
 
85
#cmd_postexec   /path/to/postexec/script
 
86
 
60
87
#########################################
61
88
#           BACKUP INTERVALS            #
62
89
# Must be unique and in ascending order #
65
92
 
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
############################################
84
111
 
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).
90
 
#
91
 
#link_dest      0
92
 
 
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
99
118
#
100
119
verbose         2
101
120
 
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.
 
123
#
104
124
loglevel        3
105
125
 
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
109
 
 
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. 
114
 
115
 
#include        ???
116
 
#include        ???
117
 
#exclude        ???
118
 
#exclude        ???
119
 
 
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.
123
 
#
124
 
#include_file   /path/to/include/file
125
 
#exclude_file   /path/to/exclude/file
 
128
#
 
129
logfile         /var/log/rsnapshot.log
 
130
 
 
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.
 
135
#
 
136
lockfile        /var/run/rsnapshot.pid
126
137
 
127
138
# Default rsync args. All rsync commands have at least these options set.
128
139
#
135
146
 
136
147
# Default arguments for the "du" program (for disk space reporting).
137
148
# The GNU version of "du" is preferred. See the man page for more details.
 
149
# If your version of "du" doesn't support the -h flag, try -k flag instead.
138
150
#
139
151
#du_args        -csh
140
152
 
144
156
#
145
157
#one_fs         0
146
158
 
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.
151
 
#
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. 
 
163
 
164
#include        ???
 
165
#include        ???
 
166
#exclude        ???
 
167
#exclude        ???
 
168
 
 
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.
 
172
#
 
173
#include_file   /path/to/include/file
 
174
#exclude_file   /path/to/exclude/file
 
175
 
 
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).
 
181
#
 
182
#link_dest      0
 
183
 
 
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).
 
190
#
 
191
#sync_first     0
 
192
 
 
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).
 
196
#
 
197
#use_lazy_deletes       0
153
198
 
154
199
###############################
155
200
### BACKUP POINTS / SCRIPTS ###
159
204
backup  /home/          localhost/
160
205
backup  /etc/           localhost/
161
206
backup  /usr/local/     localhost/
 
207
#backup /var/log/rsnapshot              localhost/
162
208
#backup /etc/passwd     localhost/
163
209
#backup /home/foo/My Documents/         localhost/
164
210
#backup /foo/bar/       localhost/      one_fs=1, rsync_short_args=-urltvpog
168
214
# for these backup points you will need ssh installed on the 
169
215
# local machine as well as on the remote host
170
216
#
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
173
219
 
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/
176
222
 
177
223
# RSYNC.SAMBA.ORG
178
224
#backup rsync://rsync.samba.org/rsyncftp/       rsync.samba.org/rsyncftp/