Page 1 of 1

how to use cli commands

Posted: Mon Nov 21, 2016 5:52 am
by elamigosam21
hello, i am new to the vestacp system, I am wondering how to use the cli commands, do I have to run something to enable them or do I need to turn on something?

I am trying to restore a user on a new server.
i got the backup on the /home/backup location, but when I do v-restore-user admin /home/backup/admin.2016-11-19.tar
I get a v-restore-user: command not found error

thanks

Re: how to use cli commands

Posted: Tue Nov 22, 2016 5:22 am
by elamigosam21
I was able to come up with a solution, here it is:

http://easycomputertutorial.com/use-ves ... tore-user/

Re: how to use cli commands

Posted: Tue Nov 22, 2016 12:59 pm
by skurudo
elamigosam21 wrote:
I get a v-restore-user: command not found error
You can use full paht /usr/local/vesta/bin/some-command

Re: how to use cli commands

Posted: Mon Mar 06, 2017 1:52 pm
by mhh2
For restore backup on the new server, use

Code: Select all

/usr/local/vesta/bin/v-restore-user admin admin.2016-01-01.tar
But receive Error: backup admin.2016-01-01.tar doesn't exist.
Please help me.

Re: how to use cli commands

Posted: Tue Mar 07, 2017 8:38 am
by skurudo

Code: Select all

mkdir -p /backup

Code: Select all

mv /your-path-to-archive/admin.2016-01-01.tar /backup

Code: Select all

cd /backup

Code: Select all

/usr/local/vesta/bin/v-restore-user admin admin.2016-01-01.tar