mirror of
https://github.com/zrepl/zrepl.git
synced 2025-03-01 16:51:39 +01:00
docs: tutorial: fix indentation of sample config
This commit is contained in:
parent
b576253ea8
commit
8249a5d1b7
@ -64,22 +64,22 @@ We define a **pull job** named ``pull_app-srv`` in the |mainconfig|: ::
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- name: pull_app-srv
|
- name: pull_app-srv
|
||||||
type: pull
|
type: pull
|
||||||
connect:
|
connect:
|
||||||
type: ssh+stdinserver
|
type: ssh+stdinserver
|
||||||
host: app-srv.example.com
|
host: app-srv.example.com
|
||||||
user: root
|
user: root
|
||||||
port: 22
|
port: 22
|
||||||
identity_file: /etc/zrepl/ssh/identity
|
identity_file: /etc/zrepl/ssh/identity
|
||||||
interval: 10m
|
interval: 10m
|
||||||
mapping: {
|
mapping: {
|
||||||
"<":"storage/zrepl/pull/app-srv"
|
"<":"storage/zrepl/pull/app-srv"
|
||||||
}
|
}
|
||||||
initial_repl_policy: most_recent
|
initial_repl_policy: most_recent
|
||||||
snapshot_prefix: zrepl_pull_backup_
|
snapshot_prefix: zrepl_pull_backup_
|
||||||
prune:
|
prune:
|
||||||
policy: grid
|
policy: grid
|
||||||
grid: 1x1h(keep=all) | 24x1h | 35x1d | 6x30d
|
grid: 1x1h(keep=all) | 24x1h | 35x1d | 6x30d
|
||||||
|
|
||||||
The ``connect`` section instructs the zrepl daemon to use the ``stdinserver`` transport:
|
The ``connect`` section instructs the zrepl daemon to use the ``stdinserver`` transport:
|
||||||
``backup-srv`` will connect to the specified SSH server and expect ``zrepl stdinserver CLIENT_IDENTITY`` instead of the shell on the other side.
|
``backup-srv`` will connect to the specified SSH server and expect ``zrepl stdinserver CLIENT_IDENTITY`` instead of the shell on the other side.
|
||||||
@ -105,20 +105,20 @@ We define a corresponding **source job** named ``pull_backup`` in the |mainconfi
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- name: pull_backup
|
- name: pull_backup
|
||||||
type: source
|
type: source
|
||||||
serve:
|
serve:
|
||||||
type: stdinserver
|
type: stdinserver
|
||||||
client_identity: backup-srv.example.com
|
client_identity: backup-srv.example.com
|
||||||
filesystems: {
|
filesystems: {
|
||||||
"zroot/var/db": "ok",
|
"zroot/var/db": "ok",
|
||||||
"zroot/usr/home<": "ok",
|
"zroot/usr/home<": "ok",
|
||||||
"zroot/usr/home/paranoid": "!",
|
"zroot/usr/home/paranoid": "!",
|
||||||
}
|
}
|
||||||
snapshot_prefix: zrepl_pull_backup_
|
snapshot_prefix: zrepl_pull_backup_
|
||||||
interval: 10m
|
interval: 10m
|
||||||
prune:
|
prune:
|
||||||
policy: grid
|
policy: grid
|
||||||
grid: 1x1d(keep=all)
|
grid: 1x1d(keep=all)
|
||||||
|
|
||||||
|
|
||||||
The ``serve`` section corresponds to the ``connect`` section in the configuration of ``backup-srv``.
|
The ``serve`` section corresponds to the ``connect`` section in the configuration of ``backup-srv``.
|
||||||
|
Loading…
Reference in New Issue
Block a user