1 #################################################
2 # rsnapshot.conf - rsnapshot configuration file #
3 #################################################
5 # PLEASE BE AWARE OF THE FOLLOWING RULES: #
7 # This file requires tabs between elements #
9 # Directories require a trailing slash: #
13 #################################################
15 #######################
16 # CONFIG FILE VERSION #
17 #######################
21 ###########################
22 # SNAPSHOT ROOT DIRECTORY #
23 ###########################
25 # All snapshots will be stored under this root directory.
26 snapshot_root /opt/var/rsnapshot/
28 # If no_create_root is enabled, rsnapshot will not automatically create the
29 # snapshot_root directory. This is particularly useful if you are backing
30 # up to removable media, such as a FireWire drive.
34 #################################
35 # EXTERNAL PROGRAM DEPENDENCIES #
36 #################################
38 # LINUX USERS: Be sure to uncomment "cmd_cp". This gives you extra features.
39 # EVERYONE ELSE: Leave "cmd_cp" commented out for compatibility.
41 # See the README file or the man page for more details.
45 # uncomment this to use the rm program instead of the built-in perl routine.
48 # rsync must be enabled for anything to work.
49 cmd_rsync /opt/bin/rsync
51 # Uncomment this to enable remote ssh backups over rsync.
54 # Comment this out to disable syslog support.
55 #cmd_logger /path/to/logger
57 # Uncomment this to specify a path to "du" for disk usage checks.
60 #########################################
62 # Must be unique and in ascending order #
63 # i.e. hourly, daily, weekly, etc. #
64 #########################################
71 ############################################
73 # All are optional, with sensible defaults #
74 ############################################
76 # If your version of rsync supports --link-dest, consider enable this.
77 # This is the best way to support special files (FIFOs, etc) cross-platform.
78 # The default is 0 (off).
82 # Verbose level, 1 through 5.
83 # 1 Quiet Print fatal errors only
84 # 2 Default Print errors and warnings only
85 # 3 Verbose Show equivalent shell commands being executed
86 # 4 Extra Verbose Show extra verbose information
87 # 5 Debug mode More than you care to know
91 # Same as "verbose" above, but controls the amount of data sent to the
92 # logfile, if one is being used. The default is 3.
95 # If you enable this, data will be written to the file you specify. The
96 # amount of data written is controlled by the "loglevel" parameter.
97 logfile /opt/var/log/rsnapshot
99 # The include and exclude parameters, if enabled, simply get passed directly
100 # to rsync. If you have multiple include/exclude patterns, put each one on a
101 # seperate line. Please look up the --include and --exclude options in the
102 # rsync man page for more details.
109 # The include_file and exclude_file parameters, if enabled, simply get
110 # passed directly to rsync. Please look up the --include-from and
111 # --exclude-from options in the rsync man page for more details.
113 #include_file /path/to/include/file
114 #exclude_file /path/to/exclude/file
116 # Default rsync args. All rsync commands have at least these options set.
119 #rsync_long_args --delete --numeric-ids --relative --delete-excluded
121 # ssh has no args passed by default, but you can specify some here.
125 # Default arguments for the "du" program (for disk space reporting).
126 # The GNU version of "du" is preferred. See the man page for more details.
130 # If this is enabled, rsync won't span filesystem partitions within a
131 # backup point. This essentially passes the -x option to rsync.
132 # The default is 0 (off).
136 # If enabled, rsnapshot will write a lockfile to prevent two instances
137 # from running simultaneously (and messing up the snapshot_root).
138 # If you enable this, make sure the lockfile directory is not world
139 # writable. Otherwise anyone can prevent the program from running.
141 lockfile /opt/var/run/rsnapshot.pid
143 ###############################
144 ### BACKUP POINTS / SCRIPTS ###
145 ###############################
148 #backup /home/ localhost/
149 backup /etc/ localhost/
150 backup /opt/etc/ localhost/
151 #backup /usr/local/ localhost/
152 #backup /etc/passwd localhost/
153 #backup /home/foo/My Documents/ localhost/
154 #backup /foo/bar/ localhost/ one_fs=1, rsync_short_args=-urltvpog
155 #backup_script /usr/local/bin/backup_pgsql.sh localhost/postgres/
158 #backup root@example.com:/home/ example.com/
159 #backup root@example.com:/etc/ example.com/
161 # CVS.SOURCEFORGE.NET
162 #backup_script /usr/local/bin/backup_rsnapshot_cvsroot.sh cvs.sourceforge.net/
165 #backup rsync://rsync.samba.org/rsyncftp/ rsync.samba.org/rsyncftp/