rsnapshot.conf 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. #################################################
  2. # rsnapshot.conf - rsnapshot configuration file #
  3. #################################################
  4. # #
  5. # PLEASE BE AWARE OF THE FOLLOWING RULE: #
  6. # #
  7. # This file requires tabs between elements #
  8. # #
  9. #################################################
  10. ## CONFIG FILE VERSION
  11. config_version 1.2
  12. ## SNAPSHOT ROOT DIRECTORY
  13. # All snapshots will be stored under this root directory.
  14. #
  15. snapshot_root /mnt/YOUR_UUID_HERE
  16. # If no_create_root is enabled, rsnapshot will not automatically create the
  17. # snapshot_root directory. This is particularly useful if you are backing
  18. # up to removable media, such as a FireWire or USB drive.
  19. #
  20. #no_create_root 1
  21. ### External Deps ### {{{
  22. cmd_cp /bin/cp
  23. cmd_rm /bin/rm
  24. cmd_rsync /usr/bin/rsync
  25. cmd_ssh /usr/bin/ssh
  26. cmd_logger /usr/bin/logger
  27. cmd_du /usr/bin/du
  28. cmd_rsnapshot_diff /usr/bin/rsnapshot-diff
  29. # Specify the path to a script (and any optional arguments) to run right
  30. # before rsnapshot syncs files
  31. #
  32. #cmd_preexec /path/to/preexec/script
  33. # Specify the path to a script (and any optional arguments) to run right
  34. # after rsnapshot syncs files
  35. #
  36. #cmd_postexec /path/to/postexec/script
  37. # Paths to lvcreate, lvremove, mount and umount commands, for use with
  38. # Linux LVMs.
  39. #
  40. #linux_lvm_cmd_lvcreate /sbin/lvcreate
  41. #linux_lvm_cmd_lvremove /sbin/lvremove
  42. #linux_lvm_cmd_mount /bin/mount
  43. #linux_lvm_cmd_umount /bin/umount
  44. ### End External Deps ### }}}
  45. ### Intervals ### {{{
  46. ## Must be unique and in ascending order
  47. retain hourly 24
  48. retain daily 7
  49. retain weekly 4
  50. retain monthly 12
  51. retain yearly 5
  52. ### End Intercals ### }}}
  53. ### Global Opts ### {{{
  54. ############################################
  55. # GLOBAL OPTIONS #
  56. # All are optional, with sensible defaults #
  57. ############################################
  58. # Verbose level, 1 through 5.
  59. # 1 Quiet Print fatal errors only
  60. # 2 Default Print errors and warnings only
  61. # 3 Verbose Show equivalent shell commands being executed
  62. # 4 Extra Verbose Show extra verbose information
  63. # 5 Debug mode Everything
  64. #
  65. verbose 2
  66. # Same as "verbose" above, but controls the amount of data sent to the
  67. # logfile, if one is being used. The default is 3.
  68. # If you want the rsync output, you have to set it to 4
  69. #
  70. loglevel 3
  71. # If you enable this, data will be written to the file you specify. The
  72. # amount of data written is controlled by the "loglevel" parameter.
  73. #
  74. #logfile /var/log/rsnapshot.log
  75. # If enabled, rsnapshot will write a lockfile to prevent two instances
  76. # from running simultaneously (and messing up the snapshot_root).
  77. # If you enable this, make sure the lockfile directory is not world
  78. # writable. Otherwise anyone can prevent the program from running.
  79. #
  80. lockfile /var/run/rsnapshot.pid
  81. # Default rsync args. All rsync commands have at least these options set.
  82. #
  83. #rsync_short_args -a
  84. #rsync_long_args --delete --numeric-ids --relative --delete-excluded
  85. rsync_long_args -ev --rsync-path=/usr/bin/rsync
  86. # ssh has no args passed by default, but you can specify some here.
  87. #
  88. #ssh_args -i /home/backup/.ssh/id_rsa
  89. # If this is enabled, rsync won't span filesystem partitions within a
  90. # backup point. This essentially passes the -x option to rsync.
  91. # The default is 0 (off).
  92. #
  93. one_fs 0
  94. # The include and exclude parameters, if enabled, simply get passed directly
  95. # to rsync. If you have multiple include/exclude patterns, put each one on a
  96. # separate line. Please look up the --include and --exclude options in the
  97. # rsync man page for more details on how to specify file name patterns.
  98. #
  99. #include ???
  100. #exclude ???
  101. ## Root
  102. exclude /dev
  103. exclude /proc
  104. exclude /sys
  105. exclude /mnt/
  106. exclude /var/cache
  107. exclude /var/tmp/*
  108. exclude /media/
  109. exclude /run
  110. exclude /tmp
  111. ## Home dir
  112. exclude /home/demure/temp/*
  113. exclude /home/demure/vault
  114. exclude /home/demure/.config/chromium
  115. exclude /home/demure/.steam/steam/SteamApps/common
  116. exclude /home/demure/.icedove/.*\.default
  117. ## Generic
  118. exclude .cache
  119. exclude .mail
  120. exclude .thumbnails
  121. ### End Global Opts ### }}}
  122. ### Backup Points ### {{{
  123. ## For local cryptshotr
  124. backup / doom/
  125. ## For remote cryptshotr
  126. #backup backups@moving-computer-of-doom.local:/ doom/
  127. ### End Backup Points ### }}}