Backup is full backup generated from cPanel wizard? As you can see that for the first run it look for the meta file that cPanel usually generates, not sure why it could not find or was it not there?
/home/backup/user1/userdata/main
Second time something is wrong with MySQL restore, maybe need to investigate more why mysql is not there or can’t restore. Can you contact me via slack.
It turns out that cPanel generated backup file was not complete and or corrupt, you need to have complete file to generate the backup successfully. Once the complete backup file was provided, restore went fine.
Hi, i have some cPanel migration problems, I uploaded the cpanel pkgacct cpmove-user.tar.gz to /home/backup and run the command. but nowhere to find the users email boxes, what could be wrong?
do you need to create first this user and a package before starting the migration?
can I upload the cpmove file as root and run migration command as root?
I also noticed that a folder called /akeebabackup below the /public_html was removed or not converted, now some of the website have folders below /public_html for their CMS, that would mean manually upload?
Hi, thanks for the reply, the folders belong to the domain no subdomains or any child as you call them, it looks like your cPanel converter just copies all the files from /public_html but ignores anything below, and some CMS or backup programs keeps files below.
I will use the grep failed but since the cpmove is huge file [a good 11GB] and this time I try with a cpmove instead of a full nightly backup.
Failed to restore emails from archive file /home/backup/cpmove-user.tar.gz, error message: [Errno 2] No such file or directory: ‘/home/backup/cpmove-user/homedir/mail/mailbox_format.cpanel’. [ExtractBackup]
I tried it with a full nightly backup and a pkgacct [cpmove-user] file
Hi, this comes from a cPanel server with Maildir as default, I have double checked it. The backup should have it all in Maildir format, I checked the backup file and no such file to indicate we use mdbox is in there, but for some reason it is not detecting it…
Hi, yes some mail has come over but… I am so sorry, a few things are not correct, I hope you don’t mind me saying… so you can improve your script and attract cPanel users
What happens is when the conversion script run is that it indeed found all the users, and then retrieved all emails [from /cur] and moved them in their new account on Cyberpanel.
The date and time of those emails are not preserved, they have the date/time from the conversion, this should not happen, email should keep their date/time.
The folder structure is not preserved, all email in one user, your structure:
/home/vmail/domain/user/Maildir/cur
/ new
/tmp
cPanel folder structure from user with [n] folders are gone, all emails in just that one /cur folder…
Seems to me, the emails your script has moved to Cyberpanel are the ones in the folder cur and did not look for anything in folders. So, many thousands of emails have gone lost for the users who have organised all their emails in folders.
I hope you understand what I say.
Kind regards,
Nick