dedicated server help
web hosting guides
dedicated server home dedicated server forums dedicated server reviews dedicated resources partners dedicated server resources contact dedicated servers

dedicated server guides
Getting Started
General Tutorials
cPanel Tutorials
Security Center
Name Servers
Server Monitoring
Server Backups
Hosting Interviews
Web Hosting News
Reviews
For Fun
Linux Tutorials
Hosting Articles
Web Hosting Tutorials
 
 
 
web hosting tutorials
About Us
RSS Feed
Disclaimer
Site Map

 

Single cPanel Account Backup via SSH

Last Updated: November 30, 1999


If you need to backup a single cPanel account, and don't want to do it through the web interface of cPanel you can do it through SSH. There is a script in the /scripts directory on cPanel webservers called "pkgacct"

1. Login to your server as root via SSH.

2. Type: cd /scripts

3. Type: ./pkgacct username
(replace username with the acount username you wish to backup)

4. You will not see something along the lines of this:
Copying Reseller Config...Done
Copying Mail files....Done
Copying proftpd file....Done
Copying www logs...Done
Grabbing mysql dbs...Done
Grabbing mysql privs...Done
Copying mailman lists....Done
Copying mailman archives....Done
Copying homedir....Done

5. There will be a file now in /home called cpmove-username.tar.gz where username is the username specified in step #4.

6. Download the cpmove-username.tar.gz and save it.
(You can use your FTP software to login to the server and download the file)


Ho To restore a cpmove-username.tar.gz

1. Upload cpmove-username.tar.gz to the webserver's /home directory.
(You can use your FTP software to login to the server and upload the file)

2. Type: /scripts/restorepkg username
(replace username with the account username)

This will restore the site, and also create the cPanel account.

cpanel tutorials
cPanel Resources
Dedicated Servers