476cf5a7cce4bedfde00836c147a60966c05949f
[matthijs/upstream/backupninja.git] / etc / backup.d / example.rdiff
1
2 ## passed directly to rdiff-backup
3 # options = --force
4
5 ######################################################
6 ## source section
7 ## (where the files to be backed up are coming from)
8
9 [source]
10
11 # an optional subdirectory below 'directory' (see [dest])
12 label = thishostname
13
14 # only local type is currently supported
15 type = local
16
17 # how many days of data to keep
18 # (you can also use the time format of rdiff-backup, e.g. 6D5h)
19 keep = 60
20
21 # files to include in the backup
22 # (supports globbing with '*')
23 include = /var/spool/cron/crontabs
24 include = /var/backups
25 include = /etc
26 include = /root
27 include = /home
28 include = /usr/local/bin
29 include = /usr/local/sbin
30 include = /var/lib/dpkg/status
31 include = /var/lib/dpkg/status-old
32
33 # files to exclude from the backup
34 # (supports globbing with '*')
35 #exclude = /home/*/.gnupg
36
37 ######################################################
38 ## destination section
39 ## (where the files are copied to)
40
41 [dest]
42
43 # only remote type is currently supported
44 type = remote
45
46 # the machine which will receive the backups
47 host = backuphost
48
49 # put the backups under this directory
50 directory = /backups
51
52 # make the files owned by this user
53 # note: you must be able to ssh backupuser@backhost
54 # without specifying a password 
55 user = backupuser
56