| Line 4... |
Line 4... |
| 4 |
from: root@backup.example.org
|
4 |
from: root@backup.example.org
|
| 5 |
# who to send report to (one address/alias only)
|
5 |
# who to send report to (one address/alias only)
|
| 6 |
notify: user@example.com
|
6 |
notify: user@example.com
|
| 7 |
# base subject line on e-mail
|
7 |
# base subject line on e-mail
|
| 8 |
subject: 'Replicate Report'
|
8 |
subject: 'Replicate Report'
|
| - |
|
9 |
geli:
|
| - |
|
10 |
# if set, will use geli to decrypt source dataset
|
| - |
|
11 |
# this is the path to the keyfile on the source server
|
| - |
|
12 |
# path is [server:]/path/on/server/filename
|
| - |
|
13 |
# local key path (where to put the key on the local machine)
|
| - |
|
14 |
# this path should include the filename
|
| - |
|
15 |
# keyPath: /media/keys
|
| - |
|
16 |
# server we will get key from
|
| - |
|
17 |
# server: IP_or_FQDN
|
| - |
|
18 |
# remote server path (where to get the key on the remote machine)
|
| - |
|
19 |
# remoteKeyPath: /path/to/keyfile
|
| - |
|
20 |
# Drive list to decrypt. This is a list of drives as a space-separated string
|
| - |
|
21 |
# drives: da0 da1
|
| 9 |
target:
|
22 |
target:
|
| 10 |
# root of replication on the target server
|
23 |
# root of replication on the target server
|
| 11 |
# the dataset to be backed up (keys from source/dataset)
|
24 |
# the dataset to be backed up (keys from source/dataset)
|
| 12 |
# are used as the target
|
25 |
# are used as the target
|
| 13 |
dataset: storage/backup
|
26 |
dataset: storage/backup
|
| 14 |
# if set, assume target dataset is encrypted and we need
|
- |
|
| 15 |
# to decrypt with this key. path is
|
- |
|
| 16 |
# [server:]/path/on/server/filename
|
- |
|
| 17 |
# THIS IS BROKEN, DON'T USE
|
- |
|
| 18 |
# encryptionKeyPath: 0
|
- |
|
| 19 |
# If set, gives a path to a file on target. If that file exists
|
- |
|
| 20 |
# exit immediately to command line (no processing)
|
27 |
# if set, and file exist on local machine, exit immediately to command line (no processing)
|
| 21 |
maintenanceFlag:
|
28 |
# maintenanceFlag: /path/to/flagfile
|
| 22 |
source:
|
29 |
source:
|
| 23 |
# list of datasets to back up from source machine
|
- |
|
| 24 |
# key is name of dataset, value is location
|
- |
|
| 25 |
# full path is created by ip:key/target
|
- |
|
| 26 |
dataset:
|
30 |
dataset:
|
| - |
|
31 |
# list of datasets to back up from source machine
|
| - |
|
32 |
# key is name of dataset, value is location
|
| - |
|
33 |
# full path is created by server:key/target
|
| 27 |
backups: storage
|
34 |
backups: storage
|
| 28 |
iscsi: storage
|
35 |
iscsi: storage
|
| 29 |
nfs: storage
|
36 |
nfs: storage
|
| 30 |
# IP or FQDN of remote machine. Empty if source is local
|
37 |
# IP or FQDN of remote machine. Empty if source is local
|
| 31 |
server: nas
|
38 |
server: IP_or_FQDN
|
| 32 |
# If set, gives a path to a file on source. If that file exists
|
39 |
# If set, gives a path to a file on source. If that file exists
|
| 33 |
# exit immediately to command line (no processing)
|
40 |
# exit immediately to command line (no processing)
|
| 34 |
maintenanceFlag:
|
41 |
# maintenanceFlag: /path/to/flagfile
|
| 35 |
# whether to recursively grab child datasets
|
42 |
# whether to recursively grab child datasets
|
| 36 |
recurse: 1
|
43 |
recurse: 1
|
| 37 |
# custom filter for datasets to replicate. 4 digits, a non-digit,
|
44 |
# custom filter for datasets to replicate. 4 digits, a non-digit,
|
| 38 |
# 2 digits, a non-digit, etc... (a YYYY-MM-DD_HH-MM timestamp)
|
45 |
# 2 digits, a non-digit, etc... (a YYYY-MM-DD_HH-MM timestamp)
|
| 39 |
filter: (\d{4}\D\d{2}\D\d{2}\D\d{2}\D\d{2})
|
46 |
filter: (\d{4}\D\d{2}\D\d{2}\D\d{2}\D\d{2})
|
| 40 |
# bandwidth limit to 40Mb/s (5MB/s)
|
47 |
# bandwidth limit in BYTES per second, ie 40Mb/s is 5MB/s
|
| 41 |
bandwidth: 5M
|
48 |
bandwidth: 5M
|
| 42 |
# Verbosity level 1, only get the limited report from the replication
|
49 |
# Verbosity level 1, only get the limited report from the replication
|
| 43 |
verbose: 1
|
50 |
verbose: 1
|
| 44 |
# do not do anything, just show what would be done
|
51 |
# do not do anything, just show what would be done
|
| 45 |
dryrun: 0
|
52 |
dryrun: 0
|
| Line 47... |
Line 54... |
| 47 |
testing: 0
|
54 |
testing: 0
|
| 48 |
# if set to 1, will shut down the machine after job complete
|
55 |
# if set to 1, will shut down the machine after job complete
|
| 49 |
shutdown: 0
|
56 |
shutdown: 0
|
| 50 |
# if set to a valid path, will put stats in this file. No cleanup
|
57 |
# if set to a valid path, will put stats in this file. No cleanup
|
| 51 |
# if not full path, will place in current directory
|
58 |
# if not full path, will place in current directory
|
| - |
|
59 |
# stats file is a CSV file with the following fields:
|
| - |
|
60 |
# startTime, endTime, elapsedTime, source, target, dataset, size, status
|
| 52 |
stats: sync.stats.csv
|
61 |
stats: sync.stats.csv
|