Somehow deactivating a wordpress plugin messed up my website. I decided to delete the wordpress install and start again. I also deleted the database.
I tried to restore the backup I had using the " v-restore-user" command.
It failed and only the Wordpress files restored.
root@hsp:~# cd /backup
root@hsp:/backup# v-restore-user taco taco.2024-08-11_05-11-32.tar
-- WEB --
2024-08-14 02:24:06 innovativeworks.biz
Error: apache2 restart failed
Error: Web restart failed
So, I really only want the database and the website to restore. How do I do that? Why did the restore fail?
The HestiaCP team will immediately disagree with my statement (as they have done in the past) that backup and restore requires a huge changes in logic. To me it’s a logic designed to function on a server that does not have any use and is fresh. But after the webserver has been used thereafter things becomes messy.
The solution to your problem is very simple:
Run the same command TWICE, when it throws an error like above for the first time!
there are multiple positional parameters that can be passed to the script. doesnt look like you passed any. one would have to view the script to determine the default response
Thanks. I just saw if the variable wasn’t set to no. Probably missed if the variable is unset and I don’t have it In front of me right now. Sorry for the confusion
edit - so any section of the restore you want skipped you put ‘no’ as the positional parameter. This would only restorer WEB and DB
v-restore-user USER backup_file_name yes no no yes no no no
However, let me warn you again. The error of failed restart is not dependent on what aspect of the tar file you are trying to restore.
If that error is triggered, you will have to repeat the same command again. In the first step if the error is thrown on apache restart, then it would stop. After you repeat the same command, it will restart and continue to restore DB.
But in case of this restart error, you will have to restart TWICE!