2017-11-10 12:48:41 +01:00
.. include :: ../global.rst.inc
2017-11-09 20:33:09 +01:00
2017-11-10 13:28:05 +01:00
.. _job:
2019-07-26 21:12:21 +02:00
Job Types in Detail
===================
2018-10-11 17:46:26 +02:00
.. _job-push:
2017-11-09 20:33:09 +01:00
2018-10-11 17:46:26 +02:00
Job Type `` push ``
-----------------
2017-11-10 12:48:41 +01:00
.. list-table ::
:widths: 20 80
:header-rows: 1
* - Parameter
- Comment
* - `` type ``
2018-10-11 17:46:26 +02:00
- = `` push ``
2017-11-10 12:48:41 +01:00
* - `` name ``
- unique name of the job
2018-10-11 17:46:26 +02:00
* - `` connect ``
- |connect-transport|
2017-11-12 14:11:48 +01:00
* - `` filesystems ``
2018-10-11 17:46:26 +02:00
- |filter-spec| for filesystems to be snapshotted and pushed to the sink
* - `` snapshotting ``
- |snapshotting-spec|
* - `` pruning ``
- |pruning-spec|
2017-11-09 20:33:09 +01:00
2018-10-11 17:46:26 +02:00
Example config: :sampleconf: `/push.yml`
2017-11-09 20:33:09 +01:00
2018-10-11 17:46:26 +02:00
.. _job-sink:
2017-11-09 20:33:09 +01:00
2018-10-11 17:46:26 +02:00
Job Type `` sink ``
-----------------
2017-11-10 12:48:41 +01:00
2018-10-11 17:46:26 +02:00
.. list-table ::
:widths: 20 80
:header-rows: 1
2017-11-10 12:48:41 +01:00
2018-10-11 17:46:26 +02:00
* - Parameter
- Comment
* - `` type ``
- = `` sink ``
* - `` name ``
- unique name of the job
* - `` serve ``
- |serve-transport|
* - `` root_fs ``
2019-03-21 12:51:39 +01:00
- ZFS filesystems are received to
`` $root_fs/$client_identity/$source_path ``
2017-11-09 20:33:09 +01:00
2018-10-11 17:46:26 +02:00
Example config: :sampleconf: `/sink.yml`
2017-11-09 20:33:09 +01:00
2017-11-09 21:17:09 +01:00
.. _job-pull:
2018-10-11 17:46:26 +02:00
Job Type `` pull ``
-----------------
2017-11-10 12:48:41 +01:00
.. list-table ::
:widths: 20 80
:header-rows: 1
* - Parameter
- Comment
* - `` type ``
- = `` pull ``
* - `` name ``
2018-10-11 17:46:26 +02:00
- unique name of the job
2017-11-10 12:48:41 +01:00
* - `` connect ``
- |connect-transport|
2018-10-11 17:46:26 +02:00
* - `` root_fs ``
2019-03-21 12:51:39 +01:00
- ZFS filesystems are received to
`` $root_fs/$source_path ``
2017-11-10 12:48:41 +01:00
* - `` interval ``
2019-03-16 14:24:05 +01:00
- | Interval at which to pull from the source job (e.g. `` 10m `` ).
| `` manual `` disables periodic pulling, replication then only happens on :ref: `wakeup <cli-signal-wakeup>` .
2018-10-11 17:46:26 +02:00
* - `` pruning ``
- |pruning-spec|
Example config: :sampleconf: `/pull.yml`
.. _job-source:
Job Type `` source ``
-------------------
2017-11-10 12:48:41 +01:00
.. list-table ::
:widths: 20 80
:header-rows: 1
* - Parameter
- Comment
* - `` type ``
2018-10-11 17:46:26 +02:00
- = `` source ``
2017-11-10 12:48:41 +01:00
* - `` name ``
2018-10-11 17:46:26 +02:00
- unique name of the job
* - `` serve ``
- |serve-transport|
* - `` filesystems ``
- |filter-spec| for filesystems to be snapshotted and exposed to connecting clients
* - `` snapshotting ``
- |snapshotting-spec|
2017-11-09 20:33:09 +01:00
2018-10-11 17:46:26 +02:00
Example config: :sampleconf: `/source.yml`
2017-11-10 12:48:41 +01:00
2018-11-21 16:59:46 +01:00
2018-10-11 17:46:26 +02:00
.. _replication-local:
2017-11-09 20:33:09 +01:00
2018-10-11 17:46:26 +02:00
Local replication
-----------------
2017-11-10 12:48:41 +01:00
2018-10-11 17:46:26 +02:00
If you have the need for local replication (most likely between two local storage pools), you can use the :ref: `local transport type <transport-local>` to connect a local push job to a local sink job.
2017-11-09 20:33:09 +01:00
2018-10-11 17:46:26 +02:00
Example config: :sampleconf: `/local.yml` .
2018-02-17 20:48:31 +01:00
2019-03-15 21:55:49 +01:00
.. _job-snap:
Job Type `` snap `` (snapshot & prune only)
-----------------------------------------
2019-03-17 20:54:47 +01:00
Job type that only takes snapshots and performs pruning on the local machine.
2018-11-21 16:59:46 +01:00
.. list-table ::
:widths: 20 80
:header-rows: 1
* - Parameter
- Comment
* - `` type ``
- = `` snap ``
* - `` name ``
- unique name of the job
* - `` filesystems ``
- |filter-spec| for filesystems to be snapshotted
* - `` snapshotting ``
- |snapshotting-spec|
* - `` pruning ``
- |pruning-spec|
Example config: :sampleconf: `/snap.yml`