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