Cpanel backup restore issue

Hello 2 months back I successfully restored a cpanel backup for testing but didmt actually transfer the domain because my servers were in development mode.

Now i have some clients already and some with cpanel i am trying to move here

I used v restore cpanel script but it gives me errors

ERROR:
root@hcp:/usr/local/hestia/bin# v-import-cpanel /backup/cpanel-backup.tar.gz yes
Checking provided file…
OK - Gziped File
Extracting backup…
Backup extracted without errors…
/usr/local/hestia/bin/v-import-cpanel: line 87: cd: too many arguments
Get prefix…
cat: meta/dbprefix: No such file or directory
Access tmp directory /usr/local/hestia/bin
cat: meta/dbprefix: No such file or directory
/usr/local/hestia/bin/v-import-cpanel: line 95: [: =: unary operator expected
grep: userdata/main: No such file or directory
grep: userdata/: No such file or directory
Get User:
Error: user exists
root@hcp:/usr/local/hestia/bin#

I have tried both full backup and home directory backup.

Can anyone help me troubleshoot this please.
I also noticed back in the day the install script was a bit different there was mysql yes and no its mariadb yes my install script that i used in hestia was mariadb yes and mysql8 no postgresql no

The database in cpanel is mysql based but i am not sure which older version ( it cant be 8)

Can you share an ls of the temp dir?

its from an hour ago when i was trying to get it done via gpt:
User

root@hcp:/usr/local/hestia/bin# v-import-cpanel-modified-v2 /backup/cpanel-backup.tar.gz yes Checking provided file… OK - Gziped File Extracting backup… Backup extracted without errors… /usr/local/hestia/bin/v-import-cpanel-modified-v2: line 87: cd: too many arguments Contents of /backup/tmp.I7xWsHB3PX: access-logs bin cpmove.psql css mail php quarantine tmp amsorg cache cpmove.psql.1266570808 etc perl public_ftp quarantine_clamavconnector var backup-6.15.2023_01-30-56_amsorg.tar.gz cpbackup-exclude.conf cpmove.psql.1311561916 logs perl5 public_html ssl www root@hcp:/usr/local/hestia/bin#

GPT made me a script that will print the ls if backup fails

Screenshot doesn’t work …

What kind of backup did you use?

You ned to use the user backup…

i tried both home directory backup and full backup because i wasnt sure which one to use…
can u confirm me if i should select mysql yes (during hcp installation) in order to restore cpanel backup or i can just select mariadb yes and it will be okay?

MariaDB should work as well…

Can you share a backup ?

i have tried these 2 :confused:


share the actual backup?
i can do it via email to you if u need can you please ping me [email protected]

Please send an email to [email protected]

i sent an email and got auto response.

I managed to import cpanel backup into hestiacp but i ran into too many issues

  1. The user id and pass of emails kept having issues even when password was correctly set it kept asking user for passwords
  2. The client didnt have static ip and their ip changed alot and their ip was put on blacklists
  3. Issues with wordpress websites were also there but they were easily fixed as cpanel was using older version of php.

Did anyone else successfully restored cpanel backup and used without any issue?

I had to transfer my client to cpanel only because the organization was furious about emails issue.

Any help would be appreciated for future transfers

@Socials, You and me both. To answer your question: no, my attempt to import a cpanel backup was the very furthest possible thing from successful. It was a completely unproductive waste of many hours of time.

Having just lost a day on this I’m fairly convinced this cpanel import “feature” does not work at all. It is broken through-and-through, multiple levels of bugs concealing more bugs.

A few hours to install, configure, and import the cpanel backup; then several hours troubleshooting when it simply did not work in any way and all I got were either connection errors or blank white screens when I tried to load the site in my browser, and every problem solved yielded yet another error I had to spend more time tracking down and troubleshooting; and then, once the connectivity was finally working many more hours later than it would have taken me to simply migrate my site by hand via the command line, my Wordpress front page finally loaded, and then it gave me the same wizard I would have gotten if I had not imported my site at all. It tried to get me to just create a brand new site, like nothing I spent all that time importing, configuring, and debugging was there at all. I’ve configured Apache and migrated wordpress sites to it by hand in much less time than I just spent not getting it done at all with hestiacp.

FWIW, in case anyone is looking into the alternatives, WebMin/VirtualMin can’t really do it, either. I lost several whole days on that one before I gave up, too. Based on my experiences for the last week, my advice to anyone who has a site they want to migrate off of cpanel, is to forget it and keep it on cpanel, unless you are willing to manually rebuild it from the backups piece-by-piece and configure by hand yourself. I not only have yet to find a working package that can read cpanel backups without creating more time wasted on troubleshooting than doing it the manual way would have taken, in my past week of trying to find a way to tackle this, I haven’t yet seen a single firsthand account anywhere online from someone who has managed to do it. YMMV. But the fact that your final query has gone totally unanswered for three and a half months ought to tell you something.

Sorry for the negative tone but I believe this should be mentioned in the support forums. I sure wish I had seen a post like this before I started. I really wouldn’t have gone down this road at all if I’d seen any realistic disclaimer about the potential “cpanel import” failures. There need to be warnings when something really doesn’t work as badly as this didn’t for me.

Please check the lastest version:

Most issues should have been solved…

2 Likes
  • Passwords issue there was an bug it has been fixed see the last version in the main branch
  • That issue is not related to the Import function it self
  • That is hard to know as cpanel doesn’t save the php version in the backups…
2 Likes