How To Install xfsdump on CentOS 7

In this tutorial we learn how to install xfsdump on CentOS 7. xfsdump is Administrative utilities for the XFS filesystem

Introduction

In this tutorial we learn how to install xfsdump on CentOS 7.

What is xfsdump

The xfsdump package contains xfsdump, xfsrestore and a number of other utilities for administering 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.

We can use yum or dnf to install xfsdump on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install xfsdump.

Install xfsdump on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install xfsdump using yum by running the following command:

sudo yum -y install xfsdump

Install xfsdump on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install xfsdump using dnf by running the following command:

sudo dnf -y install xfsdump

How To Uninstall xfsdump on CentOS 7

To uninstall only the xfsdump package we can use the following command:

sudo dnf remove xfsdump

References

Summary

In this tutorial we learn how to install xfsdump on CentOS 7 using yum and dnf.