zfSnap command not found

In this troubleshooting guide we learn how to fix zfSnap command not found error message

Introduction

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

zfSnap: command not found

or when using sudo you get the following error message

sudo: zfSnap: command not found

Solutions to zfSnap: command not found

How To Fix zfSnap: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu zfSnap is provided by zfsnap package.

zfsnap is:

zfSnap is a simple sh script to make rolling zfs snapshots with cron. The main advantage of zfSnap is it’s written in 100% pure /bin/sh so it doesn’t require any additional software to run.

zfSnap keeps all information about snapshot in snapshot name.

zfs snapshot names are in the format of Timestamp–TimeToLive.

Timestamp includes the date and time when the snapshot was created and TimeToLive (TTL) is the amount of time for the snapshot to stay alive before it’s ready for deletion.

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

sudo apt-get -y install zfsnap

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

You can also use apt command to install zfsnap.

sudo apt -y install zfsnap

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

sudo aptitude install zfsnap

Summary

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