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