42 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
global:
 | 
						|
  logging:
 | 
						|
    - type: syslog
 | 
						|
      format: logfmt
 | 
						|
      level: warn
 | 
						|
  monitoring:
 | 
						|
    - type: prometheus
 | 
						|
      listen: ':9811'
 | 
						|
 | 
						|
jobs:
 | 
						|
  - name: k6zrepl_offsite_dest
 | 
						|
    type: pull
 | 
						|
    recv:
 | 
						|
      placeholder:
 | 
						|
        encryption: off # https://zrepl.github.io/configuration/sendrecvoptions.html#placeholders
 | 
						|
#      bandwidth_limit:
 | 
						|
#        max: 9 MiB # 75.5 Mbps
 | 
						|
    connect:
 | 
						|
      type: tcp
 | 
						|
      address: '193.40.103.250:35566' # firewall whitelisted to offsite
 | 
						|
    root_fs: {{offsite_dataset}}
 | 
						|
    interval: 10m # start interval, does nothing when no snapshots to recv
 | 
						|
    replication:
 | 
						|
      concurrency:
 | 
						|
        steps: 2
 | 
						|
    pruning:
 | 
						|
      keep_sender: # offsite does not dictate nas snapshot policy
 | 
						|
        - type: regex
 | 
						|
          regex: '.*'
 | 
						|
      keep_receiver:
 | 
						|
        # Keep non-zrepl snapshots
 | 
						|
        - negate: true
 | 
						|
          type: regex
 | 
						|
          regex: "^zrepl_"
 | 
						|
 | 
						|
        - type: last_n
 | 
						|
          regex: "^zrepl_"
 | 
						|
          count: 4
 | 
						|
        - type: grid
 | 
						|
          regex: "^zrepl_"
 | 
						|
          grid: 4x1h | 6x4h | 3x1d | 2x7d
 |