How to Manage Metadata Settings in cPanel & WHM

This guide explains how metadata is generated, stored, and managed within cPanel & WHM’s backup system. It covers metadata databases, table structures, backup directory formats, and how to manually enable or disable metadata creation through WHM or configuration settings.c

cPanel metadata backupWHM metadata settingsbackup metadata database

~3 min read • Updated Feb 15, 2026

How to Manage Metadata Settings


Valid for versions 76 through the latest version


Version: 76
Last modified: January 28, 2026


Overview


WHM administrators can manage metadata creation using WHM’s Backup Configuration interface:

WHM » Home » Backup » Backup Configuration


By default, cPanel & WHM generates metadata every time a backup is created. You may want to disable metadata creation for testing, before an upgrade, or when troubleshooting performance issues.


Notes:

  • The backups_create_metadata script generates metadata for all directories under /home/username except /mail and /.cpanel.
  • You must have at least one backup and metadata entry stored locally for the following interfaces to appear:
    • cPanel » Home » Files » File and Directory Restoration
    • WHM » Home » Backups » File and Directory Restoration

Metadata Databases


Each time a backup is created, cPanel & WHM generates metadata and stores it in a username.db database, where username is the cPanel account name.


The system saves this database inside the .meta directory under the configured backup directory. These metadata databases store indexed information in smaller, searchable files, allowing faster retrieval compared to scanning full backup archives.


Metadata Database Tables


The metadata database contains the following tables:

  • backup_paths — Lists backup file locations.
  • backups — Lists backup files stored on disk.
  • file_changes — Tracks changes to files across backups.
  • metadata — Stores schema type and version.
  • seen_files — Tracks filenames included in backups.

backup_paths Table

FieldTypeDescriptionExample
backup_pathstringFilepath relative to backup directory/backup/2018-04-12/accounts
backup_idintegerReferences backups.backup_id1

backups Table

FieldTypeDescriptionExample
backup_idintegerUnique ID1
timestamptimestampUTC creation time1523642274
does_existBooleanWhether the backup exists1

file_changes Table

FieldTypeDescriptionExample
seen_files_idintegerReferences seen_files.file_id1
backup_idintegerReferences backups.backup_id1
sizeintegerFile size in bytes660
mtimeintegerLast modified time (UTC)1523642274
operationintegerChange type (0=create, 1=modify, 2=remove)0
typeintegerFile type (0=file, 1=directory, 2=symlink)0

metadata Table

FieldTypeDescriptionExample
keystringMetadata schema typeschema_version
valuestringSchema version3.1

seen_files Table

FieldTypeDescriptionExample
file_idintegerUnique file ID1
pathstringPath relative to /home/username/public_html/

The Master Meta File


The .master.meta file stores static information about user backups that does not change. Every account directory inside daily, weekly, and monthly backup folders contains a .master.meta file.


Backup Directory Structure


Backups are stored in /backup using one of three formats:

FormatExtensionExample
Compressed.tar.gzusername.tar.gz
Uncompressed.tarusername.tar
IncrementalNoneusername

The system distinguishes backups by their full filepath. Metadata for each backup is stored in the backup_paths table.


Disable Metadata Creation


You can disable metadata creation using WHM’s Backup Configuration interface or by modifying configuration settings directly.


Important: When metadata is disabled:

  • cPanel’s File and Directory Restoration interface becomes unavailable.
  • WHM’s File and Directory Restoration interface becomes unavailable.
  • A notification explains why the feature is disabled.

You can also disable metadata using the WHM API 1 backup_config_set function.


Metadata-Related Settings

Config File SettingInterface SettingDescriptionValues
DISABLE_METADATA None (API only) Enables or disables metadata creation yes / no
BACKUPACCTS Backup Accounts Include cPanel accounts in backups yes / no
BACKUPENABLE Backup Status Enable or disable backups yes / no
BACKUPMOUNT Mount Backup Drive as Needed Mount backup directory before backup runs 1 / 0
KEEPLOCAL Retain backups in default directory Keep local backups 1 / 0

Conclusion


Metadata plays a crucial role in enabling fast file restoration and efficient backup indexing in cPanel & WHM. Understanding how metadata is stored and how to enable or disable it helps administrators optimize performance, troubleshoot issues, and manage backup behavior more effectively.


Written & researched by Dr. Shahin Siami