Subversion Repositories zfs_utils

Rev

Rev 22 | 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
22 rodolico 15
  # keyPath: /media/keys/keyfile
20 rodolico 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
21 rodolico 20
  # name of the pool which the geli will make up
21
  # zpool: storage
20 rodolico 22
  # Drive list to decrypt. This is a list of drives as a space-separated string
23
  # drives: da0 da1
7 rodolico 24
target:
10 rodolico 25
  # root of replication on the target server
7 rodolico 26
  # the dataset to be backed up (keys from source/dataset)
27
  # are used as the target
10 rodolico 28
  dataset: storage/backup
20 rodolico 29
  # if set, and file exist on local machine, exit immediately to command line (no processing)
30
  # maintenanceFlag: /path/to/flagfile
21 rodolico 31
  # Number of seconds to wait for user to place maintenance flag on target
32
  # waitTime: 300
7 rodolico 33
source:
2 rodolico 34
  dataset:
20 rodolico 35
    # list of datasets to back up from source machine
36
    # key is name of dataset, value is location
37
    # full path is created by server:key/target
10 rodolico 38
    backups: storage
39
    iscsi: storage
40
    nfs: storage
17 rodolico 41
  # IP or FQDN of remote machine. Empty if source is local
20 rodolico 42
  server: IP_or_FQDN
14 rodolico 43
  # If set, gives a path to a file on source. If that file exists
44
  # exit immediately to command line (no processing)
20 rodolico 45
  # maintenanceFlag: /path/to/flagfile
10 rodolico 46
# whether to recursively grab child datasets
47
recurse: 1
23 rodolico 48
# leave target dataset unmounted
49
unmount: 1
50
# do full receive, ie rollback to most recent snap and remove any snaps 
51
# that do not exist on target basically, turn the backup server into a mirror
52
# of the data on the active server
53
mirror: 1
10 rodolico 54
# custom filter for datasets to replicate. 4 digits, a non-digit, 
55
# 2 digits, a non-digit, etc... (a YYYY-MM-DD_HH-MM timestamp)
56
filter: (\d{4}\D\d{2}\D\d{2}\D\d{2}\D\d{2})
20 rodolico 57
# bandwidth limit in BYTES per second, ie 40Mb/s is 5MB/s
13 rodolico 58
bandwidth: 5M
10 rodolico 59
# Verbosity level 1, only get the limited report from the replication
7 rodolico 60
verbose: 1
10 rodolico 61
# do not do anything, just show what would be done
7 rodolico 62
dryrun: 0
17 rodolico 63
# if non-zero, do not do most things, just tell what would have been done
7 rodolico 64
testing: 0
17 rodolico 65
# if set to 1, will shut down the machine after job complete
10 rodolico 66
shutdown: 0
12 rodolico 67
# if set to a valid path, will put stats in this file. No cleanup
68
# if not full path, will place in current directory
20 rodolico 69
# stats file is a CSV file with the following fields:
70
# startTime, endTime, elapsedTime, source, target, dataset, size, status
12 rodolico 71
stats: sync.stats.csv