Subversion Repositories zfs_utils

Rev

Rev 17 | Rev 21 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 rodolico 1
---
2
email:
3
  # From header on email reports
10 rodolico 4
  from: root@backup.example.org
2 rodolico 5
  # who to send report to (one address/alias only)
10 rodolico 6
  notify: user@example.com
2 rodolico 7
  # base subject line on e-mail
10 rodolico 8
  subject: 'Replicate Report'
20 rodolico 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
7 rodolico 22
target:
10 rodolico 23
  # root of replication on the target server
7 rodolico 24
  # the dataset to be backed up (keys from source/dataset)
25
  # are used as the target
10 rodolico 26
  dataset: storage/backup
20 rodolico 27
  # if set, and file exist on local machine, exit immediately to command line (no processing)
28
  # maintenanceFlag: /path/to/flagfile
7 rodolico 29
source:
2 rodolico 30
  dataset:
20 rodolico 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
10 rodolico 34
    backups: storage
35
    iscsi: storage
36
    nfs: storage
17 rodolico 37
  # IP or FQDN of remote machine. Empty if source is local
20 rodolico 38
  server: IP_or_FQDN
14 rodolico 39
  # If set, gives a path to a file on source. If that file exists
40
  # exit immediately to command line (no processing)
20 rodolico 41
  # maintenanceFlag: /path/to/flagfile
10 rodolico 42
# whether to recursively grab child datasets
43
recurse: 1
44
# custom filter for datasets to replicate. 4 digits, a non-digit, 
45
# 2 digits, a non-digit, etc... (a YYYY-MM-DD_HH-MM timestamp)
46
filter: (\d{4}\D\d{2}\D\d{2}\D\d{2}\D\d{2})
20 rodolico 47
# bandwidth limit in BYTES per second, ie 40Mb/s is 5MB/s
13 rodolico 48
bandwidth: 5M
10 rodolico 49
# Verbosity level 1, only get the limited report from the replication
7 rodolico 50
verbose: 1
10 rodolico 51
# do not do anything, just show what would be done
7 rodolico 52
dryrun: 0
17 rodolico 53
# if non-zero, do not do most things, just tell what would have been done
7 rodolico 54
testing: 0
17 rodolico 55
# if set to 1, will shut down the machine after job complete
10 rodolico 56
shutdown: 0
12 rodolico 57
# if set to a valid path, will put stats in this file. No cleanup
58
# if not full path, will place in current directory
20 rodolico 59
# stats file is a CSV file with the following fields:
60
# startTime, endTime, elapsedTime, source, target, dataset, size, status
12 rodolico 61
stats: sync.stats.csv