zsnapd-trigger command not found

In this troubleshooting guide we learn how to fix zsnapd-trigger command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

zsnapd-trigger: command not found

or when using sudo you get the following error message

sudo: zsnapd-trigger: command not found

Solutions to zsnapd-trigger: command not found

How To Fix zsnapd-trigger: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu zsnapd-trigger is provided by zsnapd package.

zsnapd is:

Python daemon that manages ZFS snapshots and send/receive backup. Based on zfs-snap-manager.

  • Remote ZFS snapshoting/aging wnd replication back to central ZFS backup server. Only need to install zfs-utils, zsnapd-rcmd (for secure) remote ssh key login and sshd on client, and use root ssh key based log in.
  • Has connectivity test to skip scheduled actions when the remote site cannot be contacted. Actually quite useful for ZFS backing up laptops. Reachability failures are logged of course!
  • Uses Python3
  • Native systemd support.
  • Configuration is stored in configuration files with the ini file format. Configuration .d parts directories also present
  • Triggers the configured actions based on time or a ‘.trigger’ file present in the dataset’s mountpoint.
  • Can take snapshots (with a yyyymmddhhmm timestamp format).
  • Can replicate snapshots to/from other nodes.
  • Push based when the replication source has access to the replication target.
  • Pull based when the replication source has no access to the replication target. Typically when you don’t want to give all nodes access to the backup/replication target.
  • Cleans all snapshots with the yyyymmddhh timestamp schmea format based on a GFS schema (Grandfather, Father, Son). Timestamp evaluation based on actual ZFS snapshot creation metadata.
  • Supports pre and post commands.

To fix this problem, we can install more using the command below.

sudo apt-get -y install zsnapd

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install zsnapd.

sudo apt -y install zsnapd

Or if you have aptitude installed you can use the following command.

sudo aptitude install zsnapd

Summary

In this tutorial we learn how to fix zsnapd-trigger command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.