Cantech Knowledge Base

Your Go-To Hosting Resource

How to Restore Backup of a File or Directory via WHM?

Introduction

As a cPanel server administrator, you are in full control of any backups of all hosted sites. WebHost Manager provides a fast way to restore a backup for any selected file or specific directory. This is a critical feature that will help in restoring accidentally deleted files, reverting changes, as well as repairing any issues caused due to a bad update. This control ensures minimal downtime and a high level of data safety for all your users.

Understanding File and Directory Restoration

File and Directory Restoration is a specific feature within WHM’s backup system. It allows the administrators to target and restore individual items rather than the entire cPanel account. A backup is merely a copy of data at a given time.

This targeted restoration process is more efficient and faster compared to a full account restore since it does not overwrite the entire account when only a single file requires repair. The system finds the specific backup snapshot for the chosen file path and copies it back into the user’s active directory. Such granular control accelerates the quick resolution of minor data loss cases.

How to Restore a File or Directory Backup in WHM

Have a hassle-free restoration procedure using the dedicated File and Directory Restoration tools. These are steps that can be followed in order to select the exact user, path, and backup date needed for the recovery. Restore lost or corrupted data quickly with the steps below.

Step 1: Log in to Your WHM Root Account

To begin with, open the control panel as a root. Enter your root username and password. Only the root account has the server-wide permissions to access and restore backups for all users.

Step 2: Choose the Backup Option

Go into the primary WHM navigation menu. Select the Backup option. This section contains all the tools related to backup settings and data recovery.

Step 3: Select file and directory restoration

Select the tool that restores individual files or directories. By clicking the File and Directory Restoration link, you open the interface specifically designed for restoring single files or directories.

Step 4: User and View Backups

Determine the account that contains the file to restore. Select the desired user account from the provided list and then click the ‘View Backups’ button to proceed to the next stage of the restoration process.

Step 5: Select the File Path Option

There are two options to choose the file to restore:

Choice A – Enter the Path: Select the Enter a path option, then enter the complete file or directory path into the text box, and click Show Backups.

Option B – Browse: Select the Browse files and directories option, navigate through the file structure, and click Show Backups for the specific item you want to restore.

Step 6: Start the Restoration

Select the specific backup instance you want to use. The system shows the list of available backups for that file or directory, usually dated by when the backup was taken.

Click the restore button beside the desired backup version. WHM will begin the restoration process, copying the backup version back to the selected user’s account.

Cantech’s Robust Backup Solutions

Cantech provides full automated backup solutions to protect all data hosted on our servers. Our system administrators frequently utilize these WHM tools to ensure that services are reliable and quickly recoverable. We believe accessible and reliable backups are a core part of superior hosting.

Automated Backups: We automatically take snapshots of all accounts and files so that you can always have access to the latest data, which can be restored in case of a failure.

Point-in-Time Recovery: Our system allows you to recover from multiple points in time, giving you flexibility with older or damaged data.

Real-time Assistance: Our technical support is available to assist instantly with file or directory recovery and minimize the effects of data issues.

Conclusion

The File and Directory Restoration feature provides the WHM administrators with exact control over their backup data. It allows you the fast and precisely recover lost or damaged files without requiring a full account restore. Being familiar with the usage of this tool ensures that you can effectively maintain the integrity and availability of all data hosted on your cPanel server. This option is important to manage the servers efficiently and reliably.

Frequently Asked Questions (FAQs)

Does this restoration process create a new backup?

No. It merely restores an existing backup file from the server’s storage location and copies it back to the active user’s directory, overwriting the current live file.

Can a cPanel user do this restoration themselves?

No, the File and Directory Restoration feature within WHM is reserved for server administrators with root privileges. In some cases, cPanel users are able to restore files through the separate “cPanel Backups” interface, which is determined by the hosting provider’s configuration.

What happens if the selected file path does not exist in the backup?

If the selected file path does not exist in the available backups, there will be no restoration options displayed in the system. It means the file was not available on the account when the last successful backup was performed.

How quickly are the files restored using this method?

File restoration using this method is typically very fast, especially for single files or small directories. The speed largely depends on the size of the file being restored and the overall load on the server’s disk system.

Can I use this feature to restore a database?

No, the File and Directory Restoration tool is specifically for web files and directories, such as HTML, PHP, and image files. Databases (MySQL/MariaDB) require a separate restoration process, usually handled through the WHM Restore a MySQL Database interface or phpMyAdmin.

April 16, 2026