Advertisement
darioml

Untitled

Sep 5th, 2021
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.48 KB | None | 0 0
  1.  
  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 /mnt/poolUSB/backups/0001/0004
  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 /path/to/preexec/script
  78.  
  79. # Specify the path to a script (and any optional arguments) to run right
  80. # after rsnapshot syncs files
  81. #
  82. #cmd_postexec /path/to/postexec/script
  83.  
  84. #########################################
  85. # BACKUP INTERVALS #
  86. # Must be unique and in ascending order #
  87. # i.e. hourly, daily, weekly, etc. #
  88. #########################################
  89.  
  90. retain Daily 5
  91. retain Weekly 4
  92. retain Monthly 12
  93. retain Yearly 1
  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 4
  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 /usr/share/elkarbackup/var/log/tmp-c0001j0004.log
  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 /tmp/rsnapshot.0001_0004.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. rsync_long_args --delete --numeric-ids --relative --delete-excluded --stats
  131.  
  132. # ssh has no args passed by default, but you can specify some here.
  133. #
  134. ssh_args -o BatchMode=yes -o StrictHostKeyChecking=no
  135.  
  136. # Default arguments for the "du" program (for disk space reporting).
  137. # The GNU version of "du" is preferred. See the man page for more details.
  138. # If your version of "du" doesn't support the -h flag, try -k flag instead.
  139. #
  140. #du_args -csh
  141.  
  142. # If this is enabled, rsync won't span filesystem partitions within a
  143. # backup point. This essentially passes the -x option to rsync.
  144. # The default is 0 (off).
  145. #
  146. #one_fs 0
  147.  
  148. # The include and exclude parameters, if enabled, simply get passed directly
  149. # to rsync. If you have multiple include/exclude patterns, put each one on a
  150. # separate line. Please look up the --include and --exclude options in the
  151. # rsync man page for more details on how to specify file name patterns.
  152. #
  153. #include ???
  154. #include ???
  155. #exclude ???
  156. #exclude ???
  157.  
  158. # The include_file and exclude_file parameters, if enabled, simply get
  159. # passed directly to rsync. Please look up the --include-from and
  160. # --exclude-from options in the rsync man page for more details.
  161. #
  162. #include_file /path/to/include/file
  163. #exclude_file /path/to/exclude/file
  164.  
  165. # If your version of rsync supports --link-dest, consider enable this.
  166. # This is the best way to support special files (FIFOs, etc) cross-platform.
  167. # The default is 0 (off).
  168. #
  169. #link_dest 0
  170.  
  171. # When sync_first is enabled, it changes the default behaviour of rsnapshot.
  172. # Normally, when rsnapshot is called with its lowest interval
  173. # (i.e.: "rsnapshot hourly"), it will sync files AND rotate the lowest
  174. # intervals. With sync_first enabled, "rsnapshot sync" handles the file sync,
  175. # and all interval calls simply rotate files. See the man page for more
  176. # details. The default is 0 (off).
  177. #
  178. #sync_first 0
  179. sync_first 1
  180.  
  181. # If enabled, rsnapshot will move the oldest directory for each interval
  182. # to [interval_name].delete, then it will remove the lockfile and delete
  183. # that directory just before it exits. The default is 0 (off).
  184. #
  185. #use_lazy_deletes 0
  186.  
  187. ###############################
  188. ### BACKUP POINTS / SCRIPTS ###
  189. ###############################
  190.  
  191. # LOCALHOST
  192. backup root@192.168.8.101:/mnt/pool1/Cloud/NC-DATA/NC-DATA/mine/files .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement