Advertisement
gacanepa

incr-with-hardlink.maildir

Nov 24th, 2014
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. ##
  2. ## This is an example maildir configuration file.
  3. ##
  4. ## The maildir handler slowly creates a backup of each user's
  5. ## mail file to a remote server. It is designed to be run with
  6. ## low overhead in terms of CPU and bandwidth, so it runs pretty
  7. ## slow. Hardlinking is used to save storage space. The actual
  8. ## mail file is stored within each snapshot directory.
  9. ##
  10. ## The basic algorithm is to rsync each mail file individually,
  11. ## and to use hard links for retaining historical data.
  12. ##
  13. ## We handle each mail file individually because it becomes very
  14. ## unweldy to hardlink and rsync many hundreds of thousands
  15. ## of files at once. It is much faster to take on smaller
  16. ## chunks at a time.
  17. ##
  18. ## Any mail file which is deleted from the source will be moved to
  19. ## "deleted" directory in the destination. It is up to you to
  20. ## periodically remove this directory or old maildirs in it.
  21. ##
  22. ## Note: This handler assumes that the remote shell is set to bash
  23. ##
  24. ## The defaults are useful in most cases, just make sure
  25. ## to configure the source and destination information
  26.  
  27. when = everyday at 23:00
  28.  
  29. ## each users maildir will contain these files:
  30. ## daily.1, daily.2, daily.3, daily.4, daily.5, weekly.1, weekly.2,
  31. ## weekly.3, monthly.1
  32. ## if keepdaily is 5, keepweekly is 3, and keepmonthly is 1
  33. keepdaily = 5
  34. keepweekly = 3
  35. keepmonthly = 1
  36.  
  37. # directory which contains all the maildirs
  38. srcdir = /var/mail
  39.  
  40. # the srcdir is expected to contain the following subdirectories. Each
  41. # of these will contain the user's Maildirs which start with these
  42. # letters
  43. srcsubdirs = 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z
  44.  
  45. # put the backups under this directory
  46. destdir = /backup/maildir
  47. desthost = dev1
  48.  
  49. # For the backup rotation to work, destuser must be able to run
  50. # arbitrary bash commands on the desthost.
  51. destuser = root
  52.  
  53. # For alternate ports from the default 22, specify here
  54. # destport = 4444
  55.  
  56. # If you need to specify an alternate ssh public key authentication file
  57. # do that here. Default: /root/.ssh/id_rsa
  58. # destid_file = /home/backupkeys/.ssh/maildirbackup_id_rsa
  59.  
  60. # If you need to specify other ssh configuration options, do that here
  61. # sshoptions = "-C -6"
  62.  
  63. # remove any maildirs from backup which might have been deleted
  64. remove = yes
  65.  
  66. # use a ssh-mux to reuse connections, see the following article
  67. # http://www.debian-administration.org/articles/290 for an example
  68. #multiconnection = notset
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement