Restore from root/vst_install_backups

Post Reply
sam.sung997
Posts: 6
Joined: Wed Aug 16, 2023 1:51 am

Hi all,

Been stupid to think I can reinstall myVestaCP without loosing data. Now its all moved to root/vst_install_backups and I don't know how to restore it. Any thoughts?

Thanks,
Sam
User avatar
myVesta
Site Admin
Posts: 932
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

But you first reinstalled the whole Debian, right?
sam.sung997
Posts: 6
Joined: Wed Aug 16, 2023 1:51 am

No. I know, even more stupid. Messed PHP-FPM trying to update to 8.2 then decided I could get it back working by reinstalling.
But is there a way to restore from vst_install_backups folder?
User avatar
myVesta
Site Admin
Posts: 932
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

Only manually, if you can figure out what files to copy to what destination.
sam.sung997
Posts: 6
Joined: Wed Aug 16, 2023 1:51 am

I found the files, but can't figure out where the database is stored. Any ideas?
User avatar
myVesta
Site Admin
Posts: 932
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

Do you have backup files?
Try

Code: Select all

v-rebuild-databases yourUser
sam.sung997
Posts: 6
Joined: Wed Aug 16, 2023 1:51 am

I have the backup vst_install_backup and found the files, but does't seem to store db files. Tried v-rebuild-databases yourUser
but doesn't restore anything. myVesta install made new databases, with only information_schema, mysql, performance_schema
User avatar
myVesta
Site Admin
Posts: 932
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

and you have nothing in /backup folder?
sam.sung997
Posts: 6
Joined: Wed Aug 16, 2023 1:51 am

no, just admin.log file
sam.sung997
Posts: 6
Joined: Wed Aug 16, 2023 1:51 am

Anyways I restored manually from older backups, won't bother any further.
Post Reply