Page 1 of 1

Unable to restore VestaCP backup on new server

Posted: Wed Dec 29, 2021 5:20 pm
by unknownhax
I'm currently attempting to backup my existing VestaCP account and domain, to migrate it over to a new server. However, everytime I attempt a backup, either via the GUI or CLI, it says it completes. But when I transfer it over to the new server and attempt a restore, it fails.

[root@staging backup]# v-restore-user admin admin.2021-12-27_17-47-56.tar
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
Error: can't unpack PAM container

I've attempted this 6x times now, and this site isn't small. Worse, it's a production site and I can't afford to lose it. Both the Vestacp instances are using the recent update, and CentOS 7. The only difference is the old server is using PHP 7.4 and the new one is using PHP 8. Other than that, there're the same. I'm at a lose and I really need to get this site moved.

Any idea what could be causing this?

Re: Unable to restore VestaCP backup on new server

Posted: Tue Jan 04, 2022 6:56 am
by eris
Make sure you give the /backup/ folder 777 permissions

Re: Unable to restore VestaCP backup on new server

Posted: Tue Jan 04, 2022 2:47 pm
by sandro
This error indicates that the tar file is corrupt.

This can happen for many reasons and one of them can be because of copying from one server to another.

Test the files (original and copy) using the command "tar -tvf admin.2021-12-27_17-47-56.tar". This command will show all archived files.

Finally, try copying the file using scp or ftp.

Re: Unable to restore VestaCP backup on new server

Posted: Tue Sep 27, 2022 6:00 am
by Zape
Have you thought about switching to HestiaCP?

Vesta is very good, and even though it is not updated, the help they give you here is very good, but in the worst case scenario is to look for alternatives, and the closest thing is Hestia.

You could try installing and restoring there.... Hestia supports multi-php, so you could choose PHP 7.4 by default and then change it on each site.

I still use Vesta on a VPS, it's for a small website and it hasn't given me any problems... "What sits still, sits still", on websites that require PHP 8, I had to migrate.

I follow the topic in case I can help in something.

Regards!