vpsfusion
08-14-2004, 02:54 AM
Hello,
I have a problem with transferring websites.
I have made a backup on one server and I have transferred it to another server on which I want the backup to be restored on.
This is what I do and this is the error I get.
I move the file cpmove-username.tar.gz to the home directory and run the script: /scripts/restorepkg username
and this is the error I get!!!
Sorry, the copy failed. Unable to find the cpanel user file.
Can you plese tell me what to do.
Thanks
Hussain Baig
SW-Ray
08-14-2004, 03:09 AM
It sounds like the backup is corrupt, and there isn't much you can do about it, other than re-creating the package and transferring it again.
What you should do to verify it's corrupt is check the size of the archive (usually a corrupt backup will only be a few KB in size), and then try manually extracting it (tar -zxvf cpmove-username.tar.gz). If you get any errors while extracting it, it only extracts a few files, you're missing a "cp" folder, etc, it's most likely corrupt.
vpsfusion
08-14-2004, 03:16 AM
When I try extracting it, I get no errors.
The backup is about 100 MB
No matter how many times i create the backup, this error always occurs.
overulehost
08-14-2004, 03:37 AM
well, with tar..gz extension just use the cronjob and extract them
overulehost
08-14-2004, 03:58 AM
well if you using cpanel
click on cronjob and run this command
tar -zxf /path/to/your/file
if you dont have cpane, you need to run that through ssh
vpsfusion
08-14-2004, 04:02 AM
I have extracted it using the command you gave. It extracts fine. What do I do next?
vpsfusion
08-14-2004, 04:08 AM
And as for Snakez's reply, There is a folder called cp and it has a file in it.
overulehost
08-14-2004, 04:08 AM
well then you should get all the folders extracted, just move them to public_html ,that you want to be viewable...
vpsfusion
08-14-2004, 04:39 AM
Ok this is exactly what I did.
I extracted the backup file.
copied all the the files in homedir/ to /home/username
when i try accessing the username via ip address, it doesnt work.
overulehost
08-14-2004, 05:20 AM
just i tried to access the username using the ip,
maybe it is the same problem
when accessing username via ip, make sure it is
http://ipaddy/~username/directory/
the trailing slash is important
delete the user from WHM
then go to your old server and do
/scripts/pkgacct user
and then copy the file to the new server and put it in /home
and make sure you dont have another user with the same name
then do
/scripts/restorepkg user
it should work ok
also you could remove some of the users files like dump the sql database if its larg to a defrant file and then backup the account with out and then restore and then add the sql database from the dump file