74453ec8ce11888f66685373c4e717ba8d5b8f17
[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 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, the password variable is used to unlock the GnuPG
23 ##     private key used for signing; otherwise, 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 below; if you want to use
33 # two different keys for encryption and signing, you must also set the signkey
34 # variable below.
35 # default is no, for backwards 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: neither quote this, nor should it contain any quotes
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
59 include = /var/spool/cron/crontabs
60 include = /var/backups
61 include = /etc
62 include = /root
63 include = /home
64 include = /usr/local/bin
65 include = /usr/local/sbin
66 include = /var/lib/dpkg/status
67 include = /var/lib/dpkg/status-old
68
69 # If vservers = yes in /etc/backupninja.conf then the following variables can
70 # be used:
71 # vsnames = all | <vserver1> <vserver2> ... (default = all)
72 # vsinclude = <path>
73 # vsinclude = <path>
74 # ...
75 # Any path specified in vsinclude is added to the include list for each vserver
76 # listed in vsnames (or all if vsnames = all, which is the default).
77 #
78 # For example, vsinclude = /home will backup the /home directory in every
79 # vserver listed in vsnames. If you have 'vsnames = foo bar baz', this
80 # vsinclude will add to the include list /vservers/foo/home, /vservers/bar/home
81 # and /vservers/baz/home.
82 # Vservers paths are derived from $VROOTDIR.
83 # vsinclude supports globbing with '*'.
84
85 # files to exclude from the backup
86 # (supports globbing with '*')
87 exclude = /home/*/.gnupg
88
89 ######################################################
90 ## destination section
91 ## (where the files are copied to)
92
93 [dest]
94
95 # perform an incremental backup? (default = yes)
96 # if incremental = no, perform a full backup in order to start a new backup set
97 #incremental = yes
98
99 # how many days of data to keep ; default is 60 days.
100 # (you can also use the time format of duplicity)
101 # 'keep = yes' means : do not delete old data, the remote host will take care of this
102 #keep = 60
103 #keep = yes
104
105 # bandwith limit, in kbit/s ; default is 0, i.e. no limit
106 #bandwidthlimit = 128
107
108 # passed directly to ssh and scp
109 sshoptions = -i /root/.ssh/id_dsa_duplicity
110
111 # put the backups under this directory
112 destdir = /backups
113
114 # the machine which will receive the backups
115 desthost = backuphost
116
117 # make the files owned by this user
118 # note: you must be able to ssh backupuser@backhost
119 # without specifying a password (if type = remote).
120 destuser = backupuser
121