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