ldap,mysql,pgsql: use bash pipefail option so that failed dumps are reported as such
[matthijs/upstream/backupninja.git] / examples / example.rsync
1 #
2 # rsync handler example file
3 #
4 # Mandatory options are uncommented with sugested values
5 # Other options are commented out with their default values
6 #
7 # Note: You dont need to manually specify vservers using "include = /vservers".
8 #       They're automatically backuped if vserver is set to "yes" on you backupninja.conf.
9
10 [general]
11
12 # rsync log file
13 #log = /var/log/backup/rsync.log
14
15 # partition device where the backup lives
16 # just use this option if your data is backed up in a separate partition and
17 # you want backupninja to fsck it; this option will just be used if fscheck
18 # (see below) is set to 'yes'
19 #partition = 
20
21 # backup partition mountpoint or backup main folder
22 # this doesn't need to be a real partition, but should be at least the
23 # main folder where the backup is being stored
24 mountpoint = /mnt/backup
25
26 # folder relative do mountpoint where the backup should be stored
27 backupdir = myserver
28
29 # number of backup increments (min = 5)
30 days = 7 
31
32 # set to 1 if fsck should run on partition after the backup is made
33 #fscheck = 
34
35 # set to 1 if $partition is mounted read-only
36 #read_only = 
37
38 # use this if you need a lockfile to be kept during backup execution
39 # this is an useful feature in case you have some tasks that should
40 # know if the backup is running or not
41 #lockfile = 
42
43 # rsync command nice level
44 #nicelevel = 0
45
46 # set to "yes" if your system isnt handling timestamps correctly
47 #enable_mv_timestamp_bug = no
48
49 # temp folder
50 #tmp = /tmp
51
52 [source]
53
54 # where the data to be backed up is (local or remote)
55 #from = local
56
57 # if remote source, specify the hostname or IP
58 #host =
59
60 # when "yes", test the connection for a remote source before backup
61 #testconnect = no
62
63 # include folder on backup
64 include = /etc
65 include = /var
66
67 # exclude folder on backup
68 exclude = exclude_folder1
69 exclude = exclude_folder2
70
71 # exlude some vserver from backup
72 # this is used only if vservers = yes on backupninja.conf
73 exclude_vserver = excluded_vserver1
74 exclude_vserver = excluded_vserver2
75
76 # ssh command line (remote only)
77 #ssh = ssh
78
79 # rsync program
80 # it defaults to $RSYNC value from backupninja.conf
81 #rsync = $RSYNC
82
83 # rsync command options
84 #rsync_options = "-av --delete"
85
86 # when set to 1, use numeric ids instead of user/group mappings on rsync
87 #numericids = 0
88
89 # if set to 1, compress data on rsync (remote source only)
90 #compress = 0
91
92 # set a badnwidth limit in kbps (remote source only)
93 #bandwidthlimit =
94
95 # remote rsync program (remote source only)
96 #remote_rsync = rsync
97
98 # This section is used to stop and start services that should be turned of
99 # during the backup procedure.
100 #
101 #[services]
102 #
103 # absolute path where scripts are located
104 #initscripts =
105 #
106 # script name to be stoped at the begining of the backup and started at its end
107 #service =
108
109 # You can also specify some system comands if you don't want the default system values
110 # by enabling the section below.
111 #
112 #[system]
113 #
114 # rm command
115 #rm = rm
116 #
117 # cp command
118 #cp = cp
119 #
120 # touch command
121 #touch = touch
122 #
123 # mv command
124 #mv = mv
125 #
126 # fsck command
127 #fsck = fsck