mylvmbackup command not found

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

Introduction

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

mylvmbackup: command not found

or when using sudo you get the following error message

sudo: mylvmbackup: command not found

Solutions to mylvmbackup: command not found

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

In Ubuntu mylvmbackup is provided by mylvmbackup package.

mylvmbackup is:

To perform a backup, mylvmbackup obtains a read lock on all tables and flushes all server caches to disk, makes an LVM snapshot of the volume containing the MySQL data directory, and unlocks the tables again. The snapshot process takes only a small amount of time. When it is done, the server can continue normal operations, while the actual file backup proceeds.

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

sudo apt-get -y install mylvmbackup

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

You can also use apt command to install mylvmbackup.

sudo apt -y install mylvmbackup

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

sudo aptitude install mylvmbackup

Summary

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