Move logrotate to autotools template
[matthijs/upstream/backupninja.git] / docs / examples / example.rdiff
1 ##
2 ## This is an example rdiff-backup configuration file.
3 ## The defaults are useful in most cases, just make sure
4 ## to configure the destination host and user.
5 ##
6
7 ## passed directly to rdiff-backup
8 # options = --force
9
10 ## default is 0, but set to 19 if you want to lower the priority.
11 # nicelevel = 19
12
13 ## default is yes. set to no to skip the test if the remote host is alive
14 # testconnect = no
15
16 ######################################################
17 ## source section
18 ## (where the files to be backed up are coming from)
19
20 [source]
21
22 # an optional subdirectory below 'directory' (see [dest])
23 label = thishostname
24
25 # type can be "local" or "remote"
26 type = local
27
28 # only use if '[source] type = remote'
29 #host = srchost
30 #user = srcuser
31
32 # how many days of data to keep
33 # (you can also use the time format of rdiff-backup, e.g. 6D5h)
34 keep = 60
35
36 # a note about includes and excludes:
37 # All the excludes come after all the includes. The order is
38 # not otherwise taken into account. Symlinks are backed up as
39 # symlinks, they are not followed! This means you must specify
40 # the real canonical path of a directory for it to actually
41 # get included.
42
43 # files to include in the backup
44 # (supports globbing with '*')
45 include = /var/spool/cron/crontabs
46 include = /var/backups
47 include = /etc
48 include = /root
49 include = /home
50 include = /usr/local/bin
51 include = /usr/local/sbin
52 include = /var/lib/dpkg/status
53 include = /var/lib/dpkg/status-old
54
55 # If vservers = yes in /etc/backupninja.conf then vsinclude
56 # may be used. Any path specified in vsinclude is added to
57 # the include list for each vserver on the system. e.g.
58 # vsinclude = /home will backup /vservers/v1/home,
59 # /vservers/v2/home, etc.
60
61 # files to exclude from the backup
62 # (supports globbing with '*')
63 #exclude = /home/*/.gnupg
64
65 ######################################################
66 ## destination section
67 ## (where the files are copied to)
68
69 [dest]
70
71 # type can be "local" or "remote"
72 type = remote
73
74 # put the backups under this directory
75 directory = /backups
76
77 # the machine which will receive the backups.
78 # only use if "[dest] type = remote"
79 host = backuphost
80
81 # make the files owned by this user. you must be able to
82 # `su -c ssh backupuser@backhost` without specifying a password.
83 # only use if "[dest] type = remote"
84 user = backupuser
85