restic command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
restic: command not found
or when using sudo you get the following error message
sudo: restic: command not found
Solutions to restic: command not found
How To Fix restic: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu restic is provided by restic package.
restic is:
restic is a program that does backups right and was designed with the following principles in mind: - Easy: Doing backups should be a frictionless process, otherwise you might be tempted to skip it. Restic should be easy to configure and use, so that, in the event of a data loss, you can just restore it. Likewise, restoring data should not be complicated. - Fast: Backing up your data with restic should only be limited by your network or hard disk bandwidth so that you can backup your files every day. Nobody does backups if it takes too much time. Restoring backups should only transfer data that is needed for the files that are to be restored, so that this process is also fast. - Verifiable: Much more important than backup is restore, so restic enables you to easily verify that all data can be restored. - Secure: Restic uses cryptography to guarantee confidentiality and integrity of your data. The location the backup data is stored is assumed not to be a trusted environment (e.g. a shared space where others like system administrators are able to access your backups). Restic is built to secure your data against such attackers. - Efficient: With the growth of data, additional snapshots should only take the storage of the actual increment. Even more, duplicate data should be de-duplicated before it is actually written to the storage back end to save precious backup space.
To fix this problem, we can install more using the command below.
sudo apt-get -y install restic
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install restic.
sudo apt -y install restic
Or if you have aptitude installed you can use the following command.
sudo aptitude install restic
Summary
In this tutorial we learn how to fix restic command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.