{"id":222,"date":"2021-07-23T12:25:47","date_gmt":"2021-07-23T12:25:47","guid":{"rendered":"https:\/\/ssdsunucum.com\/blog\/backup-tarball-contents\/"},"modified":"2021-07-23T12:25:47","modified_gmt":"2021-07-23T12:25:47","slug":"backup-tarball-contents","status":"publish","type":"post","link":"https:\/\/ssdsunucum.com\/blog\/backup-tarball-contents\/","title":{"rendered":"Backup Tarball Contents"},"content":{"rendered":"<\/p>\n<div class=\"col-md-9\">\n<div class=\"flex-column flex-md-row article-header\">\n<div id=\"versioned-article-header\">\n<p class=\"valid-version-info\"><em>Valid for versions 92 through the latest version<\/em><\/p>\n<\/div>\n<div id=\"version-select-group\" aria-label=\"select versions\">\n<h4>Version:<\/h4>\n<h4>82<\/h4>\n<h4>84<\/h4>\n<h4>88<\/h4>\n<h4>92<\/h4>\n<\/div><\/div>\n<hr>\n<h2 id=\"overview\">Overview<\/h2>\n<div class=\"callout callout-danger\">\n<div class=\"callout-heading\">Warning:<\/div>\n<div class=\"callout-content\">\n<p>cPanel &#038; WHM does <strong>not<\/strong> recommend using this file as an integration end point. The contents of this file can change at any time.<\/p>\n<\/p><\/div>\n<\/div>\n<p>When you create a backup, the system creates a tarball (<code>.tar.gz<\/code>) file, which contains compressed versions of an account\u2019s files. The system uses the <code>USERNAME.tar.gz<\/code> file format, where <code>USERNAME<\/code> is the cPanel account\u2019s username. To view the contents of this file, you can:<\/p>\n<ul>\n<li>Download the <code>tar.gz<\/code> file and extract its contents.<\/li>\n<li>On the command line, use the <code>tar -tvf USER.tar.gz<\/code> command, where <code>USER<\/code> is the account username. This displays all of the backup file\u2019s contents. It does not extract the file\u2019s contents.<\/li>\n<\/ul>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>The backup process runs as the cPanel user for whom it backs up data. The system includes all of the files the account owns in the backup file. It also includes any files that the account does not own but can access in the backup file. However, the system will not back up any files the account does <strong>not<\/strong> own and <strong>cannot<\/strong> access.<\/p>\n<\/p><\/div>\n<\/div>\n<h4 id=\"create-a-backup-in-whm\">Create a backup in WHM<\/h4>\n<p>You can create an account backup file in WHM with one of the following methods:<\/p>\n<ul>\n<li>In WHM\u2019s <em>Backup Configuration<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; Backup &gt;&gt; Backup Configuration<\/em>).<\/li>\n<li>Use WHM\u2019s <code>backup<\/code> script.<\/li>\n<li>Use WHM API 1\u2019s Backup functions.<\/li>\n<\/ul>\n<h4 id=\"create-a-backup-in-cpanel\">Create a backup in cPanel<\/h4>\n<p>You can create an account backup file in cPanel with one of the following methods:<\/p>\n<ul>\n<li>In cPanel\u2019s <em>Backup<\/em> interface (<em>cPanel &gt;&gt; Home &gt;&gt; Files &gt;&gt; Backup<\/em>).<\/li>\n<li>Use UAPI\u2019s Backup functions.<\/li>\n<\/ul>\n<h2 id=\"directories\">Directories<\/h2>\n<p>The following entries are the file directories in an account\u2019s backup file:<\/p>\n<h3 id=\"authnlinks\">authnlinks<\/h3>\n<p>The <code>\/authnlinks<\/code> directory contains the account\u2019s external authentication data. This directory only appears if the account uses external authentication.<\/p>\n<h3 id=\"apache-tls\">apache_tls<\/h3>\n<p>The <code>\/apache_tls<\/code> directory contains the account\u2019s domain files. The files in this directory contain the private keys and SSL certificates for each domain that exists on the account.<\/p>\n<h3 id=\"bandwidth\">bandwidth<\/h3>\n<p>The system stores bandwidth information in the <code>bandwidth.json<\/code> file. The system creates the <code>\/bandwidth<\/code> directory in the backup file, but does not store any data in this directory.<\/p>\n<h3 id=\"bandwidth-db\">bandwidth_db<\/h3>\n<p>The system stores bandwidth information in the <code>bandwidth_db.json<\/code> file. The system creates the <code>\/bandwidth_db<\/code> directory in the backup file, but does <strong>not<\/strong> store any data in this directory.<\/p>\n<h3 id=\"counters\">counters<\/h3>\n<p>The <code>\/counters<\/code> directory contains a copy of any file the account owns within the <code>\/var\/cpanel\/Counters\/<\/code> directory. Each of these files contains the current count for the webpage hit counters. For example, the <code>USER.dat<\/code> file, where <code>USER<\/code> is the account\u2019s username.<\/p>\n<h3 id=\"cp\">cp<\/h3>\n<p>The <code>\/cp<\/code> directory contains the account\u2019s user file that exists in the <code>\/var\/cpanel\/users<\/code> directory. This file contains the account\u2019s information and account settings.<\/p>\n<h3 id=\"cron\">cron<\/h3>\n<p>The <code>\/cron<\/code> directory contains the account\u2019s <code>cron<\/code> table file data.<\/p>\n<h3 id=\"ccs\">ccs<\/h3>\n<p>The <code>\/ccs<\/code> directory contains the account\u2019s Calendar and Contacts Server (CCS) plugin data, if it exists.<\/p>\n<h3 id=\"dnssec-keys\">dnssec_keys<\/h3>\n<p>The <code>\/dnssec_keys<\/code> directory contains the DNSSEC keys for all of the account\u2019s domains. The system creates a directory for each domain, in which the system copies the domain\u2019s DNSSEC key files. The system stores the DNSSEC key files in <code>keytag_keytype.key<\/code> format, where <code>keytag<\/code> represents the key\u2019s tag ID, and <code>keytype<\/code> represents the type of DNSSEC key.<\/p>\n<h3 id=\"dnszones\">dnszones<\/h3>\n<p>The <code>\/dnszones<\/code> directory contains copies of the account\u2019s DNS zone files. The system stores these files in <code>DOMAIN.db<\/code> format, where <code>DOMAIN<\/code> is the account\u2019s domain.<\/p>\n<h3 id=\"domainkeys\">domainkeys<\/h3>\n<p>The <code>\/domainkeys<\/code> directory contains the account\u2019s <code>private<\/code> and <code>public<\/code> domain key files. The <code>private<\/code> file contains the private keys for each domain that exists on the cPanel account. The <code>public<\/code> file contains the public keys for each domain that exists on the cPanel account.<\/p>\n<h3 id=\"homedir\">homedir<\/h3>\n<p>The <code>\/homedir<\/code> directory contains a copy of the account\u2019s <code>\/home<\/code> directory. The system creates this file with the <code>getpwnam<\/code> command. This directory contains the contents of the account\u2019s <code>\/home<\/code> directory.<\/p>\n<h3 id=\"httpfiles\">httpfiles<\/h3>\n<p>The <code>\/httpfiles<\/code> directory contains the account\u2019s custom virtualhost templates.<\/p>\n<h3 id=\"ips\">ips<\/h3>\n<p>The <code>\/ips<\/code> directory contains the <code>related_ips<\/code> file.   This file contains the IPv6 addresses that exist on the account\u2019s server.<\/p>\n<h3 id=\"locale\">locale<\/h3>\n<p>The <code>\/locale<\/code> directory contains an account\u2019s custom locale.<\/p>\n<h3 id=\"logs\">logs<\/h3>\n<p>The <code>\/logs<\/code> directory contains copies of the account\u2019s log files in the <code>\/usr\/local\/apache\/domlogs<\/code> directory. These files contain data tracked by the the log file.<\/p>\n<h3 id=\"mm\">mm<\/h3>\n<p>The <code>\/mm<\/code> directory contains the account\u2019s Mailman mailing list files. Each mailing list has its own subdirectory in this directory.<\/p>\n<h3 id=\"mma\">mma<\/h3>\n<p>The <code>\/mma<\/code> directory contains all of the account\u2019s domains\u2019 Mailman files. The system divides the copied files into subdirectories that correspond to each type of mailing list:<\/p>\n<ul>\n<li><code>pub\/<\/code> \u2014 This directory contains all of the account\u2019s domains\u2019 Mailman files from the <code>\/usr\/local\/cpanel\/3rdparty\/mailman\/archives\/public<\/code> directory.<\/li>\n<li><code>priv\/<\/code> \u2014 This directory contains all of the account\u2019s domains\u2019 Mailman files from the <code>\/usr\/local\/cpanel\/3rdparty\/mailman\/archives\/private<\/code> directory.<\/li>\n<\/ul>\n<h3 id=\"mms\">mms<\/h3>\n<p>The <code>\/mms<\/code> directory contains files from the account\u2019s <code>\/usr\/local\/cpanel\/3rdparty\/mailman\/suspended.lists<\/code> directory.<\/p>\n<h3 id=\"mysql\">mysql<\/h3>\n<p>The <code>\/mysql<\/code> directory contains the account\u2019s MySQL\u00ae dumps for any of its MySQL databases. It stores these files in <code>USER_database.sql<\/code> format, where <code>USER<\/code> is the account\u2019s username.<\/p>\n<h3 id=\"mysql-timestamps\">mysql-timestamps<\/h3>\n<p>The <code>\/mysql-timestamps<\/code> directory contains log files that state when the account created a MySQL database. It stores the files in <code>.txt<\/code> file format. These files contain the MySQL database creation timestamp in Unix time format.<\/p>\n<h3 id=\"psql\">psql<\/h3>\n<p>The <code>\/psql<\/code> directory contains the account\u2019s PostgreSQL\u00ae database files, in <code>.tar<\/code> file format. It also contains the following files:<\/p>\n<ul>\n<li><code>1psql_users.sql<\/code> \u2014 This file contains all of the account\u2019s PostgreSQL users.<\/li>\n<li><code>psql_grants.sql<\/code> \u2014 This file contains all of the account\u2019s PostgreSQL grants.<\/li>\n<\/ul>\n<h3 id=\"resellerconfig\">resellerconfig<\/h3>\n<p>The <code>\/resellerconfig<\/code> directory contains a reseller account\u2019s <code>reseller<\/code> file. The <code>reseller<\/code> file contains data from the account\u2019s <code>\/var\/cpanel\/resellers<\/code> file, which includes the account\u2019s username and all of the account\u2019s access control list (ACL) privileges. The <code>\/resellerconfig<\/code> directory also contains the <code>resellers-nameservers<\/code> file, which contains the account\u2019s entry in the <code>\/var\/cpanel\/resellers-nameservers<\/code> file.<\/p>\n<h3 id=\"resellerfeatures\">resellerfeatures<\/h3>\n<p>The <code>\/resellerfeatures<\/code> directory contains a reseller account\u2019s custom feature lists.<\/p>\n<h3 id=\"resellerpackages\">resellerpackages<\/h3>\n<p>The <code>\/resellerpackages<\/code> directory contains a reseller account\u2019s custom packages.<\/p>\n<h3 id=\"ssl\">ssl<\/h3>\n<p>The contents of the <code>\/ssl<\/code> directory exist in the backup file\u2019s <code>\/homedir\/ssl<\/code> directory.<\/p>\n<h3 id=\"sslcerts\">sslcerts<\/h3>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>The contents of this directory exist in the backup file\u2019s <code>\/homedir\/ssl<\/code> directory.<\/p>\n<\/p><\/div>\n<\/div>\n<p>The <code>\/sslcerts<\/code> directory contains the certificate files for each of the account\u2019s domains. This directory contains the following files, where where <code>DOMAIN<\/code> is the account\u2019s domain name:<\/p>\n<ul>\n<li><code>DOMAIN.crt<\/code> \u2014 The domain certificate file.<\/li>\n<li><code>DOMAIN.cabundle<\/code> \u2014 This file is a copy of the domain\u2019s Certificate Authority (CA) bundle.<\/li>\n<li><code>DOMAIN.csr<\/code> \u2014 This file is a copy of the certificate-signing request (CSR). These system copies these files from the following directories:\n<ul>\n<li><code>\/usr\/share\/ssl\/certs<\/code><\/li>\n<li><code>\/etc\/ssl\/certs<\/code><\/li>\n<li><code>\/var\/cpanel\/ssl\/installed\/certs<\/code><\/li>\n<li><code>\/usr\/local\/ssl\/certs<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3 id=\"sslkeys\">sslkeys<\/h3>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>The contents of this directory exist in the backup file\u2019s <code>\/homedir\/ssl<\/code> directory.<\/p>\n<\/p><\/div>\n<\/div>\n<p>The <code>\/sslkeys<\/code> directory contains all of the SSL keys for the account\u2019s domains. The system copies this file in <code>DOMAIN.key<\/code> format, where <code>DOMAIN<\/code> is the account\u2019s domain name.<\/p>\n<h3 id=\"suspended\">suspended<\/h3>\n<p>The <code>\/suspended<\/code> directory contains a copy of the file in the account\u2019s <code>\/var\/cpanel\/suspended<\/code> directory. The system copies the files in <code>USER<\/code> or <code>USER.lock<\/code> format, where <code>USER<\/code> is the account username. Each file contains the reason for the account suspension, if one exists.<\/p>\n<h3 id=\"suspendinfo\">suspendinfo<\/h3>\n<p>The <code>\/suspendinfo<\/code> directory contains a copy of the files in the account\u2019s <code>\/var\/cpanel\/suspendinfo<\/code> directory.<\/p>\n<h3 id=\"userconfig\">userconfig<\/h3>\n<p>The <code>\/userconfig<\/code> directory contains a copy of the files in the <code>\/var\/cpanel\/userconfig<\/code> directory. This file contains symlinks from the account\u2019s <code>public_html<\/code> directory.<\/p>\n<h3 id=\"userdata\">userdata<\/h3>\n<p>The <code>\/userdata<\/code> directory contains the user data of the account\u2019s subdomain or domain. The system copies files in this directory from the <code>\/var\/cpanel\/userdata\/USER<\/code> directory, where <code>USER<\/code> is the account\u2019s username.<\/p>\n<h3 id=\"va\">va<\/h3>\n<p>The <code>\/va<\/code> directory contains any of the account\u2019s autoresponders. The system copies this file from the <code>\/etc\/valiases\/<\/code> directory.<\/p>\n<h3 id=\"vad\">vad<\/h3>\n<p>The <code>\/vad<\/code> directory contains a copy of the account\u2019s virtual domain aliases. The system copies this file from the <code>\/etc\/vdomainaliases<\/code> directory.<\/p>\n<h3 id=\"vf\">vf<\/h3>\n<p>The <code>\/vf<\/code> directory contains a copy of the user\u2019s Exim filters. The system creates copies of the filters that the user owns from the <code>\/etc\/vfilters<\/code> directory.<\/p>\n<h2 id=\"files-without-a-directory\">Files without a directory<\/h2>\n<p>The following are files in the tarball that do not exist in a directory:<\/p>\n<h3 id=\"addons\">addons<\/h3>\n<p>The <code>addons<\/code> file contains a hash of the account\u2019s addon domains and their relative subdomains.<\/p>\n<h3 id=\"autossl-json\">autossl.json<\/h3>\n<p>The <code>autossl.json<\/code> file contains the account\u2019s AutoSSL run preferences. This file also contains any AutoSSL run restrictions set by the system administrator.<\/p>\n<h3 id=\"bandwidth-db-json\">bandwidth_db.json<\/h3>\n<p>The <code>bandwidth_db.json<\/code> file contains the account\u2019s bandwidth data information.<\/p>\n<h3 id=\"bandwidth-db-data-json\">bandwidth_db.data.json<\/h3>\n<p>The <code>bandwidth_db.data.json<\/code> file contains the account\u2019s bandwidth usage data.<\/p>\n<h3 id=\"digestshadow\">digestshadow<\/h3>\n<p>The <code>digestshadow<\/code> file contains the passwords for the account\u2019s DAV digest authentication for cPanel\u2019s <em>WebDisk<\/em> feature (<em>cPanel &gt;&gt; Home &gt;&gt; Files &gt;&gt; Web Disk<\/em>).<\/p>\n<h3 id=\"has-sslstorage\">has_sslstorage<\/h3>\n<p>The <code>has_sslstorage<\/code> file contains a touch file that indicates the account uses WHM\u2019s <em>SSL Storage Manager<\/em> feature (<em>WHM &gt;&gt; Home &gt;&gt; SSL\/TLS &gt;&gt; SSL Storage Manager<\/em>). It stores this file in <code>crtindex.txt<\/code> format.<\/p>\n<h3 id=\"homedir-paths\">homedir_paths<\/h3>\n<p>The <code>homedir_paths<\/code> file contains the full path to the account\u2019s <code>\/home<\/code> directory.<\/p>\n<h3 id=\"mysql-sql\">mysql.sql<\/h3>\n<p>The <code>mysql.sql<\/code> file contains the account\u2019s MySQL database grants.<\/p>\n<h3 id=\"mysql-host-notes-json\">mysql_host_notes.json<\/h3>\n<p>The <code>mysql_host_notes.json<\/code> file contains the user-provided description information for the account\u2019s MySQL database hosts, if available.<\/p>\n<h3 id=\"nobodyfiles\">nobodyfiles<\/h3>\n<p>The <code>nobodyfiles<\/code> file contains a list of files in the account\u2019s <code>\/home<\/code> directory that the <code>nobody<\/code> system user owns.<\/p>\n<h3 id=\"pds\">pds<\/h3>\n<p>The <code>pds<\/code> file contains a list of the account\u2019s parked domains (aliases).<\/p>\n<h3 id=\"proftpdpasswd\">proftpdpasswd<\/h3>\n<p>The <code>proftpdpasswd<\/code> file contains a copy the account\u2019s ProFTPd file in the <code>\/etc\/proftpd<\/code> directory.<\/p>\n<h3 id=\"quota\">quota<\/h3>\n<p>The <code>quota<\/code> file contains the account\u2019s quota size, in bytes.<\/p>\n<h3 id=\"sds\">sds<\/h3>\n<p>The <code>sds<\/code> file contains a list of the account\u2019s subdomains.<\/p>\n<h3 id=\"sds2\">sds2<\/h3>\n<p>The <code>sds2<\/code> file contains a hash of subdomains and their relative document roots.<\/p>\n<h3 id=\"shadow\">shadow<\/h3>\n<p>The <code>shadow<\/code> file contains a copy of the account\u2019s password that the <code>getpwnam<\/code> command returns.<\/p>\n<h3 id=\"shell\">shell<\/h3>\n<p>The <code>shell<\/code> file contains the account\u2019s login shell.<\/p>\n<h3 id=\"version\">version<\/h3>\n<p>The <code>version<\/code> file contains the account\u2019s <code>pkgacct<\/code> version number and its archive version number.<\/p>\n<h3 id=\"webcalls-json\">webcalls.json<\/h3>\n<p>The <code>webcalls.json<\/code> file contains the account\u2019s web call data. For example, the account\u2019s dynamic DNS domains.<\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Valid for versions 92 through the latest version Version: 82 84 88 92 Overview Warning: cPanel &#038; WHM does not recommend using this file as an integration end point. The contents of this file can change at any time. When you create a backup, the system creates a tarball (.tar.gz) file, which contains compressed versions &hellip;<\/p>\n","protected":false},"author":1,"featured_media":223,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/222"}],"collection":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/comments?post=222"}],"version-history":[{"count":0,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/222\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media\/223"}],"wp:attachment":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media?parent=222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/categories?post=222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/tags?post=222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}