Duplicity handler example file (example.dup) : uploaded for real, this time, and...
[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 bellow.
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 # rdiff-backup specific comment, TO ADAPT
62 # files to exclude from the backup
63 # (supports globbing with '*')
64 exclude = /home/*/.gnupg
65
66 ######################################################
67 ## destination section
68 ## (where the files are copied to)
69
70 [dest]
71
72 # how many days of data to keep ; default is 60 days.
73 # (you can also use the time format of duplicity)
74 # 'keep = yes' means : do not delete old data, the remote host will take care of this
75 #keep = 60
76 #keep = yes
77
78 ## passed directly to ssh/scp
79 sshoptions = -i /root/.ssh/id_dsa_duplicity
80
81 # put the backups under this directory
82 destdir = /backups
83
84 # the machine which will receive the backups
85 desthost = backuphost
86
87 # make the files owned by this user
88 # note: you must be able to ssh backupuser@backhost
89 # without specifying a password (if type = remote).
90 destuser = backupuser
91