{"id":3534,"date":"2010-01-27T21:24:26","date_gmt":"2010-01-28T02:24:26","guid":{"rendered":"http:\/\/underhost.com\/blog\/?p=3534"},"modified":"2026-10-23T09:55:26","modified_gmt":"2026-10-23T13:55:26","slug":"cpanel-backup-and-restore-a-domain-account-via-ssh","status":"publish","type":"post","link":"https:\/\/underhost.com\/blog\/cpanel-backup-and-restore-a-domain-account-via-ssh\/","title":{"rendered":"How to Back Up and Restore a cPanel Account Over SSH (pkgacct and restorepkg)"},"content":{"rendered":"<div class=\"uh-blog-hero\" style=\"margin:0 0 40px;text-align:center;padding:48px 24px;border-radius:20px;background:linear-gradient(135deg,#0D1F3C 0%,#125A8A 58%,#176EA5 100%);color:#ffffff;box-shadow:0 20px 40px -15px rgba(13,31,60,0.28);position:relative;overflow:hidden;\">\n<div style=\"display:inline-flex;align-items:center;gap:8px;padding:7px 14px;margin-bottom:16px;border:1px solid rgba(0,212,255,0.32);border-radius:999px;color:#DFF8FF;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;background:rgba(0,212,255,0.10);\"><i class=\"fas fa-database\" style=\"color:#00D4FF;\"><\/i> Backups<\/div>\n<h1 style=\"color:#ffffff;font-size:clamp(32px,5vw,46px);line-height:1.12;margin:0 0 14px;font-weight:800;\">How to Back Up and Restore a cPanel Account Over SSH (pkgacct and restorepkg)<\/h1>\n<\/div>\n<div class=\"uh-blog-excerpt\" style=\"border-left:4px solid #00D4FF;padding:18px 20px;margin:0 0 34px;background:#F8FAFC;color:#1F2937;border-radius:0 14px 14px 0;box-shadow:0 8px 28px rgba(13,31,60,0.08);line-height:1.75;\"><strong style=\"color:#0D1F3C;\">Short answer:<\/strong> As root, run <code>\/scripts\/pkgacct USERNAME \/backup<\/code> to package one cPanel account (files, databases, email and settings) into <code>\/backup\/cpmove-USERNAME.tar.gz<\/code>. Copy the file off the server. To restore it on the same or another cPanel server, put the file in <code>\/home<\/code> and run <code>\/scripts\/restorepkg \/home\/cpmove-USERNAME.tar.gz<\/code>. Restoring over an existing account replaces its data, so test first.<\/div>\n<nav aria-label=\"Table of contents\" class=\"uh-toc\" style=\"background:#ffffff;border:1px solid #E5E7EB;border-radius:16px;padding:20px 22px;margin:0 0 34px;box-shadow:0 4px 12px rgba(13,31,60,0.08);\">\n<div style=\"font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#176EA5;margin-bottom:10px;\"><i class=\"fas fa-list\" style=\"color:#00D4FF;\"><\/i> In this guide<\/div>\n<ol style=\"margin:0;padding-left:20px;columns:2 260px;column-gap:28px;line-height:1.9;\">\n<li><a href=\"#when-to-use-pkgacct\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">When to use pkgacct<\/a><\/li>\n<li><a href=\"#what-the-backup-contains\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">What the backup contains<\/a><\/li>\n<li><a href=\"#step-1-check-the-disk-space\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Step 1: check the disk space<\/a><\/li>\n<li><a href=\"#step-2-create-the-backup\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Step 2: create the backup<\/a><\/li>\n<li><a href=\"#step-3-copy-the-backup-off-the-server\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Step 3: copy the backup off the server<\/a><\/li>\n<li><a href=\"#step-4-restore-the-account\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Step 4: restore the account<\/a><\/li>\n<li><a href=\"#step-5-check-the-restored-account\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Step 5: check the restored account<\/a><\/li>\n<li><a href=\"#restore-from-whm-instead\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Restore from WHM instead<\/a><\/li>\n<li><a href=\"#back-up-as-a-cpanel-user-without-root\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Back up as a cPanel user (without root)<\/a><\/li>\n<li><a href=\"#troubleshooting\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Troubleshooting<\/a><\/li>\n<\/ol>\n<\/nav>\n<div class=\"uh-post-content\" style=\"color:#1F2937;font-size:16px;line-height:1.75;\">\n<h2 id=\"when-to-use-pkgacct\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-info-circle\" style=\"color:#00D4FF;\"><\/i> When to use pkgacct<\/h2>\n<ul style=\"margin:0 0 24px;padding-left:22px;\">\n<li style=\"margin:0 0 8px;\">Taking a quick, complete copy of one account before a risky change.<\/li>\n<li style=\"margin:0 0 8px;\">Moving a single account to another cPanel server when the Transfer Tool cannot connect.<\/li>\n<li style=\"margin:0 0 8px;\">Keeping an extra off-site copy of an important account.<\/li>\n<\/ul>\n<p style=\"margin:0 0 18px;\">For regular backups of every account, use WHM&#8217;s <strong>Backup Configuration<\/strong> instead, which runs on a schedule and can send backups off the server. See our <a href=\"https:\/\/underhost.com\/blog\/automatic-cpanel-backup-domain-mysql-with-cron-php\/\">automatic cPanel backups guide<\/a>.<\/p>\n<h2 id=\"what-the-backup-contains\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-database\" style=\"color:#00D4FF;\"><\/i> What the backup contains<\/h2>\n<div style=\"overflow-x:auto;margin:26px 0;border:1px solid #E5E7EB;border-radius:14px;-webkit-overflow-scrolling:touch;\">\n<table style=\"width:100%;border-collapse:collapse;background:#ffffff;color:#1F2937;font-size:15px;line-height:1.55;margin:0;\">\n<thead>\n<tr style=\"background:#0D1F3C;color:#fff;\">\n<th style=\"padding:14px;text-align:left;\">Included<\/th>\n<th style=\"padding:14px;text-align:left;\">Details<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Home directory<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Website files, uploads and other files in \/home\/USERNAME<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Databases<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">MySQL or MariaDB databases and users owned by the account<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Email<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Mail accounts, mailboxes, forwarders and filters<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">DNS zones<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Zones for the account&#8217;s domains<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Settings<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Domains, subdomains, SSL certificates, cron jobs, FTP accounts and the hosting package<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2 id=\"step-1-check-the-disk-space\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Step 1: check the disk space<\/h2>\n<p style=\"margin:0 0 18px;\">The archive is roughly the size of the account, minus compression. Check the account size and the free space where you will store the file:<\/p>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code>du -sh \/home\/USERNAME\ndf -h \/backup<\/code><\/pre>\n<h2 id=\"step-2-create-the-backup\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-database\" style=\"color:#00D4FF;\"><\/i> Step 2: create the backup<\/h2>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code>mkdir -p \/backup\nchmod 700 \/backup\n\n# Package the account into \/backup\n\/scripts\/pkgacct USERNAME \/backup\n\nls -lh \/backup\/cpmove-USERNAME.tar.gz<\/code><\/pre>\n<p style=\"margin:0 0 18px;\">Run it inside <code>screen<\/code> for large accounts. Store the archive in a folder that only root can read, never in the account&#8217;s own home folder: the archive contains the account&#8217;s databases and mail, and it would also be included in the next backup of that account. Run <code>\/scripts\/pkgacct --help<\/code> to see the options your cPanel version supports, such as skipping the home directory.<\/p>\n<h2 id=\"step-3-copy-the-backup-off-the-server\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-database\" style=\"color:#00D4FF;\"><\/i> Step 3: copy the backup off the server<\/h2>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code># From the server to backup storage\nrsync -avP \/backup\/cpmove-USERNAME.tar.gz backupuser@backup.example.com:\/backups\/\n\n# Or download it to your computer\nscp root@your-server-ip:\/backup\/cpmove-USERNAME.tar.gz .<\/code><\/pre>\n<p style=\"margin:0 0 18px;\">Delete the local copy from the server when you no longer need it there, so it does not fill the disk.<\/p>\n<h2 id=\"step-4-restore-the-account\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-database\" style=\"color:#00D4FF;\"><\/i> Step 4: restore the account<\/h2>\n<p style=\"margin:0 0 18px;\">Upload the archive to <code>\/home<\/code> on the server where you want to restore it, then run:<\/p>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code>\/scripts\/restorepkg \/home\/cpmove-USERNAME.tar.gz<\/code><\/pre>\n<p style=\"margin:0 0 18px;\">If an account with the same name already exists, the restore stops. To replace it, you must use the force option, which overwrites the existing account&#8217;s data. Take a fresh backup of that account first.<\/p>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code>\/scripts\/restorepkg --force \/home\/cpmove-USERNAME.tar.gz<\/code><\/pre>\n<h2 id=\"step-5-check-the-restored-account\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-database\" style=\"color:#00D4FF;\"><\/i> Step 5: check the restored account<\/h2>\n<ul style=\"list-style:none;padding-left:0;\">\n<li style=\"margin:0 0 8px;\">\u2713 The account appears in WHM under <strong>List Accounts<\/strong> with the right package and IP address.<\/li>\n<li style=\"margin:0 0 8px;\">\u2713 The website loads. Test it with the hosts file before you change DNS. See our <a href=\"https:\/\/underhost.com\/blog\/bypass-dns-propagation-delay\/\">hosts file guide<\/a>.<\/li>\n<li style=\"margin:0 0 8px;\">\u2713 Databases connect, and email accounts can log in.<\/li>\n<li style=\"margin:0 0 8px;\">\u2713 AutoSSL issues certificates once DNS points to the new server.<\/li>\n<\/ul>\n<h2 id=\"restore-from-whm-instead\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-database\" style=\"color:#00D4FF;\"><\/i> Restore from WHM instead<\/h2>\n<p style=\"margin:0 0 18px;\">WHM has graphical tools that do the same work and show each step:<\/p>\n<ul style=\"margin:0 0 24px;padding-left:22px;\">\n<li style=\"margin:0 0 8px;\"><strong>Backup &gt; Backup Restoration<\/strong> restores accounts from the server&#8217;s scheduled backups.<\/li>\n<li style=\"margin:0 0 8px;\"><strong>Transfers &gt; Restore a Full Backup\/cpmove File<\/strong> restores a pkgacct archive you uploaded.<\/li>\n<li style=\"margin:0 0 8px;\"><strong>Transfers &gt; Transfer Tool<\/strong> copies accounts directly from another server.<\/li>\n<\/ul>\n<h2 id=\"back-up-as-a-cpanel-user-without-root\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-angle-double-right\" style=\"color:#00D4FF;\"><\/i> Back up as a cPanel user (without root)<\/h2>\n<p style=\"margin:0 0 18px;\">Account owners without root access can download a full backup from cPanel: <strong>Files &gt; Backup<\/strong>, then <strong>Download a Full Account Backup<\/strong>. The file is created in the home folder; download it and delete it from the server afterwards. Only the server administrator can restore a full backup.<\/p>\n<h2 id=\"troubleshooting\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-exclamation-triangle\" style=\"color:#00D4FF;\"><\/i> Troubleshooting<\/h2>\n<div style=\"overflow-x:auto;margin:26px 0;border:1px solid #E5E7EB;border-radius:14px;-webkit-overflow-scrolling:touch;\">\n<table style=\"width:100%;border-collapse:collapse;background:#ffffff;color:#1F2937;font-size:15px;line-height:1.55;margin:0;min-width:600px;\">\n<thead>\n<tr style=\"background:#0D1F3C;color:#fff;\">\n<th style=\"padding:14px;text-align:left;\">Problem<\/th>\n<th style=\"padding:14px;text-align:left;\">Likely cause<\/th>\n<th style=\"padding:14px;text-align:left;\">Fix<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">pkgacct stops with a disk space error<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Not enough free space at the destination<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Free space, or write the backup to another disk.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">restorepkg says the account exists<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">An account with that user name is already on the server<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Remove it, or use &#8211;force after taking a backup of it.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Restored site shows database errors<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Database user or password differs in the site&#8217;s configuration<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Check the database name, user and password in the site&#8217;s config file.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Domain conflict during restore<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">The domain already exists on another account<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Remove the domain from the other account first.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div aria-hidden=\"true\" class=\"uh-section-divider\" style=\"width:min(100% - 32px, 1080px);margin:44px auto;display:grid;grid-template-columns:1fr 32px 1fr;align-items:center;gap:18px;pointer-events:none;\"><span style=\"height:1px;background:linear-gradient(90deg,transparent,rgba(0,212,255,0.40),rgba(23,110,165,0.24),transparent);\"><\/span><img alt=\"\" decoding=\"async\" height=\"32\" loading=\"lazy\" src=\"https:\/\/cdn.underhost.com\/android-chrome-192x192.webp\" style=\"width:32px;height:32px;display:block;border-radius:8px;filter:drop-shadow(0 0 14px rgba(0,212,255,0.30));\" width=\"32\"\/><span style=\"height:1px;background:linear-gradient(90deg,transparent,rgba(23,110,165,0.24),rgba(0,212,255,0.40),transparent);\"><\/span><\/div>\n<\/div>\n<div class=\"uh-blog-cta\" style=\"background:linear-gradient(135deg,#0D1F3C 0%,#125A8A 58%,#176EA5 100%);color:#ffffff;padding:36px 24px;border-radius:20px;text-align:center;margin:44px 0;box-shadow:0 20px 40px -15px rgba(13,31,60,0.32);\">\n<h2 style=\"margin:0 0 12px;font-size:28px;line-height:1.25;color:#ffffff;\">Need help with this?<\/h2>\n<p style=\"font-size:17px;margin:0 auto 22px;color:#EAF6FF;max-width:720px;line-height:1.7;\">Want backups that run and get tested without you thinking about it? Ask about our backup and server management services.<\/p>\n<p><a href=\"https:\/\/underhost.com\/server-management.php\" style=\"background:linear-gradient(90deg,#00D4FF,#0077FF);color:#ffffff;padding:13px 28px;border-radius:10px;text-decoration:none;font-weight:800;display:inline-block;margin:8px;\">See server management plans<\/a><a href=\"https:\/\/customerpanel.ca\/client\/\" style=\"background:transparent;color:#ffffff;padding:12px 28px;border-radius:10px;text-decoration:none;font-weight:800;display:inline-block;margin:8px;border:1px solid rgba(255,255,255,0.32);\">Contact @CustomerPanel<\/a><\/div>\n<div class=\"uh-faq-section\" id=\"faq\" style=\"margin:34px 0;scroll-margin-top:90px;\">\n<h2 style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:0 0 18px;border-bottom:2px solid rgba(0,212,255,0.22);padding-bottom:10px;\">Frequently asked questions<\/h2>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Where does pkgacct save the backup?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">In \/home by default, as cpmove-USERNAME.tar.gz. Give a folder as the second argument to save it elsewhere.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Can I restore a pkgacct backup on another server?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">Yes. Copy the archive to \/home on the new cPanel server and run \/scripts\/restorepkg with the file path.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Does pkgacct include email and databases?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">Yes. It packages files, databases, email, DNS zones and account settings.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Is it safe to keep backups in the user&#8217;s home folder?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">No. Keep them in a root-only folder or off the server, because the archive contains databases and email.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Can a cPanel user restore a full backup?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">No. Users can download full backups and restore partial ones, but a full restore needs the server administrator.<\/p>\n<\/div>\n<\/div>\n<p><!-- uh-related-start --><\/p>\n<div style=\"background:#F4F8FC;border:1px solid #DCE7F3;border-radius:14px;padding:18px 22px;margin:32px 0 8px;\">\n<h2 style=\"margin:0 0 12px;font-size:22px;\">Related guides<\/h2>\n<ul style=\"margin:0;padding-left:20px;\">\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/cpanel-backup-via-ssh-single-account\/\">How to Create and Store a cPanel Account Backup Over SSH<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/automatic-cpanel-backup-domain-mysql-with-cron-php\/\">Automatic cPanel Backups: A Safer Way to Schedule Them<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/automated-cpanel-backup-script-using-cpanel-api\/\">Automating cPanel Backups: Off-Site Options and Safer Methods<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/cpanel-tutorial-domains-parked-domains\/\">cPanel Tutorial: Domains &#8211; Parked Domains<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/cpanel-tutorial-domains-addon-domains\/\">cPanel Tutorial: Domains &#8211; Addon Domains<\/a><\/li>\n<\/ul>\n<\/div>\n<p><!-- uh-related-end --><br \/>\n<script type=\"application\/ld+json\">{\"@context\": \"https:\/\/schema.org\", \"@type\": \"FAQPage\", \"mainEntity\": [{\"@type\": \"Question\", \"name\": \"Where does pkgacct save the backup?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"In \/home by default, as cpmove-USERNAME.tar.gz. Give a folder as the second argument to save it elsewhere.\"}}, {\"@type\": \"Question\", \"name\": \"Can I restore a pkgacct backup on another server?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Yes. Copy the archive to \/home on the new cPanel server and run \/scripts\/restorepkg with the file path.\"}}, {\"@type\": \"Question\", \"name\": \"Does pkgacct include email and databases?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Yes. It packages files, databases, email, DNS zones and account settings.\"}}, {\"@type\": \"Question\", \"name\": \"Is it safe to keep backups in the user's home folder?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"No. Keep them in a root-only folder or off the server, because the archive contains databases and email.\"}}, {\"@type\": \"Question\", \"name\": \"Can a cPanel user restore a full backup?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"No. Users can download full backups and restore partial ones, but a full restore needs the server administrator.\"}}]}<\/script><\/p>\n<h2 id=\"sources\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-book\" style=\"color:#00D4FF;\"><\/i> Sources<\/h2>\n<ul style=\"margin:0 0 24px;padding-left:22px;\">\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/docs.cpanel.net\/whm\/backup\/backup-configuration\/\">cPanel documentation: Backup Configuration<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/docs.cpanel.net\/whm\/transfers\/restore-a-full-backup-cpmove-file\/\">cPanel documentation: Restore a Full Backup\/cpmove File<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>As root, run \/scripts\/pkgacct USERNAME \/backup to package one cPanel account (files, databases, email and settings) into \/backup\/cpmove-USERNAME.tar.gz. Copy the file off the server. To restore it on the same or another cPanel server, put the file in \/home and run \/scripts\/restorepkg \/home\/cpmove-USERNAME.tar.gz. Restoring over an existing account replaces its data, so test first.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54,3,202],"tags":[125,108,122,123,115,124],"class_list":["post-3534","post","type-post","status-publish","format-standard","hentry","category-backups","category-control-panels","category-cpanel-whm","tag-tag-backups","tag-tag-cpanel","tag-tag-dns","tag-tag-domains","tag-tag-linux-server","tag-tag-ssl"],"_links":{"self":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/comments?post=3534"}],"version-history":[{"count":9,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3534\/revisions"}],"predecessor-version":[{"id":7021,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3534\/revisions\/7021"}],"wp:attachment":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media?parent=3534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/categories?post=3534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/tags?post=3534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}