Subversion Repositories zfs_utils

Rev

Rev 7 | Rev 12 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7 Rev 10
Line 1... Line 1...
1
---
1
---
2
email:
2
email:
3
  # From header on email reports
3
  # From header on email reports
4
  from: root@example.com
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: tech@example.com
6
  notify: user@example.com
7
  # base subject line on e-mail
7
  # base subject line on e-mail
8
  subject: 'Server Sync Status'
8
  subject: 'Replicate Report'
9
target:
9
target:
10
  # root of replication on the local server
10
  # root of replication on the target server
11
  # the dataset to be backed up (keys from source/dataset)
11
  # the dataset to be backed up (keys from source/dataset)
12
  # are used as the target
12
  # are used as the target
13
  targetDataset: pool/backup
13
  dataset: storage/backup
14
  # fully qualiifed path where encryption key should go
-
 
15
  encryptionKeyPath: /tmp/keyfile
-
 
16
  # if this file exists, will place us in maintenance mode
-
 
17
  maintenanceFlag: /tmp/maintenance
-
 
18
  # how long to wait for maintenance flag to show up
-
 
19
  waitTime: 300
-
 
20
source:
14
source:
21
  # whether to recursively grab child datasets
-
 
22
  recursive: 1
-
 
23
  # custom filter for datasets to replicate. 4 digits, a non-digit, 
-
 
24
  # 2 digits, a non-digit, etc... (a YYYY-MM-DD_HH-MM timestamp)
-
 
25
  filter: (\d{4}\D\d{2}\D\d{2}\D\d{2}\D\d{2})
-
 
26
  # list of datasets to back up from target machine
15
  # list of datasets to back up from source machine
27
  # key is name of dataset, value is location
16
  # key is name of dataset, value is location
28
  # full path is created by ip:value/target
17
  # full path is created by ip:key/target
29
  dataset:
18
  dataset:
30
    files-backup: storage/Backups
19
    backups: storage
31
    iscsi-backup: storage/Backups
20
    iscsi: storage
32
    nextcloud-backups: storage/Backups
21
    nfs: storage
33
  # IP or FQDN of remote machine
22
  # IP or FQDN of remote machine
34
  server: 192.168.1.1
23
  server: nas
35
  # where the encryption key is stored on remote machine
24
# whether to recursively grab child datasets
-
 
25
recurse: 1
36
  encryptionKeyPath: /root/keyfilename
26
# custom filter for datasets to replicate. 4 digits, a non-digit, 
37
  # location of maintenance flag on remote machine
27
# 2 digits, a non-digit, etc... (a YYYY-MM-DD_HH-MM timestamp)
38
  maintenanceFlag: /root/maintenance
28
filter: (\d{4}\D\d{2}\D\d{2}\D\d{2}\D\d{2})
39
# bandwidth limit to 40Mb/s (5MB/s)
29
# bandwidth limit to 40Mb/s (5MB/s)
40
bandwidth: 5M
30
bandwidth: 50M
41
# Only get the limited report from the replication
31
# Verbosity level 1, only get the limited report from the replication
42
verbose: 1
32
verbose: 1
43
# do not do a dry run
33
# do not do anything, just show what would be done
44
dryrun: 0
34
dryrun: 0
45
# testing non-zero, just print things
35
# if non-zero, do not do most things
46
testing: 0
36
testing: 0
-
 
37
# if set to 1, will shut down the machine after job complete (air gap)
-
 
38
shutdown: 0