How to backup single Domain/ User in Cpanel/whm command line?

1. Login to the server through ssh or putty.
2. Now, run the following command:

# /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.

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-dinesh
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 Bandwidth Data……dinesh-http-rate.rrd….dinesh-pop3-rate.rrd….dinesh-ftp-rate.rrd….dinesh-ftp-peak.rrd….dinesh-all-rate.rrd….dinesh-imap-peak.rrd….dinesh-pop3-peak.rrd….dinesh-imap-rate.rrd….dinesh-smtp-peak.rrd….dinesh-http-peak.rrd….dinesh-all-peak.rrd….dinesh-smtp-rate.rrd..Done
Copying Dns Zones…….test.com…Done
Copying Mail files….Done
Copying frontpage files….Done
Copying proftpd file….Done
Copying www logs…….log file sizes [0 byte(s)]……test.com……test.com-bytes_log…Done
Copy userdata…Done
Copy custom virtualhost templates…Done
Copying mailman lists and archives….
warn [pkgacct] Failed to open directory: /usr/local/cpanel/3rdparty/mailman/suspended.lists
Done
Copying homedir………….
Done
Determining mysql dbs……mysql version: 5.1……mysqldump version: 5.1…Saving mysql privs…Done
…Done
Skipping Logaholic Backup. Logaholic is globally disabled on this system.
Storing mysql dbs…horde.turba_objects………
(1574 bytes) horde.horde_prefs(1566 bytes) horde.kronolith_shares(1592 bytes) horde.kronolith_storage(1592 bytes) horde.mnemo_memos(1570 bytes) horde.nag_tasks(1562 bytes) …Done
Copying cpuser file…….Done
Copying crontab file…….Done
Copying quota info…….Done
Storing Subdomains….
Done
Storing Parked Domains….
Done
Storing Addon Domains….
Done
Storing ssl domain……Done
Copying password…….Done
Copying shell…….Done
Creating Archive ………….
Done
pkgacctfile is: /home/cpmove-dinesh.tar.gz
md5sum is: 366950f9705f9a72aedd289322285773
size is: 1853431
homesize is: 860160


Vote this Post:
1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5.00 out of 5)
Loading ... Loading ...

 

RELATED POSTS