This feature allows you to restore files and directories from local backup sources. You can either enter a direct path or browse through your account’s home directory to locate the backup you want to restore. This makes it easy to recover accidentally deleted or corrupted files.

Important: This feature is only available if your hosting provider has enabled it on the server.

File and Directory Restoration

Notes:

• You can only restore items from local backup files. To use a remote backup, you must first copy it to the local server.

• It is not possible to restore the .cpanel and mail directories from this interface. Restoring these requires a full account backup restoration.

• Deleted files will be restored, and existing files in the target directory will be overwritten. Please double-check before restoring.

The File and Directory Restoration Interface

The interface is divided into two main sections:

  • Files and Directories: This is where you select the file or directory you want to restore.
  • Backups: This section displays the available restore points for the chosen item.

Restoration Interface

You can access backups in two ways:

  1. By entering the direct path to a file or directory.
  2. By browsing through your home directory.

Enter a Direct Path

To restore using a direct path:

  1. In the Files and Directories section, select Enter a path.
  2. Type the path into the text field. The path always starts from your cPanel account’s home directory.
    Example: Enter public_html to access /home/USERNAME/public_html (replace USERNAME with your actual account name).
  3. Click Show Backups to display the available restore points.
  4. In the Backups section, select the backup you want and click Restore.
  5. Confirm the restoration. A success or error message will appear depending on the result.

Note: When using Enter a path, the system will not display the contents of the directory. To see directory contents, use Browse files and directories instead.

Browse Your Home Directory

You can also navigate through your account’s home directory to find the file or folder you want to restore:

  1. Select Browse files and directories. The contents of your home directory will be displayed.
  2. Click on a folder name to view its contents.
  3. Select the desired file or folder and click Show Backups.
  4. In the Backups section, choose the backup you want to restore and click Restore.
  5. Confirm the restoration. The system will then display a success or failure message.

Once restored, your files and directories will reappear in your home directory and will be immediately available for use.

Practical Example: Restoring a deleted index.php

Let’s say you accidentally deleted the index.php file from your public_html directory. Here’s how you can restore it:

  1. Open the File and Directory Restoration interface.
  2. Select Enter a path and type public_html/index.php.
  3. Click Show Backups to display the available restore points.
  4. Choose the backup you want and click Restore.
  5. Confirm the restoration. The index.php file will be restored and your website will be online again.
Was this answer helpful? 0 Users Found This Useful (0 Votes)