generate-borgmatic-config command not found

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

Introduction

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

generate-borgmatic-config: command not found

or when using sudo you get the following error message

sudo: generate-borgmatic-config: command not found

Solutions to generate-borgmatic-config: command not found

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

In Ubuntu generate-borgmatic-config 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 generate-borgmatic-config command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.