Page 1 of 1

How to copy config to the new panel?

Posted: Wed Oct 11, 2017 7:29 am
by mpjoke
Hello. I am using Debain8. Some time ago OS has been crashed. I use another HDD drive and install Debain8 and VestaCP.
I can copy mysql files to new server, but i cant see my database files in Vesta. Now i should make the same structure and then replace database files.
How to copy all settings from old panel to new panel? (not from panel)

Re: How to copy config to the new panel?

Posted: Wed Oct 11, 2017 9:18 am
by DarthVader
Hi
You have several option.

1) Try user vesta backup. Create backup of users on old server and restore on new.
2) You can move /usr/local/vesta/data/users (without admin folder) on new machine and call v-rebuild-user (/usr/local/vesta/bin/)
In this case, you must manual moving databases between servers with eg. mysqldump

Re: How to copy config to the new panel?

Posted: Wed Oct 11, 2017 12:12 pm
by mehargags
You will always have problems if you move MySQL storage like this. Best is as suggested, use VestaCP Backup

You can use mysqldump command to dump your db's.

There is a beautiful Customize Backup Script by Dpecca which may come in handy. you will still need to configure Users/DBs again in VestaCP but this option is more for clean installers who want to reconfigure their server