~ubuntu-branches/ubuntu/edgy/backupninja/edgy

« back to all changes in this revision

Viewing changes to etc/backup.d/example.dup

  • Committer: Bazaar Package Importer
  • Author(s): Micah Anderson
  • Date: 2005-09-28 10:49:15 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050928104915-rdyr4ufq32lp2y7f
Tags: 0.8-2
Fix for insecure temporary file creation

Show diffs side-by-side

added added

removed removed

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