Advertisement
Guest User

Untitled

a guest
Aug 21st, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.29 KB | None | 0 0
  1. #################################################
  2. # rsnapshot.conf - rsnapshot configuration file #
  3. #################################################
  4. # #
  5. # PLEASE BE AWARE OF THE FOLLOWING RULES: #
  6. # #
  7. # This file requires tabs between elements #
  8. # #
  9. # Directories require a trailing slash: #
  10. # right: /home/ #
  11. # wrong: /home #
  12. # #
  13. #################################################
  14.  
  15. #######################
  16. # CONFIG FILE VERSION #
  17. #######################
  18.  
  19. config_version 1.2
  20.  
  21. ###########################
  22. # SNAPSHOT ROOT DIRECTORY #
  23. ###########################
  24.  
  25. # All snapshots will be stored under this root directory.
  26. #
  27. snapshot_root /home/u9391/rsnapshot/
  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 or USB 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 /bin/cp
  45.  
  46. # uncomment this to use the rm program instead of the built-in perl routine.
  47. #
  48. cmd_rm /bin/rm
  49.  
  50. # rsync must be enabled for anything to work. This is the only command that
  51. # must be enabled.
  52. #
  53. cmd_rsync /usr/bin/rsync
  54.  
  55. # Uncomment this to enable remote ssh backups over rsync.
  56. #
  57. #cmd_ssh /usr/bin/ssh
  58.  
  59. # Comment this out to disable syslog support.
  60. #
  61. cmd_logger /usr/bin/logger
  62.  
  63. # Uncomment this to specify the path to "du" for disk usage checks.
  64. # If you have an older version of "du", you may also want to check the
  65. # "du_args" parameter below.
  66. #
  67. #cmd_du /usr/bin/du
  68.  
  69. # Uncomment this to specify the path to rsnapshot-diff.
  70. #
  71. #cmd_rsnapshot_diff /usr/bin/rsnapshot-diff
  72.  
  73. # Specify the path to a script (and any optional arguments) to run right
  74. # before rsnapshot syncs files
  75. #
  76. #cmd_preexec /path/to/preexec/script
  77.  
  78. # Specify the path to a script (and any optional arguments) to run right
  79. # after rsnapshot syncs files
  80. #
  81. #cmd_postexec /path/to/postexec/script
  82.  
  83. # Paths to lvcreate, lvremove, mount and umount commands, for use with
  84. # Linux LVMs.
  85. #
  86. #linux_lvm_cmd_lvcreate /sbin/lvcreate
  87. #linux_lvm_cmd_lvremove /sbin/lvremove
  88. #linux_lvm_cmd_mount /bin/mount
  89. #linux_lvm_cmd_umount /bin/umount
  90.  
  91. #########################################
  92. # BACKUP INTERVALS #
  93. # Must be unique and in ascending order #
  94. # i.e. hourly, daily, weekly, etc. #
  95. #########################################
  96.  
  97. #retain hourly 6
  98. retain daily 6
  99. retain weekly 4
  100. retain monthly 2
  101.  
  102. ############################################
  103. #
  104. verbose 2
  105.  
  106. # Same as "verbose" above, but controls the amount of data sent to the
  107. # logfile, if one is being used. The default is 3.
  108. #
  109. loglevel 3
  110.  
  111. # If you enable this, data will be written to the file you specify. The
  112. # amount of data written is controlled by the "loglevel" parameter.
  113. #
  114. #logfile /var/log/rsnapshot.log
  115.  
  116. # If enabled, rsnapshot will write a lockfile to prevent two instances
  117. # from running simultaneously (and messing up the snapshot_root).
  118. # If you enable this, make sure the lockfile directory is not world
  119. # writable. Otherwise anyone can prevent the program from running.
  120. #
  121. lockfile /var/run/rsnapshot.pid
  122.  
  123. # By default, rsnapshot check lockfile, check if PID is running
  124. # and if not, consider lockfile as stale, then start
  125. # Enabling this stop rsnapshot if PID in lockfile is not running
  126. #
  127. #stop_on_stale_lockfile 0
  128.  
  129. # Default rsync args. All rsync commands have at least these options set.
  130. #
  131. #rsync_short_args -a
  132. #rsync_long_args --delete --numeric-ids --relative --delete-excluded
  133.  
  134. # ssh has no args passed by default, but you can specify some here.
  135. #
  136. #ssh_args -p 22
  137.  
  138. # Default arguments for the "du" program (for disk space reporting).
  139. # The GNU version of "du" is preferred. See the man page for more details.
  140. # If your version of "du" doesn't support the -h flag, try -k flag instead.
  141. #
  142. #du_args -csh
  143.  
  144. # If this is enabled, rsync won't span filesystem partitions within a
  145. # backup point. This essentially passes the -x option to rsync.
  146. # The default is 0 (off).
  147. #
  148. #one_fs 0
  149.  
  150. # The include and exclude parameters, if enabled, simply get passed directly
  151. # to rsync. If you have multiple include/exclude patterns, put each one on a
  152. # separate line. Please look up the --include and --exclude options in the
  153. # rsync man page for more details on how to specify file name patterns.
  154. #
  155. #
  156. #include ???
  157. #include ???
  158. exclude /srv/jail/proc
  159. exclude /srv/jail/dev
  160.  
  161. # The include_file and exclude_file parameters, if enabled, simply get
  162. # passed directly to rsync. Please look up the --include-from and
  163. # --exclude-from options in the rsync man page for more details.
  164. #
  165. #include_file /path/to/include/file
  166. #exclude_file /path/to/exclude/file
  167.  
  168. # If your version of rsync supports --link-dest, consider enable this.
  169. # This is the best way to support special files (FIFOs, etc) cross-platform.
  170. # The default is 0 (off).
  171. #
  172. #link_dest 0
  173.  
  174. # When sync_first is enabled, it changes the default behaviour of rsnapshot.
  175. # Normally, when rsnapshot is called with its lowest interval
  176. # (i.e.: "rsnapshot hourly"), it will sync files AND rotate the lowest
  177. # intervals. With sync_first enabled, "rsnapshot sync" handles the file sync,
  178. # and all interval calls simply rotate files. See the man page for more
  179. # details. The default is 0 (off).
  180. #
  181. #sync_first 0
  182.  
  183. # If enabled, rsnapshot will move the oldest directory for each interval
  184. # to [interval_name].delete, then it will remove the lockfile and delete
  185. # that directory just before it exits. The default is 0 (off).
  186. #
  187. #use_lazy_deletes 0
  188.  
  189. # Number of rsync re-tries. If you experience any network problems or
  190. # network card issues that tend to cause ssh to crap-out with
  191. # "Corrupted MAC on input" errors, for example, set this to a non-zero
  192. # value to have the rsync operation re-tried
  193. #
  194. #rsync_numtries 0
  195.  
  196. # LVM parameters. Used to backup with creating lvm snapshot before backup
  197. # and removing it after. This should ensure consistency of data in some special
  198. # cases
  199. #
  200. # LVM snapshot(s) size (lvcreate --size option).
  201. #
  202. #linux_lvm_snapshotsize 100M
  203.  
  204. # Name to be used when creating the LVM logical volume snapshot(s).
  205. #
  206. # Name to be used when creating the LVM logical volume snapshot(s).
  207. #
  208. #linux_lvm_snapshotname rsnapshot
  209.  
  210. # Path to the LVM Volume Groups.
  211. #
  212. #linux_lvm_vgpath /dev
  213.  
  214. # Mount point to use to temporarily mount the snapshot(s).
  215. #
  216. #linux_lvm_mountpath /path/to/mount/lvm/snapshot/during/backup
  217.  
  218. ###############################
  219. ### BACKUP POINTS / SCRIPTS ###
  220. ###############################
  221.  
  222. # LOCALHOST
  223. backup /srv/jail/ u9391@91.232.127.100:/home/u9391
  224. #backup /etc/ localhost/
  225. #backup /usr/local/ localhost/
  226. #backup /var/log/rsnapshot localhost/
  227. #backup /etc/passwd localhost/
  228. #backup /home/foo/My Documents/ localhost/
  229. #backup /foo/bar/ localhost/ one_fs=1, rsync_short_args=-urltvpog
  230. #backup_script /usr/local/bin/backup_pgsql.sh localhost/postgres/
  231. # You must set linux_lvm_* parameters below before using lvm snapshots
  232. #backup lvm://vg0/xen-home/ lvm-vg0/xen-home/
  233.  
  234. # EXAMPLE.COM
  235. #backup_script /bin/date "+ backup of example.com started at %c" unused1
  236. #backup root@example.com:/home/ example.com/ +rsync_long_args=--bwlimit=16,exclude=core
  237. #backup root@example.com:/etc/ example.com/ exclude=mtab,exclude=core
  238. #backup_script ssh root@example.com "mysqldump -A > /var/db/dump/mysql.sql" unused2
  239. #backup root@example.com:/var/db/dump/ example.com/
  240. #backup_script /bin/date "+ backup of example.com ended at %c" unused9
  241.  
  242. # CVS.SOURCEFORGE.NET
  243. #backup_script /usr/local/bin/backup_rsnapshot_cvsroot.sh rsnapshot.cvs.sourceforge.net/
  244.  
  245. # RSYNC.SAMBA.ORG
  246. #backup rsync://rsync.samba.org/rsyncftp/ rsync.samba.org/rsyncftp/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement