The backups_create_metadata Script
Valid for versions 82 through the latest version
Version:
82
Last modified: December 1, 2022
Overview
The /usr/local/cpanel/scripts/backups_create_metadata
script allows a user to create metadata files for all account backup types.
Note:
The script will generate metadata for all directories under the
/home/username
directory, except for the /mail
and /.cpanel
directories.
Run the script
To run this script on the command line, use the following format:
/usr/local/cpanel/scripts/backups_create_metadata
Options
Note:
You must provide at least one option to execute this script.
Options | Description | Example |
---|---|---|
--all |
Creates metadata files for all backups.
Note:
You cannot combine the
--all option with other options.
|
/scripts/backups_create_metadata --all |
--backup=[backup filename] |
Creates metadata files for the specified backup file. Combine this option with the --user option to create metadata for the specified user in the specified backup directory. |
|
--fix_corrupt |
Scans the metadata databases for corrupt files, then repairs them. Combine this option with the --schedule_rebuild option to rebuild the metadata in a background task. |
|
--schedule_rebuild |
Same as the --all option, but runs the script in the background. Combine this option with the --fix_corrupt option to rebuild the metadata in a background task. |
|
--user=[user] |
Creates metadata files for the specified user. Combine this option with the --backup=[backup filename] option to create metadata for the specified user in the specified backup directory. |
|
--vacuum |
Defragments the metadata SQL database and frees unused space.
Note:
|
/scripts/backups_create_metadata --vacuum |