how to use cli commands

Questions regarding the Command Line Interface
CLI
elamigosam21
Posts: 2
Joined: Mon Nov 21, 2016 5:47 am

how to use cli commands

Postby elamigosam21 » Mon Nov 21, 2016 5:52 am

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

elamigosam21
Posts: 2
Joined: Mon Nov 21, 2016 5:47 am

Re: how to use cli commands

Postby elamigosam21 » Tue Nov 22, 2016 5:22 am

I was able to come up with a solution, here it is:

http://easycomputertutorial.com/use-vesta-v-restore-user/

skurudo
VestaCP Team
Posts: 7798
Joined: Fri Dec 26, 2014 2:23 pm
Location: Moscow
Contact:

Re: how to use cli commands

Postby skurudo » Tue Nov 22, 2016 12:59 pm

elamigosam21 wrote:
I get a v-restore-user: command not found error


You can use full paht /usr/local/vesta/bin/some-command
-> DigitalOcean competition - please, support us
-> fix for phpmyadmin - nice and sweet now

mhh2
Posts: 12
Joined: Thu Jul 30, 2015 1:44 pm

Re: how to use cli commands

Postby mhh2 » Mon Mar 06, 2017 1:52 pm

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.

skurudo
VestaCP Team
Posts: 7798
Joined: Fri Dec 26, 2014 2:23 pm
Location: Moscow
Contact:

Re: how to use cli commands

Postby skurudo » Tue Mar 07, 2017 8:38 am

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
-> DigitalOcean competition - please, support us
-> fix for phpmyadmin - nice and sweet now


Return to “CLI”



Who is online

Users browsing this forum: No registered users and 1 guest