Skip to content

Install and configure Sanoid for automatic ZFS snapshots.

License

Notifications You must be signed in to change notification settings

radek-sprta/ansible-role-sanoid

Repository files navigation

Ansible Role: Sanoid Ansible Role GitHub tag (latest SemVer) Ansible Role Ansible Role Pipeline status

Install and configure Sanoid for automatic ZFS snapshots.

Role Variables

List of variables from defaults/main.yml.

sanoid_package: sanoid

Package to install. You should not need to override this.

sanoid_templates:
  - name: example
    frequently: 0
    hourly: 24
    daily: 7
    monthly: 12
    yearly: 0
    autosnap: "yes"
    autoprune: "yes"

Dictionary of Sanoid backup templates. The example showcases available options. The quotes around "yes" are required.

sanoid_datasets:
  - name: example
    use_template: example
    recursive: "yes"
    process_children_only: "yes"
    yearly: 1

Dictionary of datasets to take snapshots of. The example showcases some of the available options. In addition, options from sanoid_templates are available as well. The quotes around "yes" are required.

Example Playbook

- hosts: all

  vars:
    - name: tank
      process_children_only: "yes"
      recursive: "yes"
      use_template: example

  roles:
     - radek_sprta.sanoid

License

MIT

Author Information

Radek Sprta [email protected]

About

Install and configure Sanoid for automatic ZFS snapshots.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages