FreeBSD Manual Pages
zelta-policy(8) System Manager's Manual zelta-policy(8) NAME zelta policy - Execute a list of zelta backup operations from a config- uration file. SYNOPSIS zelta policy [backup-override-options] [site|host|dataset] ... DESCRIPTION zelta policy reads from a simple YAML-style configuration file contain- ing parameters for zelta backup. Running zelta policy without parame- ters will iterate through the entire configuration file. Override op- tions for either zelta policy or zelta backup can be provided on the command line, for example, adding --json will cause that parameter to be passed to all zelta backup calls. Subsequent undashed parameters will be matched against a user-defined site name, host name, or dataset, and the backup processes will be limited to that group or item. Options In the zelta policy configuration file, you may override zelta backup's default parameters as defined in zelta-backup(8). The following para- meters are specific zelta policy: -backup-root=dataset The default target dataset for replication jobs. For example, if given backup_root of pool/Backups and a source dataset end- point ofhost01:tank01/vm/myOS, the target dataset will be pool/Backups/myOS. -prefix=num-elements Construct a target name using backup_root plus the indicated number of source elements. If given a prefix of 1 in the previ- ous example, the target will be pool/Backups/vm/myOS. -host_prefix Construct a target name using backup_root plus the source host- name. If enabled with the above example, the target will be pool/Backups/host01/vm/myOS. -push_to:hostname Change the default target endpoint from localhost to the indi- cated hostname. -retry=num-retries If replication fails, retry the indicated number of times. Note that the retry attempts are deferred until after all replciation jobs are attempted. -threads=num-threads Run the indicated number of concurrent backup jobs for each site. Backup Job Parameters Without additional parameters, zelta policy will run a zelta backup job for each dataset in the configuration file. Providing one of the fol- lowing will limit the backup job. site Run a backup job only for the site listed. A site is a user de- fined top-level parameter in the configuration file representing a list of one or more hosts. host Run a backup job only for the host listed. Hosts must be accessi- ble via SSH private-key authentication or localhost. dataset Run a backup job only for the dataset listed. Note this para- meter can match the source or target dataset, e.g., requesting zroot would run the replication for any matching dataset on any host. host:dataset Specify a source or backup dataset endpoint, equivalent to the paramemters of zelta backup. FILES For detailed documentation of the zelta policy configuraiton see zelta.conf.example. /usr/local/etc/zelta/zelta.conf The default configuration file locaiton. /usr/local/etc/zelta/zelta.env The default environment override file location. ENVIRONMENT For detailed documentation of the zelta environment variables see zelta.env.example. ZELTA_ETC The directory where zelta.conf and zelta.env will be loaded from. SEE ALSO cron(8), ssh(1), zelta(8), zelta-backup(8), zfs(8) AUTHORS Daniel J. Bell <bellta@belltower.it> WWW https://zelta.space zelta-policy(8)
NAME | SYNOPSIS | DESCRIPTION | FILES | ENVIRONMENT | SEE ALSO | AUTHORS | WWW
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=zelta-policy&sektion=8&manpath=FreeBSD+Ports+14.3.quarterly>
