{"id":7447,"date":"2023-02-11T22:42:20","date_gmt":"2023-02-11T22:42:20","guid":{"rendered":"https:\/\/www.geekdecoder.com\/?p=7447"},"modified":"2023-02-11T22:42:20","modified_gmt":"2023-02-11T22:42:20","slug":"run-a-manual-backup-in-cpanel","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2023\/02\/11\/run-a-manual-backup-in-cpanel\/","title":{"rendered":"Run a Manual Backup in cPanel"},"content":{"rendered":"\n<p>Run a backup <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\/usr\/local\/cpanel\/bin\/backup\n<\/pre><\/div>\n\n\n<p>Run a single account backup<br>To back up a single cPanel account, you can use The pkgacct Script instead.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\/usr\/local\/cpanel\/scripts\/pkgacct &#x5B;options] USERNAME DIRECTORY\n<\/pre><\/div>\n\n\n<h4 class=\"wp-block-heading\">Options<\/h4>\n\n\n\n<p>The&nbsp;<code>\/usr\/local\/cpanel\/scripts\/pkgacct<\/code>&nbsp;script accepts the following options:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Option<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>USERNAME<\/code><\/td><td><strong>Required<\/strong><br>The cPanel account username for which to create a&nbsp;<code>cpmove<\/code>&nbsp;archive. You must pass this option&nbsp;<strong>after<\/strong>&nbsp;any options, but&nbsp;<strong>before<\/strong>&nbsp;the&nbsp;<code>DIRECTORY<\/code>&nbsp;option.<\/td><td><code>example<\/code><\/td><\/tr><tr><td><code>DIRECTORY<\/code><\/td><td>The directory path in which to store the archive. By default, the script uses the&nbsp;<code>\/home<\/code>&nbsp;directory. You must pass this option&nbsp;<strong>after<\/strong>&nbsp;the&nbsp;<code>USERNAME<\/code>&nbsp;option.<\/td><td><code>\/usr\/local\/cpanel\/backups<\/code><\/td><\/tr><tr><td><code>--allow-override<\/code><\/td><td>Use the&nbsp;<code>\/var\/cpanel\/lib\/Whostmgr\/Pkgacct\/pkgacct<\/code>&nbsp;file to package the account, if it exists.Note:You must pass this option&nbsp;<strong>before<\/strong>&nbsp;any other options.<\/td><td><code>--allow-override<\/code><\/td><\/tr><tr><td><code>--mysql=VERSION<\/code><\/td><td>The archive\u2019s required minimum version of MySQL\u00ae.<\/td><td><code>--mysql=5.1.1<\/code><\/td><\/tr><tr><td><code>--roundcube=VERSION<\/code><\/td><td>The archive\u2019s required minimum version of Roundcube.<\/td><td><code>--roundcube=3.0<\/code><\/td><\/tr><tr><td><code>--dbbackup=TYPE<\/code><\/td><td>The type of database backup to perform:<code>all<\/code>&nbsp;\u2014 The script backs up all of the database information. This is the default option.<code>schema<\/code>&nbsp;\u2014 The script only backs up the database schemas. Only use this option to track a database\u2019s users if you back up your databases through a different method.<code>name<\/code>&nbsp;\u2014 The script only backs up the database names. MySQL databases transfer as placeholders containing a&nbsp;<a href=\"https:\/\/dev.mysql.com\/doc\/refman\/8.0\/en\/create-table.html\"><code>CREATE TABLE<\/code>&nbsp;statement<\/a>. PostgreSQL\u00ae databases transfer as empty&nbsp;<code>.tar<\/code>&nbsp;placeholder files.<\/td><td><code>--dbbackup=all<\/code><\/td><\/tr><tr><td><code>--dbbackup_mysql=TYPE<\/code><\/td><td>An override of the&nbsp;<code>--dbbackup<\/code>&nbsp;option for MySQL&nbsp;<strong>only<\/strong>. This option accepts the same values as the&nbsp;<code>--dbbackup<\/code>&nbsp;option.Note:If you pass&nbsp;<strong>both<\/strong>&nbsp;this option and the&nbsp;<code>--dbbackup<\/code>&nbsp;option, the system applies the&nbsp;<code>--dbbackup_mysql<\/code>&nbsp;option to MySQL and the&nbsp;<code>--dbbackup<\/code>&nbsp;option to PostgreSQL.This option has no effect on PostgreSQL backups.<\/td><td><code>--dbbackup_mysql=all<\/code><\/td><\/tr><tr><td><code>--get_version<\/code><\/td><td>Display the version of the&nbsp;<code>pkgacct<\/code>&nbsp;script.<\/td><td><code>--get_version<\/code><\/td><\/tr><tr><td><code>--use_backups<\/code><\/td><td>Use the account\u2019s last known successful backup as a template when the script creates the archive. Use this option to speed up the backup process.<\/td><td><code>--use_backups<\/code><\/td><\/tr><tr><td><code>--incremental<\/code><\/td><td>Update the destination file with any new content since the previous backup. This option also removes any content that no longer exists on the account. If the destination file does&nbsp;<strong>not<\/strong>&nbsp;exist, the script creates a new file in that location.Note:This option will pass the&nbsp;<code>--nocompress<\/code>&nbsp;option to create an uncompressed archive.<\/td><td><code>--incremental<\/code><\/td><\/tr><tr><td><code>--split<\/code><\/td><td>Create the archive in smaller data files. This option reduces the overall load on the system and makes it easier to transfer the files. The system creates these files in the&nbsp;<code>cpmove-USERNAME.tar.gz.part00001<\/code>&nbsp;format, where&nbsp;<code>USERNAME<\/code>&nbsp;is the user\u2019s account and&nbsp;<code>part00001<\/code>&nbsp;is the file\u2019s incremental ID.<\/td><td><code>--split<\/code><\/td><\/tr><tr><td><code>--nocompress<\/code><\/td><td>Do not compress the archive.<\/td><td><code>--nocompress<\/code><\/td><\/tr><tr><td><code>--userbackup<\/code><\/td><td>Allow the user to use the archive as a backup file for the account (for example,&nbsp;<code>backup-3.18.2020_09-16-55_USERNAME<\/code>). The system creates the file in the&nbsp;<code>\/home\/USERNAME<\/code>&nbsp;directory, where&nbsp;<code>USERNAME<\/code>&nbsp;is the user\u2019s account name. This file is compatible with WHM\u2019s&nbsp;<a href=\"https:\/\/docs.cpanel.net\/whm\/backup\/restore-a-full-backup-cpmove-file\"><em>Restore a Full Backup\/cpmove File<\/em><\/a>&nbsp;interface (<em>WHM &gt;&gt; Home &gt;&gt; Backup &gt;&gt; Restore a Full Backup\/cpmove File<\/em>).<\/td><td><code>--userbackup<\/code><\/td><\/tr><tr><td><code>--backup=FILEPATH<\/code><\/td><td>Use the archive as a backup for the account at the given file path. This option creates the&nbsp;<code>username.tar.gz<\/code>&nbsp;file, where&nbsp;<code>username<\/code>&nbsp;represents the account\u2019s username.<\/td><td><code>--backup=\/usr\/local\/cpanel\/backups<\/code><\/td><\/tr><tr><td><code>--skipacctdb<\/code><\/td><td>Exclude the account\u2019s MySQL and PostgreSQL databases from the archive.<\/td><td><code>--skipacctdb<\/code><\/td><\/tr><tr><td><code>--skipapitokens<\/code><\/td><td>Exclude the account\u2019s API tokens from the archive.<\/td><td><code>--skipapitokens<\/code><\/td><\/tr><tr><td><code>--skipauthlinks<\/code><\/td><td>Exclude the account\u2019s external authentication credentials from the archive.<\/td><td><code>--skipauthlinks<\/code><\/td><\/tr><tr><td><code>--skipbwdata<\/code><\/td><td>Exclude the account\u2019s bandwidth data from the archive.<\/td><td><code>--skipbwdata<\/code><\/td><\/tr><tr><td><code>--skipdnszones<\/code><\/td><td>Exclude the account\u2019s DNS zone file information from the archive.<\/td><td><code>--skipdnszones<\/code><\/td><\/tr><tr><td><code>--skipdomains<\/code><\/td><td>Exclude the account\u2019s subdomains, parked domains (aliases), and addon domains from the archive.<\/td><td><code>--skipdomains<\/code><\/td><\/tr><tr><td><code>--skipftpusers<\/code><\/td><td>Exclude the account\u2019s FTP user accounts from the archive.<\/td><td><code>--skipftpusers<\/code><\/td><\/tr><tr><td><code>--skiphomedir<\/code><\/td><td>Exclude the account\u2019s&nbsp;<code>\/home<\/code>&nbsp;directory from the archive. Use this option if you will save or transfer the&nbsp;<code>\/home<\/code>&nbsp;directory with another method, such as the&nbsp;<code>rsync<\/code>&nbsp;command.<\/td><td><code>--skiphomedir<\/code><\/td><\/tr><tr><td><code>--skipintegrationlinks<\/code><\/td><td>Exclude the account\u2019s integration links from the archive.<\/td><td><code>--skipintegrationlinks<\/code><\/td><\/tr><tr><td><code>--skiplinkednodes<\/code><\/td><td>Exclude the account\u2019s server node linkages from the archive.<\/td><td><code>--skiplinkednodes<\/code><\/td><\/tr><tr><td><code>--skiplocale<\/code><\/td><td>Exclude the account\u2019s locale information or customized locale from the archive.<\/td><td><code>--skiplocale<\/code><\/td><\/tr><tr><td><code>--skiplogs<\/code><\/td><td>Exclude the account\u2019s log files from the archive.<\/td><td><code>--skiplogs<\/code><\/td><\/tr><tr><td><code>--skipmail<\/code><\/td><td>Exclude the account\u2019s mail directory from the archive.<\/td><td><code>--skipmail<\/code><\/td><\/tr><tr><td><code>--skipmailconfig<\/code><\/td><td>Exclude the account\u2019s mail configuration information from the archive.<\/td><td><code>--skipmailconfig<\/code><\/td><\/tr><tr><td><code>--skipmailman<\/code><\/td><td>Exclude the account\u2019s&nbsp;<a href=\"https:\/\/www.list.org\/\">Mailman<\/a>&nbsp;mailing lists from the archive.<\/td><td><code>--skipmailman<\/code><\/td><\/tr><tr><td><code>--skipmysql<\/code><\/td><td>Exclude the account\u2019s MySQL databases, database users, and database grants from the archive.<\/td><td><code>--skipmysql<\/code><\/td><\/tr><tr><td><code>--skippasswd<\/code><\/td><td>Exclude the account\u2019s password from the archive.<\/td><td><code>--skippasswd<\/code><\/td><\/tr><tr><td><code>--skippgsql<\/code><\/td><td>Exclude the account\u2019s PostgreSQL databases, database users, and database grants from the archive.<\/td><td><code>--skippgsql<\/code><\/td><\/tr><tr><td><code>--skippublichtml<\/code><\/td><td>Exclude the account\u2019s&nbsp;<code>\/public_html<\/code>&nbsp;directory.<\/td><td><code>--skippublichtml<\/code><\/td><\/tr><tr><td><code>--skipquota<\/code><\/td><td>Exclude the account\u2019s disk quota limits from the archive.<\/td><td><code>--skipquota<\/code><\/td><\/tr><tr><td><code>--skipresellerconfig<\/code><\/td><td>Exclude the account\u2019s reseller privileges from the archive.<\/td><td><code>--skipresellerconfig<\/code><\/td><\/tr><tr><td><code>--skipshell<\/code><\/td><td>Exclude the account\u2019s shell information and privileges from the archive.<\/td><td><code>--skipshell<\/code><\/td><\/tr><tr><td><code>--skipssl<\/code><\/td><td>Exclude the server\u2019s SSL certificates and files in the Apache\u00ae configuration. This option does&nbsp;<strong>not<\/strong>&nbsp;exclude the SSL files in the account\u2019s&nbsp;<code>\/home<\/code>&nbsp;directory.<\/td><td><code>--skipssl<\/code><\/td><\/tr><tr><td><code>--skipuserdata<\/code><\/td><td>Exclude the account\u2019s subaccount information. You create these accounts in cPanel\u2019s&nbsp;<a href=\"https:\/\/docs.cpanel.net\/cpanel\/preferences\/user-manager\"><em>User Manager<\/em><\/a>&nbsp;interface (<em>cPanel &gt;&gt; Home &gt;&gt; Preferences &gt;&gt; User Manager<\/em>).<\/td><td><code>--skipuserdata<\/code><\/td><\/tr><tr><td><code>--help<\/code><\/td><td>Display a brief help message.<\/td><td><code>--help<\/code><\/td><\/tr><tr><td><code>--man<\/code><\/td><td>Display the script\u2019s full documentation.<\/td><td><code>--man<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Run a backup Run a single account backupTo back up a single cPanel account, you can use The pkgacct Script instead. Options The&nbsp;\/usr\/local\/cpanel\/scripts\/pkgacct&nbsp;script accepts the following options: Option Description Example USERNAME RequiredThe cPanel account username for which to create a&nbsp;cpmove&nbsp;archive. You must pass this option&nbsp;after&nbsp;any options, but&nbsp;before&nbsp;the&nbsp;DIRECTORY&nbsp;option. example DIRECTORY The directory path in which to &#8230; <a title=\"Run a Manual Backup in cPanel\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2023\/02\/11\/run-a-manual-backup-in-cpanel\/\" aria-label=\"Read more about Run a Manual Backup in cPanel\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-7447","post","type-post","status-publish","format-standard","hentry","category-cpanel"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/7447","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=7447"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/7447\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=7447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=7447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=7447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}