xfsrestore command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
xfsrestore: command not found
or when using sudo you get the following error message
sudo: xfsrestore: command not found
Solutions to xfsrestore: command not found
How To Fix xfsrestore: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu xfsrestore is provided by xfsdump package.
xfsdump is:
The xfsdump package contains xfsdump, xfsrestore and a number of other administrative utilities for managing XFS filesystems.
xfsdump examines files in a filesystem, determines which need to be backed up, and copies those files to a specified disk, tape or other storage medium. It uses XFS-specific directives for optimizing the dump of an XFS filesystem, and also knows how to backup XFS extended attributes. Backups created with xfsdump are “endian safe” and can thus be transfered between Linux machines of different architectures and also between IRIX machines.
xfsrestore performs the inverse function of xfsdump; it can restore a full backup of a filesystem. Subsequent incremental backups can then be layered on top of the full backup. Single files and directory subtrees may be restored from full or partial backups.
To fix this problem, we can install more using the command below.
sudo apt-get -y install xfsdump
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install xfsdump.
sudo apt -y install xfsdump
Or if you have aptitude installed you can use the following command.
sudo aptitude install xfsdump
Summary
In this tutorial we learn how to fix xfsrestore command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.