Skip to content

Instantly share code, notes, and snippets.

@deanet
Created June 24, 2011 02:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deanet/1044121 to your computer and use it in GitHub Desktop.
Save deanet/1044121 to your computer and use it in GitHub Desktop.
Migrate Package CPANEL
root@oberon [~]# /scripts/pkgacct aqiqah
pkgacct started.
pkgacct version 10 - user : aqiqah - tarball: 1 - target mysql : default - split: 0 - incremental: 0 - homedir: 1 - archive version: 3 - running with uid 0
pkgacct working dir : /home/cpmove-aqiqah
Copying Reseller Config...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......aqiqahaqilah.com-all-peak.rrd....aqiqah-imap-peak.rrd....aqiqahaqilah.com-http-peak.rrd....aqiqah-pop3-peak.rrd....aqiqah-pop3-rate.rrd....aqiqah-imap-rate.rrd....mail.aqiqahaqilah.com....aqiqah-smtp-rate.rrd....mail.aqiqahaqilah.com-all-peak.rrd....aqiqahaqilah.com-http-rate.rrd....mail.aqiqahaqilah.com-http-peak.rrd....aqiqah-ftp-rate.rrd....aqiqah-http-peak.rrd....aqiqah-smtp-peak.rrd....aqiqahaqilah.com-all-rate.rrd....aqiqah-ftp-peak.rrd....aqiqah-all-rate.rrd....aqiqahaqilah.com....mail.aqiqahaqilah.com-http-rate.rrd....aqiqah-all-peak.rrd....mail.aqiqahaqilah.com-all-rate.rrd....aqiqah-http-rate.rrd....aqiqah..Done
Copying Dns Zones.......aqiqahaqilah.com...Done
Copying Mail files....Done
Copying frontpage files....Done
Copying proftpd file....Done
Copying www logs.......log file sizes [135043 byte(s)]......ftp.aqiqahaqilah.com-ftp_log.offsetftpbytes......aqiqahaqilah.com-bytes_log......mail.aqiqahaqilah.com-bytes_log......mail.aqiqahaqilah.com......ftp.aqiqahaqilah.com-ftp_log.offset......aqiqahaqilah.com...Done
Copy userdata...Done
Copy custom virtualhost templates...Done
Copying mailman lists and archives....Done
Copying homedir.............
One or more files in the home directory were not readable and were not copied. Please review the home directory upon completion of transfer
Done
Determining mysql dbs......mysql version: 5.0......mysqldump version: 5.0...Saving mysql privs...Done
...Done
Storing mysql dbs...aqiqah_joom1.........
(135591 bytes) horde.turba_objects(1596 bytes) horde.horde_prefs(3056 bytes) horde.kronolith_events.........
(1614 bytes) horde.kronolith_storage(1614 bytes) horde.mnemo_memos(1592 bytes) horde.nag_tasks(1584 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-aqiqah.tar.gz
md5sum is: fc6683c3672936d6f6d617041c63dfaf
size is: 8129680
homesize is: 28389376
root@oberon [~]# scp -P 2029 /home/cpmove-aqiqah.tar.gz root@111.68.116.226:/home/
root@111.68.116.226's password:
stdin: is not a tty
cpmove-aqiqah.tar.gz 100% 7939KB 3.9MB/s 00:02
root@oberon [~]# /scripts/killacct aqiqah
Are you sure you want to remove the account "aqiqah" [y/N]? y
Running pre removal script (/usr/local/cpanel/scripts/prekillacct)......Done
Collecting Domain Name and IP......Done
Killing all processes owned by user......Done
Removing Web Logs......Done
Removing Bandwidth Files......Done
Removing Crontab......Done
Removing Virtual Hosts...Removing user's web content directory symlinks......Done
Removing MySQL databases and users......Done
Removing PostgreSQL databases and users......Done
Removing User & Group..........Done
Removing Email Setup......Done
Removing mailman lists......Done
Updating Databases......Done
Removing Counter Data......Done
Adding ip back to the ip address pool......Done
Removing user's cPanel Databases & Updating......Done
Reloading Services...proftpd: no process killed
...Done
Removing mail and service configs......Done
Sending Contacts......Done
Updating internal databases......Done
Running post removal scripts (/usr/local/cpanel/scripts/legacypostkillacct, /usr/local/cpanel/scripts/postkillacct)......Done
Account Removal Complete!!!......Done
info [killacct] User aqiqah removed
User: aqiqah
Domain: aqiqahaqilah.com
Deleted domain: aqiqahaqilah.com
Deleted domain: mail.aqiqahaqilah.com
Removed DB aqiqah_joom1
Database "aqiqah_joom1" dropped
SuccessRemoving /etc/valiases/aqiqahaqilah.com
Removing /etc/valiases/mail.aqiqahaqilah.com
System has 0 free ips.
Updating ftp passwords for aqiqah
Purging ftp user aqiqah
Ftp password files updated.
Ftp vhost passwords synced
aqiqah account removed
root@oberon [~]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment