Added trac handler, changed VSERVERS variable to be lowercase and
[matthijs/upstream/backupninja.git] / etc / backup.d / example.rdiff
1
2 ## passed directly to rdiff-backup
3 # options = --force
4
5 ## default is 0, but set to 19 if you want to lower the priority.
6 # nicelevel = 19
7
8 ## default is yes. set to no to skip the test if the remote host is alive
9 # testconnect = no
10
11 ######################################################
12 ## source section
13 ## (where the files to be backed up are coming from)
14
15 [source]
16
17 # an optional subdirectory below 'directory' (see [dest])
18 label = thishostname
19
20 # only local type is currently supported
21 type = local
22
23 # how many days of data to keep
24 # (you can also use the time format of rdiff-backup, e.g. 6D5h)
25 keep = 60
26
27 # a note about includes and excludes:
28 # all the excludes come after all the includes. 
29 # otherwise, the order is not taken into account.
30 # currently, you cannot do "include = /"
31
32 # files to include in the backup
33 # (supports globbing with '*')
34 include = /var/spool/cron/crontabs
35 include = /var/backups
36 include = /etc
37 include = /root
38 include = /home
39 include = /usr/local/bin
40 include = /usr/local/sbin
41 include = /var/lib/dpkg/status
42 include = /var/lib/dpkg/status-old
43
44 # If vservers = yes in /etc/backupninja.conf then the following variable can be used:
45 # vsinclude = <path>
46 # Any path specified in vsinclude is added to the include list for each vserver
47 # on the system.
48 # e.g. vsinclude = /home will backup the /home partition in every vserver
49 # on the system. If you have /vservers/foo, /vservers/bar and /vservers/baz
50 # this vsinclude will add to the include list /vservers/foo/home, 
51 # /vservers/bar/home and /vservers/baz/home
52 # Included vservers are derived from listing all vservers in $VROOTDIR (suggestions
53 # for improving this are encouraged).
54
55 # files to exclude from the backup
56 # (supports globbing with '*')
57 #exclude = /home/*/.gnupg
58
59 ######################################################
60 ## destination section
61 ## (where the files are copied to)
62
63 [dest]
64
65 # default is remote, if set to 'local' then
66 # ignore the 'host' and 'user' options.
67 type = remote
68
69 # put the backups under this directory
70 directory = /backups
71
72 # the machine which will receive the backups
73 host = backuphost
74
75 # make the files owned by this user
76 # note: you must be able to ssh backupuser@backhost
77 # without specifying a password (if type = remote).
78 user = backupuser
79