Page 1 of 1

moving servers - transferring vestacp

Posted: Sun Dec 03, 2017 8:11 pm
by peterb
Any advise on how to move vestacp to a new server?
It's the same config.

I have the vestacp backups of each sub account and admin
Do these include the mysql or not?

So I have the new server with vestacp admin on it.
How do I import the backup files?
Where do they go?
Anything else I need to do with vestacp?

Many thanks
Peter

Re: moving servers - transferring vestacp

Posted: Sun Dec 03, 2017 8:20 pm
by peterb
OK sorry I found this

http://vestacp.com/docs/#how-to-migrate ... her-server

will it include the mysql or not?
Should I use decca's script instead?

Re: moving servers - transferring vestacp

Posted: Sun Dec 03, 2017 8:41 pm
by peterb
It looks like the BACKUP tar from the CP itself has mysql in it.

Can I just use this or should I use the command line

Re: moving servers - transferring vestacp

Posted: Sun Dec 03, 2017 10:56 pm
by peterb
When I try to use decap v0.2 script I get these errors (centos 7 64 bit btw)

>>>>
[root@god /]# bash vestacp2backup.sh
vestacp2backup.sh: line 2: $'\r': command not found
vestacp2backup.sh: line 4: $'\r': command not found
vestacp2backup.sh: line 6: $'\r': command not found
vestacp2backup.sh: line 8: $'\r': command not found
vestacp2backup.sh: line 10: $'\r': command not found
vestacp2backup.sh: line 12: $'\r': command not found
vestacp2backup.sh: line 15: $'\r': command not found
vestacp2backup.sh: line 28: $'\r': command not found
vestacp2backup.sh: line 42: syntax error near unexpected token `$'{\r''
'estacp2backup.sh: line 42: `function make_tar {
<<<<

what basic thing am I doing wrong?

Re: moving servers - transferring vestacp

Posted: Fri Dec 08, 2017 2:41 am
by sysdop
peterb wrote:When I try to use decap v0.2 script I get these errors (centos 7 64 bit btw)

>>>>
[root@god /]# bash vestacp2backup.sh
vestacp2backup.sh: line 2: $'\r': command not found
vestacp2backup.sh: line 4: $'\r': command not found
vestacp2backup.sh: line 6: $'\r': command not found
vestacp2backup.sh: line 8: $'\r': command not found
vestacp2backup.sh: line 10: $'\r': command not found
vestacp2backup.sh: line 12: $'\r': command not found
vestacp2backup.sh: line 15: $'\r': command not found
vestacp2backup.sh: line 28: $'\r': command not found
vestacp2backup.sh: line 42: syntax error near unexpected token `$'{\r''
'estacp2backup.sh: line 42: `function make_tar {
<<<<

what basic thing am I doing wrong?
How many users are you going to migrate @peterb? Do you know how to handle yourself by console? So I give you instructions so you can do it without that script.