1. ~ # cat /opt/etc/rsnapshot.conf
  2. #################################################
  3. # rsnapshot.conf - rsnapshot configuration file #
  4. #################################################
  5. # #
  6. # PLEASE BE AWARE OF THE FOLLOWING RULES: #
  7. # #
  8. # This file requires tabs between elements #
  9. # #
  10. # Directories require a trailing slash: #
  11. # right: /home/ #
  12. # wrong: /home #
  13. # #
  14. #################################################
  15.  
  16. #######################
  17. # CONFIG FILE VERSION #
  18. #######################
  19.  
  20. config_version 1.2
  21.  
  22. ###########################
  23. # SNAPSHOT ROOT DIRECTORY #
  24. ###########################
  25.  
  26. # All snapshots will be stored under this root directory.
  27. snapshot_root /DataVolume/backup/
  28.  
  29. # If no_create_root is enabled, rsnapshot will not automatically create the
  30. # snapshot_root directory. This is particularly useful if you are backing
  31. # up to removable media, such as a FireWire drive.
  32. #
  33. no_create_root 1
  34.  
  35. #################################
  36. # EXTERNAL PROGRAM DEPENDENCIES #
  37. #################################
  38.  
  39. # LINUX USERS: Be sure to uncomment "cmd_cp". This gives you extra features.
  40. # EVERYONE ELSE: Leave "cmd_cp" commented out for compatibility.
  41. #
  42. # See the README file or the man page for more details.
  43. #
  44. cmd_cp /opt/bin/cp
  45.  
  46. # uncomment this to use the rm program instead of the built-in perl routine.
  47. cmd_rm /opt/bin/rm
  48.  
  49. # rsync must be enabled for anything to work.
  50. cmd_rsync /opt/bin/rsync
  51.  
  52. # Uncomment this to enable remote ssh backups over rsync.
  53. cmd_ssh /opt/bin/ssh
  54.  
  55. # Comment this out to disable syslog support.
  56. #cmd_logger /path/to/logger
  57.  
  58. # Uncomment this to specify a path to "du" for disk usage checks.
  59. cmd_du /opt/bin/du
  60.  
  61. #########################################
  62. # BACKUP INTERVALS #
  63. # Must be unique and in ascending order #
  64. # i.e. hourly, daily, weekly, etc. #
  65. #########################################
  66.  
  67. interval hourly 6
  68. interval daily 7
  69. interval weekly 4
  70. interval monthly 3
  71.  
  72. ############################################
  73. # GLOBAL OPTIONS #
  74. # All are optional, with sensible defaults #
  75. ############################################
  76.  
  77. # If your version of rsync supports --link-dest, consider enable this.
  78. # This is the best way to support special files (FIFOs, etc) cross-platform.
  79. # The default is 0 (off).
  80. #
  81. link_dest 1
  82.  
  83. # Verbose level, 1 through 5.
  84. # 1 Quiet Print fatal errors only
  85. # 2 Default Print errors and warnings only
  86. # 3 Verbose Show equivalent shell commands being executed
  87. # 4 Extra Verbose Show extra verbose information
  88. # 5 Debug mode More than you care to know
  89. #
  90. verbose 5
  91.  
  92. # Same as "verbose" above, but controls the amount of data sent to the
  93. # logfile, if one is being used. The default is 3.
  94. loglevel 5
  95.  
  96. # If you enable this, data will be written to the file you specify. The
  97. # amount of data written is controlled by the "loglevel" parameter.
  98. logfile /opt/var/log/rsnapshot
  99.  
  100. # The include and exclude parameters, if enabled, simply get passed directly
  101. # to rsync. If you have multiple include/exclude patterns, put each one on a
  102. # seperate line. Please look up the --include and --exclude options in the
  103. # rsync man page for more details.
  104. #
  105. #include ???
  106. #include ???
  107. exclude Recycled/
  108. exclude Trash/
  109. exclude lost+found/
  110. exclude .gvfs/
  111. exclude Downloads/
  112. exclude .cache/
  113.  
  114. # The include_file and exclude_file parameters, if enabled, simply get
  115. # passed directly to rsync. Please look up the --include-from and
  116. # --exclude-from options in the rsync man page for more details.
  117. #
  118. #include_file /path/to/include/file
  119. #exclude_file /path/to/exclude/file
  120.  
  121. # Default rsync args. All rsync commands have at least these options set.
  122. #
  123. #rsync_short_args -a
  124. #rsync_long_args --delete --numeric-ids --relative --delete-excluded
  125.  
  126. # ssh has no args passed by default, but you can specify some here.
  127. #
  128. #ssh_args -p 22
  129.  
  130. # Default arguments for the "du" program (for disk space reporting).
  131. # The GNU version of "du" is preferred. See the man page for more details.
  132. #
  133. #du_args -csh
  134.  
  135. # If this is enabled, rsync won't span filesystem partitions within a
  136. # backup point. This essentially passes the -x option to rsync.
  137. # The default is 0 (off).
  138. #
  139. #one_fs 0
  140.  
  141. # If enabled, rsnapshot will write a lockfile to prevent two instances
  142. # from running simultaneously (and messing up the snapshot_root).
  143. # If you enable this, make sure the lockfile directory is not world
  144. # writable. Otherwise anyone can prevent the program from running.
  145. #
  146. lockfile /opt/var/run/rsnapshot.pid
  147.  
  148. ###############################
  149. ### BACKUP POINTS / SCRIPTS ###
  150. ###############################
  151.  
  152. #lama (netbook)
  153. backup simon@lama:/home/simon/ lama/
  154. #backup simon@lama:/etc/ lama/
  155. #zebra (desktop)
  156. backup simon@zebra:/home/simon/ zebra/
  157. #backup simon@zebra:/etc/ zebra/
  158.  
  159. # LOCALHOST
  160. #backup /home/ localhost/
  161. #backup /etc/ localhost/
  162. #backup /opt/etc/ localhost/
  163. #backup /usr/local/ localhost/
  164. #backup /etc/passwd localhost/
  165. #backup /home/foo/My Documents/ localhost/
  166. #backup /foo/bar/ localhost/ one_fs=1, rsync_short_args=-urltvpog
  167. #backup_script /usr/local/bin/backup_pgsql.sh localhost/postgres/
  168.  
  169. # EXAMPLE.COM
  170. #backup root@example.com:/home/ example.com/
  171. #backup root@example.com:/etc/ example.com/
  172.  
  173. # CVS.SOURCEFORGE.NET
  174. #backup_script /usr/local/bin/backup_rsnapshot_cvsroot.sh cvs.sourceforge.net/
  175.  
  176. # RSYNC.SAMBA.ORG
  177. #backup rsync://rsync.samba.org/rsyncftp/ rsync.samba.org/rsyncftp/