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