Page 1 of 1

Restore from root/vst_install_backups

Posted: Wed Aug 16, 2023 1:59 am
by sam.sung997
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

Re: Restore from root/vst_install_backups

Posted: Wed Aug 16, 2023 3:30 pm
by myVesta
But you first reinstalled the whole Debian, right?

Re: Restore from root/vst_install_backups

Posted: Wed Aug 16, 2023 5:33 pm
by sam.sung997
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?

Re: Restore from root/vst_install_backups

Posted: Wed Aug 16, 2023 8:38 pm
by myVesta
Only manually, if you can figure out what files to copy to what destination.

Re: Restore from root/vst_install_backups

Posted: Fri Aug 18, 2023 2:34 pm
by sam.sung997
I found the files, but can't figure out where the database is stored. Any ideas?

Re: Restore from root/vst_install_backups

Posted: Fri Aug 18, 2023 2:46 pm
by myVesta
Do you have backup files?
Try

Code: Select all

v-rebuild-databases yourUser

Re: Restore from root/vst_install_backups

Posted: Fri Aug 18, 2023 3:11 pm
by sam.sung997
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

Re: Restore from root/vst_install_backups

Posted: Fri Aug 18, 2023 3:27 pm
by myVesta
and you have nothing in /backup folder?

Re: Restore from root/vst_install_backups

Posted: Fri Aug 18, 2023 3:39 pm
by sam.sung997
no, just admin.log file

Re: Restore from root/vst_install_backups

Posted: Fri Aug 18, 2023 5:08 pm
by sam.sung997
Anyways I restored manually from older backups, won't bother any further.