dup: now possible to use different keys to sign and encrypt
[matthijs/upstream/backupninja.git] / examples / example.dup
1
2 # passed directly to duplicity
3 #options = --verbosity 8
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 ## gpg section
13 ## (how to encrypt and optionnally sign the backups)
14
15 [gpg]
16
17 # passphrase needed to unlock the GnuPG key
18 # NB: do not quote it, and it should not contain any quote
19 password = a_very_complicated_passphrase
20
21 # default is no, for backward compatibility with backupninja <= 0.5.
22 # when set to yes, either signkey or encryptkey option must be set below.
23 sign = yes
24
25 # key ID used for data encryption.
26 # if not set, local root's default GnuPG key is used.
27 encryptkey = 04D9EA79
28
29 # key ID used for data signing.
30 # if not set, encryptkey will be used.
31 #signkey = 04D9EA79
32
33 ######################################################
34 ## source section
35 ## (where the files to be backed up are coming from)
36
37 [source]
38
39 # files to include in the backup
40 # (supports globbing with '*')
41 # BIG FAT WARNING
42 # Symlinks are not dereferenced. Moreover, an include line whose path
43 # contains, at any level, a symlink to a directory, will only have the
44 # symlink backed-up, not the target directory's content. Yes, you have
45 # to dereference yourself the symlinks, or to use 'mount --bind'
46 # instead.
47 # EXAMPLE
48 # Let's say /home is a symlink to /mnt/crypt/home ; the following line
49 # will only backup a "/home" symlink ; neither /home/user nor
50 # /home/user/Mail will be backed-up :
51 #   include = /home/user/Mail
52 # A workaround is to 'mount --bind /mnt/crypt/home /home' ; another
53 # one is to write :
54 #   include = /mnt/crypt/home/user/Mail
55
56 include = /var/spool/cron/crontabs
57 include = /var/backups
58 include = /etc
59 include = /root
60 include = /home
61 include = /usr/local/bin
62 include = /usr/local/sbin
63 include = /var/lib/dpkg/status
64 include = /var/lib/dpkg/status-old
65
66 # If vservers = yes in /etc/backupninja.conf then the following variables can
67 # be used:
68 # vsnames = all | <vserver1> <vserver2> ... (default = all)
69 # vsinclude = <path>
70 # Any path specified in vsinclude is added to the include list for each vserver
71 # listed in vsnames (or all if vsnames = all).
72 # E.g. vsinclude = /home will backup the /home partition in every vserver
73 # listed in vsnames. If you have vsnames = "foo bar baz", this vsinclude will
74 # add to the include list /vservers/foo/home, /vservers/bar/home and
75 # /vservers/baz/home.
76 # Vservers paths are derived from $VROOTDIR.
77
78 # rdiff-backup specific comment, TO ADAPT
79 # files to exclude from the backup
80 # (supports globbing with '*')
81 exclude = /home/*/.gnupg
82
83 ######################################################
84 ## destination section
85 ## (where the files are copied to)
86
87 [dest]
88
89 # perform an incremental backup? (default = yes)
90 # if incremental = no, perform a full backup in order to start a new backup set
91 #incremental = yes
92
93 # how many days of data to keep ; default is 60 days.
94 # (you can also use the time format of duplicity)
95 # 'keep = yes' means : do not delete old data, the remote host will take care of this
96 #keep = 60
97 #keep = yes
98
99 # bandwith limit, in kbit/s ; default is 0, i.e. no limit
100 #bandwidthlimit = 128
101
102 # passed directly to ssh and scp
103 sshoptions = -i /root/.ssh/id_dsa_duplicity
104
105 # put the backups under this directory
106 destdir = /backups
107
108 # the machine which will receive the backups
109 desthost = backuphost
110
111 # make the files owned by this user
112 # note: you must be able to ssh backupuser@backhost
113 # without specifying a password (if type = remote).
114 destuser = backupuser
115