Originally posted by jechilt
I am getting this during the output of the examining stage:
Code:
[SIZE=1]Fround user decoju00..mv: can't stat source ./import/decoju00
.
Copying remaining files... mv: can't stat source ./import/decoju00/homedir/public_html
Is there something I am doing wrong?[/SIZE]
I had the exactly the same error and it happened when I ran the script on the DA server trying to convert cPanel backups (made using fullbackup.html under reseller cPanel login which allows me to access all my users cPanels) to DA backups.
But accidentally I made the script eventually work!!! Let me explain...
Initially I thought the cPanel backup file has to be renamed to username.tar.gz to match that of the DA backup file (no need to do this in fact). Anyway, having not fully understood the instructions, I renamed the cPanel backup file - luckily I did it using a FTP client which in fact created a folder (with the same name as the part before .tar.gz) and explode everything to the folder - I will call this folder the MAGIC folder which I will mention later on.
Anyway, I did not know this to be a gain

so I proceeded to run the conversion script and restored the converted files on the DA server. But I found it restored only the username along with other things. The most obvious sign of the conversion not working is the domains field is BLANK which means the domain name and maybe other things did not get converted.
So I thought it must be the fact I renamed the cPanel backup file which was not necessary. So I thought... how could I recreate the tar.gz file with exactly the same name?
I used the tar and gzip commands to tar the files and folders I found it the MAGIC folder. So basically I just recreated the cPanel backup file by exploding and imploding it.
Now I ran the cPanel to DA backup conversion script with this recreated file and it worked!!!
I have not checked things other than domain name - will let you know later on. At least the script saves me tens of hours of work! I am so excited to share this with you. If you would like to know how to re-create the cPanel backup file. Here are the step-by-step procedures...
Note all the following steps should be done by login to the DA server via SSH (I use putty.exe to access SSH). You need to have the root password for the server.
(1) Extract things in the cPanel backup file to a folder - my DA server accidentally did it for me when I tried to rename the file
(2) Go to this folder where files and directories are extracted to, and then type...
Code:
[SIZE=1]tar -cvvf backup-1.11.2006_17-59-21_username.tar.gz *.*[/SIZE]
This tars mainly mysql.sql - note in my case backup-1.11.2006_17-59-21_username is the name of the folder into which my DA server extracted the cPanel backup file into.
Then you need to issue this command:
Code:
[SIZE=1]tar -cvvf backup-1.11.2006_17-59-21_username.tar.gz *[/SIZE]
This will tar all the files and folders which do not have an extension name.
(3) Zip the new .tar file by typing this...
Code:
[SIZE=1]gzip -c backup-1.11.2006_17-59-21_username.tar > backup-1.11.2006_17-59-21_username.tar .gz[/SIZE]
Now you have recreated the cPanel backup file!
Your next job is to move or copy this file to the import folder and run the script again. You should have no problem converting
The fact this works indicates that cPanel backup file is slightly different from what the script author understood it - wish that he could update his script and offer to sell!
Enjoy!