This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 21st, 2010  |  syntax: None  |  size: 6.99 KB  |  views: 112  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. servidor:~# cat /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. #
  28. snapshot_root   /media/backup/
  29.  
  30. # If no_create_root is enabled, rsnapshot will not automatically create the
  31. # snapshot_root directory. This is particularly useful if you are backing
  32. # up to removable media, such as a FireWire or USB drive.
  33. #
  34. no_create_root  1
  35.  
  36. #################################
  37. # EXTERNAL PROGRAM DEPENDENCIES #
  38. #################################
  39.  
  40. # LINUX USERS:   Be sure to uncomment "cmd_cp". This gives you extra features.
  41. # EVERYONE ELSE: Leave "cmd_cp" commented out for compatibility.
  42. #
  43. # See the README file or the man page for more details.
  44. #
  45. cmd_cp          /bin/cp
  46.  
  47. # uncomment this to use the rm program instead of the built-in perl routine.
  48. #
  49. cmd_rm          /bin/rm
  50.  
  51. # rsync must be enabled for anything to work. This is the only command that
  52. # must be enabled.
  53. #
  54. cmd_rsync       /usr/bin/rsync
  55.  
  56. # Uncomment this to enable remote ssh backups over rsync.
  57. #
  58. cmd_ssh /usr/bin/ssh
  59.  
  60. # Comment this out to disable syslog support.
  61. #
  62. cmd_logger      /usr/bin/logger
  63.  
  64. # Uncomment this to specify the path to "du" for disk usage checks.
  65. # If you have an older version of "du", you may also want to check the
  66. # "du_args" parameter below.
  67. #
  68. #cmd_du         /usr/bin/du
  69.  
  70. # Uncomment this to specify the path to rsnapshot-diff.
  71. #
  72. #cmd_rsnapshot_diff     /usr/local/bin/rsnapshot-diff
  73.  
  74. # Specify the path to a script (and any optional arguments) to run right
  75. # before rsnapshot syncs files
  76. #
  77. #cmd_preexec    /usr/bin/mount_backup
  78.  
  79. # Specify the path to a script (and any optional arguments) to run right
  80. # after rsnapshot syncs files
  81. #
  82. #cmd_postexec   /usr/bin/umount_backup
  83.  
  84. #########################################
  85. #           BACKUP INTERVALS            #
  86. # Must be unique and in ascending order #
  87. # i.e. hourly, daily, weekly, etc.      #
  88. #########################################
  89.  
  90. #interval       hourly  6
  91. interval        daily   7
  92. #interval       weekly  4
  93. interval        monthly 2
  94.  
  95. ############################################
  96. #              GLOBAL OPTIONS              #
  97. # All are optional, with sensible defaults #
  98. ############################################
  99.  
  100. # Verbose level, 1 through 5.
  101. # 1     Quiet           Print fatal errors only
  102. # 2     Default         Print errors and warnings only
  103. # 3     Verbose         Show equivalent shell commands being executed
  104. # 4     Extra Verbose   Show extra verbose information
  105. # 5     Debug mode      Everything
  106. #
  107. verbose         2
  108.  
  109. # Same as "verbose" above, but controls the amount of data sent to the
  110. # logfile, if one is being used. The default is 3.
  111. #
  112. loglevel        3
  113.  
  114. # If you enable this, data will be written to the file you specify. The
  115. # amount of data written is controlled by the "loglevel" parameter.
  116. #
  117. logfile /media/backup/rsnapshot
  118.  
  119. # If enabled, rsnapshot will write a lockfile to prevent two instances
  120. # from running simultaneously (and messing up the snapshot_root).
  121. # If you enable this, make sure the lockfile directory is not world
  122. # writable. Otherwise anyone can prevent the program from running.
  123. #
  124. lockfile        /var/run/rsnapshot.pid
  125.  
  126. # Default rsync args. All rsync commands have at least these options set.
  127. #
  128. #rsync_short_args       -a
  129. #rsync_long_args        --delete --numeric-ids --relative --delete-excluded
  130.  
  131. # ssh has no args passed by default, but you can specify some here.
  132. #
  133. #ssh_args       -p 22
  134.  
  135. # Default arguments for the "du" program (for disk space reporting).
  136. # The GNU version of "du" is preferred. See the man page for more details.
  137. # If your version of "du" doesn't support the -h flag, try -k flag instead.
  138. #
  139. #du_args        -csh
  140.  
  141. # If this is enabled, rsync won't span filesystem partitions within a
  142. # backup point. This essentially passes the -x option to rsync.
  143. # The default is 0 (off).
  144. #
  145. #one_fs         0
  146.  
  147. # The include and exclude parameters, if enabled, simply get passed directly
  148. # to rsync. If you have multiple include/exclude patterns, put each one on a
  149. # separate line. Please look up the --include and --exclude options in the
  150. # rsync man page for more details on how to specify file name patterns.
  151. #
  152. #include        ???
  153. #include        ???
  154. #exclude        ???
  155. #exclude        ???
  156.  
  157. # The include_file and exclude_file parameters, if enabled, simply get
  158. # passed directly to rsync. Please look up the --include-from and
  159. # --exclude-from options in the rsync man page for more details.
  160. #
  161. #include_file   /path/to/include/file
  162. #exclude_file   /path/to/exclude/file
  163.  
  164. # If your version of rsync supports --link-dest, consider enable this.
  165. # This is the best way to support special files (FIFOs, etc) cross-platform.
  166. # The default is 0 (off).
  167. #
  168. #link_dest      0
  169.  
  170. # When sync_first is enabled, it changes the default behaviour of rsnapshot.
  171. # Normally, when rsnapshot is called with its lowest interval
  172. # (i.e.: "rsnapshot hourly"), it will sync files AND rotate the lowest
  173. # intervals. With sync_first enabled, "rsnapshot sync" handles the file sync,
  174. # and all interval calls simply rotate files. See the man page for more
  175. # details. The default is 0 (off).
  176. #
  177. #sync_first     0
  178.  
  179. # If enabled, rsnapshot will move the oldest directory for each interval
  180. # to [interval_name].delete, then it will remove the lockfile and delete
  181. # that directory just before it exits. The default is 0 (off).
  182. #
  183. #use_lazy_deletes       0
  184.  
  185. ###############################
  186. ### BACKUP POINTS / SCRIPTS ###
  187. ###############################
  188.  
  189. # LOCALHOST
  190. #backup /home/          localhost/
  191. #backup /etc/           localhost/
  192. #backup /usr/local/     localhost/
  193. #backup /var/log/rsnapshot              localhost/
  194. #backup /etc/passwd     localhost/
  195. #backup /home/foo/My Documents/         localhost/
  196. #backup /foo/bar/       localhost/      one_fs=1, rsync_short_args=-urltvpog
  197. #backup_script          /usr/local/bin/backup_pgsql.sh  localhost/postgres/
  198.  
  199. # praiseweb
  200. #backup_script  /bin/date "+ backup of example.com started at %c"       unused1
  201. #backup root@example.com:/home/ example.com/    +rsync_long_args=--bwlimit=16,exclude=core
  202. #backup root@example.com:/etc/  example.com/    exclude=mtab,exclude=core
  203. #backup_script  ssh root@example.com "mysqldump -A > /var/db/dump/mysql.sql"
  204. backup  root@XXX.XXX.XXX.XXX:/var/backup/db/daily       praisewebDB/
  205. backup  root@XXX.XXX.XXX.XXX:/var/backup/webs/daily     praisewebWEB/
  206. #backup_script  /bin/date "+ backup of example.com ended at %c" unused2
  207.  
  208. # CVS.SOURCEFORGE.NET
  209. #backup_script  /usr/local/bin/backup_rsnapshot_cvsroot.sh      rsnapshot.cvs.sourceforge.net/
  210.  
  211. # RSYNC.SAMBA.ORG
  212. #backup rsync://rsync.samba.org/rsyncftp/       rsync.samba.org/rsyncftp/
clone this paste RAW Paste Data