Scroll to navigation

SYNCOID(8) System Administration Utilities SYNCOID(8)

NAME

syncoid - a tool to facilitates the asynchronous incremental replication of ZFS filesystems.

DESCRIPTION

Usage:

syncoid [options]... SOURCE TARGET or syncoid [options]... SOURCE [[USER]@]HOST:TARGET or syncoid [options]... [[USER]@]HOST:SOURCE TARGET or syncoid [options]... [[USER]@]HOST:SOURCE [[USER]@]HOST:TARGET
Source ZFS dataset. Can be either local or remote
Target ZFS dataset. Can be either local or remote
Options:
Compresses data during transfer. Currently accepted options are gzip, pigz-fast, pigz-slow, zstd-fast, zstd-slow, lz4, xz, lzo (default) & none
Extra identifier which is included in the snapshot name. Can be used for replicating to multiple targets.
Also transfers child datasets
Skips syncing of the parent dataset. Does nothing without '--recursive' option.
Bandwidth limit in bytes/kbytes/etc per second on the source transfer
Bandwidth limit in bytes/kbytes/etc per second on the target transfer
Specify the mbuffer size (default: 16M), please refer to mbuffer(1) manual page.
Configure how pv displays the progress bar, default '-p -t -e -r -b'
Replicates using newest snapshot instead of intermediates
Does not create new snapshot, only transfers existing
Don't destroy created sync snapshots
Creates a zfs bookmark for the newest snapshot on the source after replication succeeds (only works with --no-sync-snap)
Adds a hold to the newest snapshot on the source and target after replication succeeds and removes the hold after the next successful replication. The hold name includes the identifier if set. This allows for separate holds in case of multiple targets

--preserve-recordsize Preserves the recordsize on initial sends to the target

--preserve-properties Preserves locally set dataset properties similar to the zfs send -p flag but this one will also work for encrypted datasets in non raw sends

Does not rollback snapshots on target (it probably requires a readonly target)

--delete-target-snapshots With this argument snapshots which are missing on the source will be destroyed on the target. Use this if you only want to handle snapshots on the source.

Exclude specific datasets which match the given regular expression. Can be specified multiple times

--sendoptions=OPTIONS Use advanced options for zfs send (the arguments are filtered as needed), e.g. syncoid --sendoptions="Lc e" sets zfs send -L -c -e ...

--recvoptions=OPTIONS Use advanced options for zfs receive (the arguments are filtered as needed), e.g. syncoid --recvoptions="ux recordsize o compression=lz4" sets zfs receive -u -x recordsize -o compression=lz4 ...

Specifies an ssh_config(5) file to be used
Specifies a ssh key to use to connect
Connects to remote on a particular port
Passes CIPHER to ssh to use a particular cipher set
Passes OPTION to ssh for remote usage. Can be specified multiple times
WARNING: DATA IS NOT ENCRYPTED. First address pair is for connecting to the target and the second for listening at the target
Prints this helptext
Prints the version number
Prints out a lot of additional information during a syncoid run
Currently does nothing
Suppresses non-error output
Dumps a list of snapshots during the run
Do not check command existence before attempting transfer. Not recommended
Don't use the ZFS resume feature if available
Don't try to recreate clones on target
Bypass the root check, for use with ZFS permission delegation
Remove target datasets recursively, if there are no matching snapshots/bookmarks (also overwrites conflicting named snapshots)
August 2023 syncoid 2.2.0