MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Author Topic: How To Generate Account Backup Without Home Directory ?  (Read 3470 times)

0 Members and 1 Guest are viewing this topic.

Offline Administrator

  • Chinmay Dingore
  • Administrator
  • Full Member
  • *****
  • Posts: 135
  • Karma: +1/-0
    • View Profile
    • MilesWeb Internet Services Pvt Ltd
How To Generate Account Backup Without Home Directory ?
« on: April 29, 2014, 03:25:40 PM »
Hi All,

I have been trying to backup an account which was large in size. The backup was getting created & was taking a long time. After many hours, the backup was generated. However, it was showing corrupt & I wasn't able to restore it on our other server.

Further checking, I found that the public_html directory was consuming 13GB of space & that is the reason the backup file was getting corrupt.

I found a solution for it & that was generating the backup by skipping the home directory. I use the command below & generated the backup.

Quote
/scripts/pkgacct --skiphomedir cPanel-username

The above command will skip the public_html directory. I restored the backup file on our other server and synced the public_html using rsync command.

It worked like a charm & a hassle free migration.
MilesWeb.com - Your Hosting, Our Responsibility!
Unlimited Hosting Plans | Managed VPS with 20% Discount

MilesWeb Hosting Forum

How To Generate Account Backup Without Home Directory ?
« on: April 29, 2014, 03:25:40 PM »