Results 1 to 5 of 5
-
07-13-2004, 12:08 PM #1Web Hosting Master
- Join Date
- Feb 2004
- Location
- Sofia
- Posts
- 1,354
Restore a Full Backup/cpmove File
When using this function the account restored seems to have doubled its size due to all data having been copied twice in the home/accountname directory. We get first the /public_html/ containing all static files and /homedir containing the entire old account. Apart from them there is also a /mysql dir
In the new homedir there are these surplus dirs
/cp
/cron
/fp
/homedir
/logs
/mm
/mma
/mysql
/resellerconfigs
/sslcerts
/sslkeys
/va
/vf
Trying to remove them and leave only the standard dirs makes the domain unaccesible. Leaving them doubles the used space of the accounts and their owners are not very happy about this.
How would you solve this situation?
Thank you
-
07-13-2004, 07:34 PM #2Junior Guru
- Join Date
- Jul 2004
- Location
- U.A.E >> Dubai
- Posts
- 218
Hi,
do you want to restore a backup file ? well ,
you have you backup_date_.tar.gz move it to /home or home2
use this command :
/scripts/restorepkg $username
$username = replace it with the username of the backup file .
wait a while and whatever in this file will be restored .
regards,ٍSecurityWay.Net Managed Solutions
Linux Security,Domain Registration Service,eNom Reseller Account from an ETP.
http://domains.securityway.net/
Believe an expert, believe on who has had experience.
-
07-14-2004, 09:38 AM #3Web Hosting Master
- Join Date
- Feb 2004
- Location
- Sofia
- Posts
- 1,354
Thank you, this is precisely what I have done.
cd /home wget the tarballs from the other server (to which I don't have SHH access), then started the command your refer. As a result I double or even triple restored the accounts. Instead of 83 MB the new tarball now is 240 Mb, mainly due to the superfluous directories listed above. My problem is how to remove them without effecting the actual core account.
-
07-14-2004, 10:17 AM #4Temporarily Suspended
- Join Date
- Feb 2003
- Location
- uk
- Posts
- 22
You are getting this because when using the restore account function it creates a folder called cpmove-username and which chowned under your sites username.
Since cPanel works out the disk space usage via the amount of files under a user it will include the cpmove-user/ folder.
Move into /home and issue `rm -rf cpmove-*`
-
07-14-2004, 05:50 PM #5Web Hosting Master
- Join Date
- Feb 2004
- Location
- Sofia
- Posts
- 1,354
Thanks, driver51 - there is no cpmove dirs of files in /home
Instead I removed all superfluos dirs and files and changed the permission of the /home/accountname to 711
This fixed the whole issue.