Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Backup single domain/ user in cPanel/ WHM via command line  (Read 2216 times)

0 Members and 1 Guest are viewing this topic.

Eby Sebastian

  • Newbie
  • *
  • Posts: 14
  • Karma: +1/-0
Backup single domain/ user in cPanel/ WHM via command line
« on: December 14, 2013, 10:38:24 pm »
1. Login to the server through ssh or putty.
2. Now, run the following command:

Code: [Select]
# /scripts/pkgacct $domainusername

Where $domainusername is the domain user name or actual user of cPanel account.

3. It will create (.tar.gz file) which include complete home directory, Mysql, DNS zone….etc.

Code: [Select]
pkgacct started.
pkgacct version 10 – user : dinesh – tarball: 1 – target mysql : default – split: 0 – incremental: 0 – homedir: 1 – archive version: 3 – running with uid 0
pkgacct working dir : /home/cpmove-eby
Copying Reseller Config…
Copying Reseller Packages and Features …
Done
Copying Suspension Info (if needed)…Done
Copying SSL Certificates, CSRS, and Keys…Done
Copying Domain Keys….Done
Copying Counter Data….Done
:
:
:
Copying password…….Done
Copying shell…….Done
Creating Archive ………….
Done
pkgacctfile is: /home/cpmove-eby.tar.gz
md5sum is: 366950f9705f9a72aedd234522285773
size is: 1553561
homesize is: 860260
Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!