borgmatic command not found

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

Introduction

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

borgmatic: command not found

or when using sudo you get the following error message

sudo: borgmatic: command not found

Solutions to borgmatic: command not found

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

In Ubuntu borgmatic is provided by borgmatic package.

borgmatic is:

borgmatic is a simple Python wrapper script for the Borg backup software that initiates a backup, prunes any old backups according to a retention policy, and validates backups for consistency. The script supports specifying your settings in a declarative configuration file rather than having to put them all on the command-line, and handles common errors.

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

sudo apt-get -y install borgmatic

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

You can also use apt command to install borgmatic.

sudo apt -y install borgmatic

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

sudo aptitude install borgmatic

Summary

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